2018-05-27 04:56:17 +08:00
|
|
|
from django.urls import include, path, register_converter
|
2016-10-21 01:29:04 +08:00
|
|
|
|
|
|
|
from . import converters, views
|
|
|
|
|
|
|
|
register_converter(converters.Base64Converter, 'base64')
|
|
|
|
|
2018-05-27 04:56:17 +08:00
|
|
|
subpatterns = [
|
|
|
|
path('<base64:value>/', views.empty_view, name='subpattern-base64'),
|
|
|
|
]
|
|
|
|
|
2016-10-21 01:29:04 +08:00
|
|
|
urlpatterns = [
|
|
|
|
path('base64/<base64:value>/', views.empty_view, name='base64'),
|
2018-05-27 04:56:17 +08:00
|
|
|
path('base64/<base64:base>/subpatterns/', include(subpatterns)),
|
|
|
|
path('base64/<base64:base>/namespaced/', include((subpatterns, 'namespaced-base64'))),
|
2016-10-21 01:29:04 +08:00
|
|
|
]
|