Skip to content

Commit

Permalink
settings: use re_path directly
Browse files Browse the repository at this point in the history
instead of deprecated alias `url`
  • Loading branch information
Aleksandr Shtaub committed Jan 17, 2024
1 parent 4bb610f commit 61532a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/demo_project/demo_project/urls.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from django.conf.urls import url
from django.urls import re_path
from django.contrib import admin

urlpatterns = [
# Examples:
# url(r'^$', 'demo_project.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
# re_path(r'^$', 'demo_project.views.home', name='home'),
# re_path(r'^blog/', include('blog.urls')),

url(r'^admin/', admin.site.urls),
re_path(r'^admin/', admin.site.urls),
]

0 comments on commit 61532a7

Please sign in to comment.