Mercurial > public > madeira
comparison 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 |
comparison
equal
deleted
inserted
replaced
39:b8e166ca993a | 40:25e00d1b99bf |
---|---|
3 from django.conf import settings | 3 from django.conf import settings |
4 | 4 |
5 admin.autodiscover() | 5 admin.autodiscover() |
6 | 6 |
7 urlpatterns = patterns('', | 7 urlpatterns = patterns('', |
8 (r'^', include('mysite.band.urls')), | 8 (r'^', include('band.urls')), |
9 (r'^admin/doc/', include('django.contrib.admindocs.urls')), | 9 (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
10 (r'^admin/', include(admin.site.urls)), | 10 (r'^admin/', include(admin.site.urls)), |
11 (r'^photologue/', include('mysite.photologue.urls')), | 11 (r'^photologue/', include('photologue.urls')), |
12 ) | 12 ) |
13 | 13 |
14 if settings.DEBUG: | 14 if settings.DEBUG: |
15 urlpatterns += patterns('', | 15 urlpatterns += patterns('', |
16 (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), | 16 (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), |