view mysite/urls.py @ 28:a404f93a68d3

Decrease by 2 orders of magnitude the number of queries needed to generate the gigs page for the Madeira.
author Brian Neal <bgneal@gmail.com>
date Thu, 31 Mar 2011 00:14:34 +0000
parents efb2da0b5d10
children 903260593491
line wrap: on
line source
from django.conf.urls.defaults import *
from django.contrib import admin
from mysite 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}),
   )