mirror of
https://github.com/django/django.git
synced 2025-09-13 22:16:28 +00:00
Updated test URL patterns to use path() and re_path().
This commit is contained in:
parent
1136d57f01
commit
043bd70942
104 changed files with 692 additions and 673 deletions
|
@ -1,14 +1,14 @@
|
|||
from django.conf.urls import include, url
|
||||
from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
|
||||
from . import views
|
||||
|
||||
backend_urls = ([
|
||||
url(r'^something/$', views.XViewClass.as_view(), name='something'),
|
||||
path('something/', views.XViewClass.as_view(), name='something'),
|
||||
], 'backend')
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
||||
url(r'^admin/', admin.site.urls),
|
||||
url(r'^api/backend/', include(backend_urls, namespace='backend')),
|
||||
path('admin/doc/', include('django.contrib.admindocs.urls')),
|
||||
path('admin/', admin.site.urls),
|
||||
path('api/backend/', include(backend_urls, namespace='backend')),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue