Mercurial > public > madeira
view mysite/urls.py @ 37:c1f3658830e0
Add middleware to support site-wide caching for anonymous users.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 30 Nov 2011 00:21:51 +0000 |
parents | 903260593491 |
children | 25e00d1b99bf |
line wrap: on
line source
from django.conf.urls.defaults import * from django.contrib import admin from django.conf import settings admin.autodiscover() urlpatterns = patterns('', (r'^', include('mysite.band.urls')), (r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/', include(admin.site.urls)), (r'^photologue/', include('mysite.photologue.urls')), ) if settings.DEBUG: urlpatterns += patterns('', (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), )