Ajout système caldav

This commit is contained in:
Ambulance Clerc
2022-06-19 23:47:09 +02:00
parent 501468b6dd
commit 1d173ffe7c
11 changed files with 143 additions and 1 deletions

14
caldav/views.py Normal file
View File

@@ -0,0 +1,14 @@
from django.http import HttpResponse
from django.shortcuts import render
from django.views import generic
from django.template import loader
# Create your views here.
from caldav.models import *
def view_task_caldav(request):
o_caldav.get_caldav_data()
template = loader.get_template("task/task.html")
context = {'latest_task_list':o_caldav.day, 'night_task_list': o_caldav.night}
return HttpResponse(template.render(context,request))