From 6a51aef6c1487418d6227e0d5aab81265bbe6bb5 Mon Sep 17 00:00:00 2001 From: Calum Young Date: Mon, 6 May 2024 14:54:01 +0100 Subject: [PATCH] Run django upgrade --- knox_project/settings.py | 1 - knox_project/urls.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/knox_project/settings.py b/knox_project/settings.py index d5b6c40c..a6b07b0c 100644 --- a/knox_project/settings.py +++ b/knox_project/settings.py @@ -49,7 +49,6 @@ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True -USE_L10N = True # Deprecated since django 4.0. USE_TZ = True STATIC_URL = '/static/' diff --git a/knox_project/urls.py b/knox_project/urls.py index fa9ccfc8..bd44c3a1 100644 --- a/knox_project/urls.py +++ b/knox_project/urls.py @@ -1,8 +1,8 @@ -from django.urls import include, re_path +from django.urls import include, path from .views import RootView urlpatterns = [ - re_path(r'^api/', include('knox.urls')), - re_path(r'^api/$', RootView.as_view(), name="api-root"), + path('api/', include('knox.urls')), + path('api/', RootView.as_view(), name="api-root"), ]