2018-05-26 22:56:17 +02:00
|
|
|
from django.urls import include, path, register_converter
|
2016-10-20 19:29:04 +02:00
|
|
|
|
|
|
|
from . import converters, views
|
|
|
|
|
|
|
|
register_converter(converters.Base64Converter, "base64")
|
|
|
|
|
2018-09-20 20:24:36 +02:00
|
|
|
subsubpatterns = [
|
|
|
|
path("<base64:last_value>/", views.empty_view, name="subsubpattern-base64"),
|
|
|
|
]
|
|
|
|
|
2018-05-26 22:56:17 +02:00
|
|
|
subpatterns = [
|
|
|
|
path("<base64:value>/", views.empty_view, name="subpattern-base64"),
|
2018-09-20 20:24:36 +02:00
|
|
|
path(
|
|
|
|
"<base64:value>/",
|
|
|
|
include(
|
|
|
|
(subsubpatterns, "second-layer-namespaced-base64"), "instance-ns-base64"
|
2022-02-03 20:24:19 +01:00
|
|
|
),
|
2018-09-20 20:24:36 +02:00
|
|
|
),
|
2018-05-26 22:56:17 +02:00
|
|
|
]
|
|
|
|
|
2016-10-20 19:29:04 +02:00
|
|
|
urlpatterns = [
|
|
|
|
path("base64/<base64:value>/", views.empty_view, name="base64"),
|
2018-05-26 22:56:17 +02:00
|
|
|
path("base64/<base64:base>/subpatterns/", include(subpatterns)),
|
|
|
|
path(
|
|
|
|
"base64/<base64:base>/namespaced/", include((subpatterns, "namespaced-base64"))
|
|
|
|
),
|
2016-10-20 19:29:04 +02:00
|
|
|
]
|