annotate mysite/urls.py @ 25:186c30a29be4 django1.3

Updating the madeira.wsgi file; added a robots.txt.
author Brian Neal <bgneal@gmail.com>
date Wed, 30 Mar 2011 00:00:58 +0000
parents ead7bd49c9e0
children 903260593491
rev   line source
bgneal@1 1 from django.conf.urls.defaults import *
bgneal@1 2 from django.contrib import admin
bgneal@1 3 from mysite import settings
bgneal@1 4
bgneal@1 5 admin.autodiscover()
bgneal@1 6
bgneal@1 7 urlpatterns = patterns('',
bgneal@1 8 (r'^', include('mysite.band.urls')),
bgneal@24 9 (r'^admin/doc/', include('django.contrib.admindocs.urls')),
bgneal@1 10 (r'^admin/', include(admin.site.urls)),
bgneal@1 11 (r'^photologue/', include('mysite.photologue.urls')),
bgneal@1 12 )
bgneal@1 13
bgneal@1 14 if settings.DEBUG:
bgneal@1 15 urlpatterns += patterns('',
bgneal@24 16 (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
bgneal@1 17 )