From: Frédéric Péters Date: Sun, 29 Dec 2019 15:17:39 +0000 (+0100) Subject: add (empty) home page X-Git-Tag: v2022~54 X-Git-Url: https://git.0d.be/?p=chloro.git;a=commitdiff_plain;h=ca1becbb5854b50fda10d839a5e0db37ccb2b832 add (empty) home page --- diff --git a/chloro/phyll/templates/phyll/home.html b/chloro/phyll/templates/phyll/home.html new file mode 100644 index 0000000..e650d66 --- /dev/null +++ b/chloro/phyll/templates/phyll/home.html @@ -0,0 +1,4 @@ +{% extends "phyll/base.html" %} + +{% block body %} +{% endblock %} diff --git a/chloro/phyll/urls.py b/chloro/phyll/urls.py index 03fa5cd..99d6da6 100644 --- a/chloro/phyll/urls.py +++ b/chloro/phyll/urls.py @@ -40,4 +40,5 @@ urlpatterns = [ ), url(r'^new-note/$', staff_member_required(views.NoteAddView.as_view(), login_url='login')), url(r'^(?P[\w:-]+)/$', views.NoteView.as_view()), + url(r'^$', views.HomeView.as_view()), ] diff --git a/chloro/phyll/views.py b/chloro/phyll/views.py index d13d6b9..d366b83 100644 --- a/chloro/phyll/views.py +++ b/chloro/phyll/views.py @@ -14,7 +14,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -from django.views.generic import CreateView, DeleteView, DetailView, UpdateView +from django.views.generic import CreateView, DeleteView, DetailView, UpdateView, TemplateView from .models import Note @@ -38,3 +38,7 @@ class NoteDeleteView(DeleteView): def get_success_url(self): return '/' + + +class HomeView(TemplateView): + template_name = 'phyll/home.html'