diff --git a/zds/pages/urls.py b/zds/pages/urls.py index e4163aef3d..6a80245ff1 100644 --- a/zds/pages/urls.py +++ b/zds/pages/urls.py @@ -1,4 +1,4 @@ -from django.urls import re_path +from django.urls import path from zds.pages.views import ( about, @@ -16,16 +16,16 @@ urlpatterns = [ # single pages - re_path(r"^apropos/$", about, name="pages-about"), - re_path(r"^association/$", association, name="pages-association"), - re_path(r"^contact/$", ContactView.as_view(), name="pages-contact"), - re_path(r"^cgu/$", eula, name="pages-eula"), - re_path(r"^alertes/$", alerts, name="pages-alerts"), - re_path(r"^cookies/$", cookies, name="pages-cookies"), - re_path(r"^historique-editions/(?P\d+)/$", CommentEditsHistory.as_view(), name="comment-edits-history"), - re_path(r"^contenu-original/(?P\d+)/$", EditDetail.as_view(), name="edit-detail"), - re_path(r"^restaurer-edition/(?P\d+)/$", restore_edit, name="restore-edit"), - re_path(r"^supprimer-contenu-edition/(?P\d+)/$", delete_edit_content, name="delete-edit-content"), + path("apropos/", about, name="pages-about"), + path("association/", association, name="pages-association"), + path("contact/", ContactView.as_view(), name="pages-contact"), + path("cgu/", eula, name="pages-eula"), + path("alertes/", alerts, name="pages-alerts"), + path("cookies/", cookies, name="pages-cookies"), + path("historique-editions//", CommentEditsHistory.as_view(), name="comment-edits-history"), + path("contenu-original//", EditDetail.as_view(), name="edit-detail"), + path("restaurer-edition//", restore_edit, name="restore-edit"), + path("supprimer-contenu-edition//", delete_edit_content, name="delete-edit-content"), # index - re_path(r"^$", index, name="pages-index"), + path("", index, name="pages-index"), ] diff --git a/zds/urls.py b/zds/urls.py index 885e4af975..07da621b64 100644 --- a/zds/urls.py +++ b/zds/urls.py @@ -86,7 +86,7 @@ def location(self, item): re_path(r"^mp/", include(("zds.mp.urls", ""))), re_path(r"^membres/", include(("zds.member.urls", ""))), re_path(r"^admin/", admin.site.urls), - re_path(r"^pages/", include(("zds.pages.urls", ""))), + path("pages/", include("zds.pages.urls")), path("galerie/", include("zds.gallery.urls")), re_path(r"^rechercher/", include(("zds.searchv2.urls", "zds.searchv2"), namespace="search")), path("munin/", include(("zds.munin.urls", ""))),