mirror of
https://github.com/django/django.git
synced 2024-12-26 11:06:07 +00:00
8d48eaa064
This change is backwards incompatible for anyone that is using the named URLs introduced in [9739]. Any usage of the old admin_XXX names need to be modified to use the new namespaced format; in many cases this will be as simple as a search & replace for "admin_" -> "admin:". See the docs for more details on the new URL names, and the namespace resolution strategy. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
14 lines
495 B
Python
14 lines
495 B
Python
from django.conf.urls.defaults import *
|
|
from namespace_urls import URLObject
|
|
|
|
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'),
|
|
|
|
(r'^test3/', include(testobj3.urls)),
|
|
(r'^ns-included3/', include('regressiontests.urlpatterns_reverse.included_urls', namespace='inc-ns3')),
|
|
)
|
|
|