1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 17:18:24 +02:00

Use Django 4.1 (soon 4.2) to use the new async framework

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2023-03-22 12:14:24 +01:00
parent f3d611913e
commit 19f41152ee
5 changed files with 31 additions and 7 deletions

View File

@ -2,7 +2,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
from django.conf import settings
from django.conf.urls import include, url
from django.urls import include, path
from rest_framework import routers
from .viewsets import UserViewSet
@ -29,6 +29,6 @@ app_name = 'api'
# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.
urlpatterns = [
url('^', include(router.urls)),
url('^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
path('', include(router.urls)),
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
]