Skip to content

Commit

Permalink
Run django upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
calumy committed May 6, 2024
1 parent 00086fb commit 6a51aef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion knox_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/'
Expand Down
6 changes: 3 additions & 3 deletions knox_project/urls.py
Original file line number Diff line number Diff line change
@@ -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"),
]

0 comments on commit 6a51aef

Please sign in to comment.