Changes between Version 1 and Version 2 of URLNamespacing


Ignore:
Timestamp:
Jan 4, 2015, 12:18:17 PM (10 years ago)
Author:
Florian Apolloner
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • URLNamespacing

    v1 v2  
    1414{{{#!python
    1515urlpatterns = [
    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'),
    1818]
    1919}}}
     
    5656
    5757urlpatterns = [
    58   url('^blog/', include(blog_patterns, 'blog', 'blog'),
     58  url('^blog/', include(blog_patterns, namespace='blog', app_name='blog'),
    5959]
    6060}}}
Back to Top