Replaced django.conf.urls.url by django.urls.re_path

This commit is contained in:
2025-04-10 12:14:35 +02:00
parent e953dcc7e0
commit b70fbbfa90
7 changed files with 39 additions and 39 deletions

View File

@@ -1,11 +1,11 @@
from django.conf.urls import url
from django.urls import re_path
from django.contrib import admin
from django.views import generic
from . import views
urlpatterns = [
url(r'^$', views.RootView.as_view(), name='root'),
url(r'^css-demo$', generic.TemplateView.as_view(template_name='dav_base/css_demo.html'), name='css-demo'),
url(r'^djangoadmin/', admin.site.urls),
re_path(r'^$', views.RootView.as_view(), name='root'),
re_path(r'^css-demo$', generic.TemplateView.as_view(template_name='dav_base/css_demo.html'), name='css-demo'),
re_path(r'^djangoadmin/', admin.site.urls),
]