aboutsummaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorAlban Gruin2017-10-30 18:23:43 +0100
committerAlban Gruin2017-10-30 18:23:43 +0100
commiteed022ccf449a4cfceb39c28bb41741bc490d343 (patch)
treef18b8e364d6a7939cfc7ea561291b63fbe6236c9 /urls.py
parent03bf0f33ac47b2f5597c39b10d9f26d7fb893d79 (diff)
Ajout d’une URL pour les flatpages
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py3
1 files changed, 2 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>.
-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<year_slug>[-\w]+)/$", views.mention_list, name="mentions"),
url(r"^(?P<year_slug>[-\w]+)/(?P<timetable_slug>[-\w]+)/$", views.group_list, name="groups"),