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 03fa5cd..99d6da6 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 d13d6b9..d366b83 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'