diff --git a/smash/web/urls.py b/smash/web/urls.py index be3b72f6d5387724f56698e420b967aa857a69a0..65d7d4e8f60ec6faf2d5cfd092349cf82ef1a291 100644 --- a/smash/web/urls.py +++ b/smash/web/urls.py @@ -21,6 +21,7 @@ from django.views.defaults import page_not_found from django.views.generic import TemplateView from web import views +from web.views.daily_planning import TemplateDailyPlannerView urlpatterns = [ @@ -171,7 +172,7 @@ urlpatterns = [ # DAILY PLANNING # #################### - url(r'^daily_planning$', TemplateView.as_view(template_name='daily_planning.html'), + url(r'^daily_planning$', TemplateDailyPlannerView.as_view(template_name='daily_planning.html'), name='web.views.daily_planning'), #################### diff --git a/smash/web/views/daily_planning.py b/smash/web/views/daily_planning.py new file mode 100644 index 0000000000000000000000000000000000000000..3988cc23ed7125c0415a36c730e2ed4c1d45c7aa --- /dev/null +++ b/smash/web/views/daily_planning.py @@ -0,0 +1,9 @@ +# coding=utf-8 +import logging + +from django.views.generic import TemplateView +from . import wrap_response +class TemplateDailyPlannerView(TemplateView): + def get(self, request, *args, **kwargs): + context = self.get_context_data(**kwargs) + return wrap_response(request, 'daily_planning.html', context) \ No newline at end of file