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(-) 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