Switch to path, use re_path only when really needed

This commit is contained in:
Peter Pfeufer
2022-02-02 15:09:48 +01:00
parent fd442a5735
commit 640a21e4db
24 changed files with 187 additions and 186 deletions

View File

@@ -1,17 +1,17 @@
import allianceauth.urls
from django.urls import re_path
from django.urls import path
from . import views
urlpatterns = allianceauth.urls.urlpatterns
urlpatterns += [
# Navhelper test urls
re_path(r'^main-page/$', views.page, name='p1'),
re_path(r'^main-page/sub-section/$', views.page, name='p1-s1'),
re_path(r'^second-page/$', views.page, name='p1'),
path("main-page/", views.page, name="p1"),
path("main-page/sub-section/", views.page, name="p1-s1"),
path("second-page/", views.page, name="p1"),
]
handler500 = 'allianceauth.views.Generic500Redirect'
handler404 = 'allianceauth.views.Generic404Redirect'
handler403 = 'allianceauth.views.Generic403Redirect'
handler400 = 'allianceauth.views.Generic400Redirect'
handler500 = "allianceauth.views.Generic500Redirect"
handler404 = "allianceauth.views.Generic404Redirect"
handler403 = "allianceauth.views.Generic403Redirect"
handler400 = "allianceauth.views.Generic400Redirect"