mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +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
|
@ -2,13 +2,13 @@
|
|||
Some extra URL patterns that are included at the top level.
|
||||
"""
|
||||
|
||||
from django.conf.urls import include, url
|
||||
from django.urls import include, path, re_path
|
||||
|
||||
from .views import empty_view
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^e-places/([0-9]+)/$', empty_view, name='extra-places'),
|
||||
url(r'^e-people/(?P<name>\w+)/$', empty_view, name="extra-people"),
|
||||
url('', include('urlpatterns_reverse.included_urls2')),
|
||||
url(r'^prefix/(?P<prefix>\w+)/', include('urlpatterns_reverse.included_urls2')),
|
||||
re_path('^e-places/([0-9]+)/$', empty_view, name='extra-places'),
|
||||
re_path(r'^e-people/(?P<name>\w+)/$', empty_view, name='extra-people'),
|
||||
path('', include('urlpatterns_reverse.included_urls2')),
|
||||
re_path(r'^prefix/(?P<prefix>\w+)/', include('urlpatterns_reverse.included_urls2')),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue