From eed022ccf449a4cfceb39c28bb41741bc490d343 Mon Sep 17 00:00:00 2001
From: Alban Gruin
Date: Mon, 30 Oct 2017 18:23:43 +0100
Subject: Ajout d’une URL pour les flatpages
---
urls.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'urls.py')
diff --git a/urls.py b/urls.py
index c84ac75..1f686e4 100644
--- a/urls.py
+++ b/urls.py
@@ -13,11 +13,12 @@
# You should have received a copy of the GNU Affero General Public License
# along with celcatsanitizer. If not, see .
-from django.conf.urls import url
+from django.conf.urls import include, url
from . import feeds, views
urlpatterns = [
url(r"^$", views.index, name="index"),
+ url(r"^pages/", include("django.contrib.flatpages.urls")),
url(r"^contact$", views.contact, name="contact"),
url(r"^(?P[-\w]+)/$", views.mention_list, name="mentions"),
url(r"^(?P[-\w]+)/(?P[-\w]+)/$", views.group_list, name="groups"),
--
cgit v1.2.1
From 55ad46fe32ce8122d884dda4eb498e20e39622ad Mon Sep 17 00:00:00 2001
From: Alban Gruin
Date: Tue, 31 Oct 2017 12:38:34 +0100
Subject: Suppression de l’ancienne page de contact
---
urls.py | 1 -
1 file changed, 1 deletion(-)
(limited to 'urls.py')
diff --git a/urls.py b/urls.py
index 1f686e4..487994e 100644
--- a/urls.py
+++ b/urls.py
@@ -19,7 +19,6 @@ from . import feeds, views
urlpatterns = [
url(r"^$", views.index, name="index"),
url(r"^pages/", include("django.contrib.flatpages.urls")),
- url(r"^contact$", views.contact, name="contact"),
url(r"^(?P[-\w]+)/$", views.mention_list, name="mentions"),
url(r"^(?P[-\w]+)/(?P[-\w]+)/$", views.group_list, name="groups"),
url(r"^(?P[-\w]+)/(?P[-\w]+)/(?P[-\w]+)/$", views.timetable, name="timetable"),
--
cgit v1.2.1