diff --git a/SAS/LSMR/src/lsmr/urls.py b/SAS/LSMR/src/lsmr/urls.py index f901bf508af4a670be1bd1a0c093846c2fbc0a4c..97f8f63c0711e1a932afcf1694b726f3731186e5 100644 --- a/SAS/LSMR/src/lsmr/urls.py +++ b/SAS/LSMR/src/lsmr/urls.py @@ -15,7 +15,7 @@ Including another URLconf """ from django.contrib import admin -from django.urls import path, url +from django.urls import path, re_path from django.views.generic.base import TemplateView from rest_framework import routers, permissions @@ -45,7 +45,7 @@ schema_view = get_schema_view( urlpatterns = [ path('admin/', admin.site.urls), path('docs/', include_docs_urls(title='LSMR API')), - url(r'^swagger(?P<format>\.json|\.yaml)$', schema_view.without_ui(cache_timeout=0), name='schema-json'), + re_path(r'^swagger(?P<format>\.json|\.yaml)$', schema_view.without_ui(cache_timeout=0), name='schema-json'), path('swagger/', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'), path('redoc/', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'), ]