annotate bns_website/urls.py @ 11:d5f3bb516fd3

For issue #4, add support for the Django Debug Toolbar if in debug mode.
author Brian Neal <bgneal@gmail.com>
date Sun, 30 Oct 2011 14:51:12 -0500
parents f2cb9b2ec552
children 2de51cc51d3a
rev   line source
bgneal@0 1 from django.conf.urls.defaults import patterns, include, url
bgneal@6 2 from django.contrib import admin
bgneal@3 3 from django.views.generic.base import TemplateView
bgneal@6 4 from django.views.generic import ListView
bgneal@0 5
bgneal@6 6 from bands.models import Band
bgneal@3 7
bgneal@6 8 admin.autodiscover()
bgneal@0 9
bgneal@0 10 urlpatterns = patterns('',
bgneal@6 11 url(r'^$',
bgneal@3 12 TemplateView.as_view(template_name="home.html"),
bgneal@3 13 name="home"),
bgneal@6 14 url(r'^bands/$',
bgneal@6 15 ListView.as_view(model=Band),
bgneal@6 16 name="bands"),
bgneal@9 17 url(r'^listen/$',
bgneal@9 18 TemplateView.as_view(template_name="music.html"),
bgneal@9 19 name="music"),
bgneal@9 20 url(r'^watch/$',
bgneal@9 21 TemplateView.as_view(template_name="videos.html"),
bgneal@9 22 name="videos"),
bgneal@9 23 url(r'^buy/$',
bgneal@9 24 TemplateView.as_view(template_name="buy.html"),
bgneal@9 25 name="buy"),
bgneal@3 26
bgneal@0 27 # Examples:
bgneal@0 28 # url(r'^$', 'bns_website.views.home', name='home'),
bgneal@0 29 # url(r'^bns_website/', include('bns_website.foo.urls')),
bgneal@0 30
bgneal@6 31 url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
bgneal@6 32 url(r'^admin/', include(admin.site.urls)),
bgneal@0 33 )