| 1 |
from django.urls import path, re_path |
| 2 |
|
| 3 |
from .views import empty_view |
| 4 |
|
| 5 |
urlpatterns = [ |
| 6 |
# No kwargs |
| 7 |
path("conflict/cannot-go-here/", empty_view, name="name-conflict"), |
| 8 |
path("conflict/", empty_view, name="name-conflict"), |
| 9 |
# One kwarg |
| 10 |
re_path(r"^conflict-first/(?P<first>\w+)/$", empty_view, name="name-conflict"), |
| 11 |
re_path( |
| 12 |
r"^conflict-cannot-go-here/(?P<middle>\w+)/$", empty_view, name="name-conflict" |
| 13 |
), |
| 14 |
re_path(r"^conflict-middle/(?P<middle>\w+)/$", empty_view, name="name-conflict"), |
| 15 |
re_path(r"^conflict-last/(?P<last>\w+)/$", empty_view, name="name-conflict"), |
| 16 |
# Two kwargs |
| 17 |
re_path( |
| 18 |
r"^conflict/(?P<another>\w+)/(?P<extra>\w+)/cannot-go-here/$", |
| 19 |
empty_view, |
| 20 |
name="name-conflict", |
| 21 |
), |
| 22 |
re_path( |
| 23 |
r"^conflict/(?P<extra>\w+)/(?P<another>\w+)/$", empty_view, name="name-conflict" |
| 24 |
), |
| 25 |
] |