Skip to content

Commit

Permalink
fix: remove django.conf.urls.url
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Sep 28, 2023
1 parent f7de003 commit d7f70f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ricerca/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.conf import settings
from django.conf.urls import url
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.auth.decorators import login_required
Expand Down Expand Up @@ -54,7 +53,7 @@
urlpatterns += path('', include((ricerca_app.urls, 'ricerca',))),

if 'silk' in settings.INSTALLED_APPS:
urlpatterns += [url(r'^silk/', include('silk.urls', namespace='silk'))]
urlpatterns += re_path(r'^silk/', include('silk.urls', namespace='silk'))

if 'crud.utils' in settings.INSTALLED_APPS:
import crud.utils.urls
Expand Down

0 comments on commit d7f70f1

Please sign in to comment.