2018-12-07 22:52:28 +00:00
|
|
|
from django.urls import path, re_path
|
2015-12-22 21:10:52 +00:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
|
2017-01-19 07:39:46 +00:00
|
|
|
class URLObject:
|
2015-12-22 21:10:52 +00:00
|
|
|
urlpatterns = [
|
2022-02-03 19:24:19 +00:00
|
|
|
path("inner/", views.empty_view, name="urlobject-view"),
|
|
|
|
re_path(
|
|
|
|
r"^inner/(?P<arg1>[0-9]+)/(?P<arg2>[0-9]+)/$",
|
|
|
|
views.empty_view,
|
|
|
|
name="urlobject-view",
|
|
|
|
),
|
|
|
|
re_path(r"^inner/\+\\\$\*/$", views.empty_view, name="urlobject-special-view"),
|
2015-12-22 21:10:52 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
def __init__(self, app_name, namespace=None):
|
|
|
|
self.app_name = app_name
|
|
|
|
self.namespace = namespace
|
|
|
|
|
|
|
|
@property
|
|
|
|
def urls(self):
|
2017-01-10 14:57:49 +00:00
|
|
|
return (self.urlpatterns, self.app_name), self.namespace
|
2015-12-22 21:10:52 +00:00
|
|
|
|
|
|
|
@property
|
|
|
|
def app_urls(self):
|
|
|
|
return self.urlpatterns, self.app_name
|