2018-12-07 22:52:28 +00:00
|
|
|
from django.urls import path, re_path
|
2016-11-05 14:48:31 +00:00
|
|
|
|
|
|
|
from .views import empty_view
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
# No kwargs
|
2018-12-07 22:52:28 +00:00
|
|
|
path("conflict/cannot-go-here/", empty_view, name="name-conflict"),
|
|
|
|
path("conflict/", empty_view, name="name-conflict"),
|
2016-11-05 14:48:31 +00:00
|
|
|
# One kwarg
|
2018-12-07 22:52:28 +00: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 14:48:31 +00:00
|
|
|
# Two kwargs
|
2018-12-07 22:52:28 +00: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"
|
2022-02-03 19:24:19 +00:00
|
|
|
),
|
2016-11-05 14:48:31 +00:00
|
|
|
]
|