2015-08-17 14:45:00 +00:00
|
|
|
from django.conf.urls import include, url
|
2011-10-13 21:34:56 +00:00
|
|
|
|
2015-12-22 21:10:52 +00:00
|
|
|
from .utils import URLObject
|
2015-08-17 14:45:00 +00:00
|
|
|
from .views import empty_view, view_class_instance
|
2011-10-13 21:34:56 +00:00
|
|
|
|
2009-07-16 16:16:13 +00:00
|
|
|
testobj3 = URLObject('testapp', 'test-ns3')
|
2015-06-03 15:11:08 +00:00
|
|
|
testobj4 = URLObject('testapp', 'test-ns4')
|
2009-07-16 16:16:13 +00:00
|
|
|
|
2017-01-10 14:57:49 +00:00
|
|
|
app_name = 'included_namespace_urls'
|
2015-08-17 14:45:00 +00:00
|
|
|
urlpatterns = [
|
|
|
|
url(r'^normal/$', empty_view, name='inc-normal-view'),
|
|
|
|
url(r'^normal/(?P<arg1>[0-9]+)/(?P<arg2>[0-9]+)/$', empty_view, name='inc-normal-view'),
|
2009-07-16 16:16:13 +00:00
|
|
|
|
2015-08-17 14:45:00 +00:00
|
|
|
url(r'^\+\\\$\*/$', empty_view, name='inc-special-view'),
|
2011-11-07 01:09:13 +00:00
|
|
|
|
2015-08-17 14:45:00 +00:00
|
|
|
url(r'^mixed_args/([0-9]+)/(?P<arg2>[0-9]+)/$', empty_view, name='inc-mixed-args'),
|
|
|
|
url(r'^no_kwargs/([0-9]+)/([0-9]+)/$', empty_view, name='inc-no-kwargs'),
|
2010-08-05 07:09:47 +00:00
|
|
|
|
2015-08-17 14:45:00 +00:00
|
|
|
url(r'^view_class/(?P<arg1>[0-9]+)/(?P<arg2>[0-9]+)/$', view_class_instance, name='inc-view-class'),
|
2010-08-06 13:47:56 +00:00
|
|
|
|
2017-01-10 14:57:49 +00:00
|
|
|
url(r'^test3/', include(*testobj3.urls)),
|
|
|
|
url(r'^test4/', include(*testobj4.urls)),
|
|
|
|
url(r'^ns-included3/', include(('urlpatterns_reverse.included_urls', 'included_urls'), namespace='inc-ns3')),
|
2015-08-17 14:45:00 +00:00
|
|
|
url(r'^ns-included4/', include('urlpatterns_reverse.namespace_urls', namespace='inc-ns4')),
|
|
|
|
]
|