mirror of
https://github.com/django/django.git
synced 2024-12-27 03:25:58 +00:00
69d1e71fad
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
21 lines
901 B
Python
21 lines
901 B
Python
from django.conf.urls.defaults import *
|
|
from namespace_urls import URLObject
|
|
from views import view_class_instance
|
|
|
|
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'),
|
|
|
|
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'),
|
|
|
|
url(r'^view_class/(?P<arg1>\d+)/(?P<arg2>\d+)/$', view_class_instance, name='inc-view-class'),
|
|
|
|
(r'^test3/', include(testobj3.urls)),
|
|
(r'^ns-included3/', include('regressiontests.urlpatterns_reverse.included_urls', namespace='inc-ns3')),
|
|
(r'^ns-included4/', include('regressiontests.urlpatterns_reverse.namespace_urls', namespace='inc-ns4')),
|
|
)
|
|
|