annotate 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 |
|
rev |
line source |
bgneal@1
|
1 from django.conf.urls.defaults import *
|
bgneal@1
|
2 from django.contrib import admin
|
bgneal@34
|
3 from django.conf import settings
|
bgneal@1
|
4
|
bgneal@1
|
5 admin.autodiscover()
|
bgneal@1
|
6
|
bgneal@1
|
7 urlpatterns = patterns('',
|
bgneal@40
|
8 (r'^', include('band.urls')),
|
bgneal@26
|
9 (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
bgneal@1
|
10 (r'^admin/', include(admin.site.urls)),
|
bgneal@40
|
11 (r'^photologue/', include('photologue.urls')),
|
bgneal@1
|
12 )
|
bgneal@1
|
13
|
bgneal@1
|
14 if settings.DEBUG:
|
bgneal@1
|
15 urlpatterns += patterns('',
|
bgneal@26
|
16 (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
|
bgneal@1
|
17 )
|