Mercurial > public > madeira
view mysite/urls.py @ 40:25e00d1b99bf
Get rid of the project name 'mysite' from the source.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 14 Feb 2012 19:09:57 -0600 |
parents | 903260593491 |
children |
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('band.urls')), (r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/', include(admin.site.urls)), (r'^photologue/', include('photologue.urls')), ) if settings.DEBUG: urlpatterns += patterns('', (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), )