2011-09-11 22:36:16 +00:00
|
|
|
from django.conf.urls import patterns, url, include
|
2009-07-16 16:16:13 +00:00
|
|
|
from namespace_urls import URLObject
|
2010-08-06 13:47:56 +00:00
|
|
|
from views import view_class_instance
|
2009-07-16 16:16:13 +00:00
|
|
|
|
|
|
|
testobj3 = URLObject('testapp', 'test-ns3')
|
|
|
|
|
|
|
|
urlpatterns = patterns('regressiontests.urlpatterns_reverse.views',
|
|
|
|
url(r'^normal/$', 'empty_view', name='inc-normal-view'),
|
|
|
|
url(r'^normal/(?P<arg1>\d+)/(?P<arg2>\d+)/$', 'empty_view', name='inc-normal-view'),
|
|
|
|
|
2010-08-05 07:09:47 +00:00
|
|
|
url(r'^mixed_args/(\d+)/(?P<arg2>\d+)/$', 'empty_view', name='inc-mixed-args'),
|
|
|
|
url(r'^no_kwargs/(\d+)/(\d+)/$', 'empty_view', name='inc-no-kwargs'),
|
|
|
|
|
2010-08-06 13:47:56 +00:00
|
|
|
url(r'^view_class/(?P<arg1>\d+)/(?P<arg2>\d+)/$', view_class_instance, name='inc-view-class'),
|
|
|
|
|
2009-07-16 16:16:13 +00:00
|
|
|
(r'^test3/', include(testobj3.urls)),
|
|
|
|
(r'^ns-included3/', include('regressiontests.urlpatterns_reverse.included_urls', namespace='inc-ns3')),
|
2010-08-05 07:09:47 +00:00
|
|
|
(r'^ns-included4/', include('regressiontests.urlpatterns_reverse.namespace_urls', namespace='inc-ns4')),
|
2009-07-16 16:16:13 +00:00
|
|
|
)
|
|
|
|
|