diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-10-15 19:03:22 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-10-24 18:32:21 +0200 |
| commit | 3b0ba2784032b835b82a5336c373c1acaa8b0914 (patch) | |
| tree | 6dd7a0d51c4e53e6b747e0f1552761835b7fd171 /example_project/urls.py | |
| parent | f00b330c99da66acf43219a2ab762b967fac6deb (diff) | |
| download | Ishtar-3b0ba2784032b835b82a5336c373c1acaa8b0914.tar.bz2 Ishtar-3b0ba2784032b835b82a5336c373c1acaa8b0914.zip | |
♻️ django 3.2 deprecation: url -> re_path ; ugettext_lazy -> gettext_lazy
Diffstat (limited to 'example_project/urls.py')
| -rw-r--r-- | example_project/urls.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/example_project/urls.py b/example_project/urls.py index 9615afd5b..528d47259 100644 --- a/example_project/urls.py +++ b/example_project/urls.py @@ -1,5 +1,6 @@ from django.conf import settings -from django.conf.urls import include, url +from django.conf.urls import include +from django.urls import re_path from django.contrib import admin from ishtar_common.apps import admin_site @@ -16,13 +17,13 @@ APP_LIST = ['archaeological_files', 'archaeological_warehouse', 'archaeological_finds'] for app in APP_LIST: urlpatterns += [ - url('', include(app + '.urls')), + re_path('', include(app + '.urls')), ] urlpatterns += [ - url(r'^admin/', include(admin_site.urls[:2])), - url(r'', include('ishtar_common.urls')), - url(r'^$', index, name='start'), + re_path(r'^admin/', include(admin_site.urls[:2])), + re_path(r'', include('ishtar_common.urls')), + re_path(r'^$', index, name='start'), ] if settings.DEBUG: @@ -35,6 +36,6 @@ if settings.DEBUG: if settings.DEBUG_TOOLBAR: import debug_toolbar urlpatterns = [ - url(r'^__debug__/', include(debug_toolbar.urls)), + re_path(r'^__debug__/', include(debug_toolbar.urls)), ] + urlpatterns |
