~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

Viewing changes to tests/regressiontests/urlpatterns_reverse/included_namespace_urls.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2009-07-29 11:26:28 UTC
  • mfrom: (1.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20090729112628-9qrzwnl9x32jxhbg
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.conf.urls.defaults import *
 
2
from namespace_urls import URLObject
 
3
 
 
4
testobj3 = URLObject('testapp', 'test-ns3')
 
5
 
 
6
urlpatterns = patterns('regressiontests.urlpatterns_reverse.views',
 
7
    url(r'^normal/$', 'empty_view', name='inc-normal-view'),
 
8
    url(r'^normal/(?P<arg1>\d+)/(?P<arg2>\d+)/$', 'empty_view', name='inc-normal-view'),
 
9
 
 
10
    (r'^test3/', include(testobj3.urls)),
 
11
    (r'^ns-included3/', include('regressiontests.urlpatterns_reverse.included_urls', namespace='inc-ns3')),
 
12
)
 
13