2 7 8 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 |
(r'^authority/', include('authority.urls')), (r'^i18n/', include('django.conf.urls.i18n')),
(r'^pages/', include('pages.urls')), (r'^admin/', include(admin.site.urls)), # make tests fail if a backend is not present on the system #(r'^search/', include('haystack.urls')), )
# An example on how to handle delegated applications:
""" if pages_settings.PAGE_USE_LANGUAGE_PREFIX: urlpatterns += patterns('', url(r'^pages/(?P<lang>[-\w]+)/(?P<path>.*)/documents/', include("example.documents.urls")), url(r'^pages/(?P<lang>[-\w]+)/(?P<path>.*)$', details, name='pages-details-by-path') ) else: urlpatterns += patterns('', url(r'^pages/$', details, name='pages-root'), url(r'^pages/(?P<path>.*)/documents/', include("example.documents.urls")), url(r'^pages/(?P<path>.*)$', details, name='pages-details-by-path') ) """
urlpatterns += patterns('', # Trick for Django to support static files # (security hole: only for Dev environement! remove this on Prod!!!) (r'', include('staticfiles.urls')), ) |