Update to latest LTS django version

This commit is contained in:
2023-09-04 21:33:34 +02:00
parent c567e38326
commit 566dafa87a
2 changed files with 5 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
from django.urls import include, path
from django.urls import include, path, re_path
from rest_framework import routers
from .views import *
from django.conf.urls import url
router = routers.DefaultRouter()
router.register(r'users', UserViewSet)
@@ -17,6 +16,6 @@ router.register(r'parts/component-param-types', PartsComponentParameterTypeViewS
urlpatterns = [
path('', include(router.urls)),
url(r'^token-auth/', ObtainExpiringAuthToken.as_view()),
url(r'^token-logout/', TokenLogout.as_view()),
re_path(r'^token-auth/', ObtainExpiringAuthToken.as_view()),
re_path(r'^token-logout/', TokenLogout.as_view()),
]