annotate madeira/urls.py @ 55:0176eca97d1d

In the middle of revamping the band application. Moved the base and home templates out of the band directory. Started hacking on the band models, finally getting rid of older models and views. Not everything works yet in this commit.
author Brian Neal <bgneal@gmail.com>
date Sat, 07 Apr 2012 15:58:51 -0500
parents 13b2561c909d
children 9b9daefba97a
rev   line source
bgneal@55 1 from django.conf.urls.defaults import patterns, include, url
bgneal@1 2 from django.contrib import admin
bgneal@45 3 from django.conf.urls.static import static
bgneal@34 4 from django.conf import settings
bgneal@55 5 from django.views.generic import TemplateView
bgneal@1 6
bgneal@1 7 admin.autodiscover()
bgneal@1 8
bgneal@1 9 urlpatterns = patterns('',
bgneal@55 10 url(r'^$',
bgneal@55 11 TemplateView.as_view(template_name='index.html'),
bgneal@55 12 name='home'),
bgneal@40 13 (r'^', include('band.urls')),
bgneal@44 14 (r'^gigs/', include('gigs.urls')),
bgneal@51 15 (r'^mail/', include('email_list.urls')),
bgneal@45 16 (r'^news/', include('news.urls')),
bgneal@47 17 (r'^press/', include('articles.urls')),
bgneal@48 18 (r'^songs/', include('mp3.urls')),
bgneal@50 19 (r'^videos/', include('videos.urls')),
bgneal@26 20 (r'^admin/doc/', include('django.contrib.admindocs.urls')),
bgneal@1 21 (r'^admin/', include(admin.site.urls)),
bgneal@40 22 (r'^photologue/', include('photologue.urls')),
bgneal@45 23 )
bgneal@45 24
bgneal@45 25 # For serving media files in development only:
bgneal@45 26 urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)