From 61532a730086fdca2ec96ab884c0286a3c8d7458 Mon Sep 17 00:00:00 2001 From: Aleksandr Shtaub Date: Wed, 17 Jan 2024 14:08:39 +0200 Subject: [PATCH] settings: use `re_path` directly instead of deprecated alias `url` --- tests/demo_project/demo_project/urls.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/demo_project/demo_project/urls.py b/tests/demo_project/demo_project/urls.py index fbb3020..4bb3987 100644 --- a/tests/demo_project/demo_project/urls.py +++ b/tests/demo_project/demo_project/urls.py @@ -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), ]