Mercurial > public > madeira
comparison mysite/urls.py @ 24:ead7bd49c9e0 django1.3
Changes to support Django 1.3
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 29 Mar 2011 01:51:10 +0000 |
parents | 0dcfcdf50c62 |
children | 903260593491 |
comparison
equal
deleted
inserted
replaced
23:6ad81d6a86bf | 24:ead7bd49c9e0 |
---|---|
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('mysite.band.urls')), |
9 (r'^admin/doc/', include('django.contrib.admindocs.urls')), | |
9 (r'^admin/', include(admin.site.urls)), | 10 (r'^admin/', include(admin.site.urls)), |
10 (r'^photologue/', include('mysite.photologue.urls')), | 11 (r'^photologue/', include('mysite.photologue.urls')), |
11 ) | 12 ) |
12 | 13 |
13 if settings.DEBUG: | 14 if settings.DEBUG: |
14 urlpatterns += patterns('', | 15 urlpatterns += patterns('', |
15 (r'^static/(?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}), |
16 ) | 17 ) |