Changes between Version 1 and Version 2 of URLNamespacing
- Timestamp:
- Jan 4, 2015, 12:18:17 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
URLNamespacing
v1 v2 14 14 {{{#!python 15 15 urlpatterns = [ 16 url('^admin1/', include(admin_urls, 'admin1','admin'),17 url('^admin2/', include(admin_urls, 'admin2','admin'),16 url('^admin1/', include(admin_urls, namespace='admin1', app_name='admin'), 17 url('^admin2/', include(admin_urls, namespace='admin2', app_name='admin'), 18 18 ] 19 19 }}} … … 56 56 57 57 urlpatterns = [ 58 url('^blog/', include(blog_patterns, 'blog','blog'),58 url('^blog/', include(blog_patterns, namespace='blog', app_name='blog'), 59 59 ] 60 60 }}}