2018-12-08 06:52:28 +08:00
|
|
|
from django.urls import path, re_path
|
2016-11-05 22:48:31 +08:00
|
|
|
|
|
|
|
from .views import empty_view
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
# No kwargs
|
2018-12-08 06:52:28 +08:00
|
|
|
path('conflict/cannot-go-here/', empty_view, name='name-conflict'),
|
|
|
|
path('conflict/', empty_view, name='name-conflict'),
|
2016-11-05 22:48:31 +08:00
|
|
|
# One kwarg
|
2018-12-08 06:52:28 +08:00
|
|
|
re_path(r'^conflict-first/(?P<first>\w+)/$', empty_view, name='name-conflict'),
|
|
|
|
re_path(r'^conflict-cannot-go-here/(?P<middle>\w+)/$', empty_view, name='name-conflict'),
|
|
|
|
re_path(r'^conflict-middle/(?P<middle>\w+)/$', empty_view, name='name-conflict'),
|
|
|
|
re_path(r'^conflict-last/(?P<last>\w+)/$', empty_view, name='name-conflict'),
|
2016-11-05 22:48:31 +08:00
|
|
|
# Two kwargs
|
2018-12-08 06:52:28 +08:00
|
|
|
re_path(r'^conflict/(?P<another>\w+)/(?P<extra>\w+)/cannot-go-here/$', empty_view, name='name-conflict'),
|
|
|
|
re_path(r'^conflict/(?P<extra>\w+)/(?P<another>\w+)/$', empty_view, name='name-conflict'),
|
2016-11-05 22:48:31 +08:00
|
|
|
]
|