add (empty) home page
authorFrédéric Péters <fpeters@0d.be>
Sun, 29 Dec 2019 15:17:39 +0000 (16:17 +0100)
committerFrédéric Péters <fpeters@0d.be>
Mon, 30 Dec 2019 08:35:50 +0000 (09:35 +0100)
chloro/phyll/templates/phyll/home.html [new file with mode: 0644]
chloro/phyll/urls.py
chloro/phyll/views.py

diff --git a/chloro/phyll/templates/phyll/home.html b/chloro/phyll/templates/phyll/home.html
new file mode 100644 (file)
index 0000000..e650d66
--- /dev/null
@@ -0,0 +1,4 @@
+{% extends "phyll/base.html" %}
+
+{% block body %}
+{% endblock %}
index 03fa5cda11ee6e101c27a8d25cef19ccbe4944b2..99d6da61075f29a8dd7c054de1a924340f486ac9 100644 (file)
@@ -40,4 +40,5 @@ urlpatterns = [
     ),
     url(r'^new-note/$', staff_member_required(views.NoteAddView.as_view(), login_url='login')),
     url(r'^(?P<slug>[\w:-]+)/$', views.NoteView.as_view()),
+    url(r'^$', views.HomeView.as_view()),
 ]
index d13d6b966c4876f6ee1abf97193475d8a4e3666f..d366b833f360b85ee25d0ba01170ab58c4aa3794 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-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'