annotate bns_website/urls.py @ 35:5992b6b1bcd2

Fix out of date comments and test names in bands and reviews.
author Brian Neal <bgneal@gmail.com>
date Sun, 06 Nov 2011 13:55:16 -0600
parents 71f2beb03789
children a0d3bc630ebd
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
bob@14 7 from news.models import News
ckridgway@16 8 from reviews.models import Review
bgneal@3 9
bgneal@6 10 admin.autodiscover()
bgneal@0 11
bgneal@0 12 urlpatterns = patterns('',
bgneal@6 13 url(r'^$',
bgneal@3 14 TemplateView.as_view(template_name="home.html"),
bgneal@3 15 name="home"),
ckridgway@16 16 url(r'^reviews/$',
ckridgway@16 17 ListView.as_view(model=Review),
ckridgway@16 18 name="reviews"),
bgneal@6 19 url(r'^bands/$',
bgneal@6 20 ListView.as_view(model=Band),
bgneal@6 21 name="bands"),
bob@14 22 url(r'^news/$',
bob@14 23 ListView.as_view(model=News),
bob@14 24 name="news"),
bgneal@9 25 url(r'^listen/$',
bgneal@9 26 TemplateView.as_view(template_name="music.html"),
bgneal@9 27 name="music"),
bgneal@9 28 url(r'^watch/$',
bgneal@9 29 TemplateView.as_view(template_name="videos.html"),
bgneal@9 30 name="videos"),
bgneal@9 31 url(r'^buy/$',
bgneal@9 32 TemplateView.as_view(template_name="buy.html"),
bgneal@9 33 name="buy"),
bgneal@3 34
bgneal@0 35 # Examples:
bgneal@0 36 # url(r'^$', 'bns_website.views.home', name='home'),
bgneal@0 37 # url(r'^bns_website/', include('bns_website.foo.urls')),
bgneal@0 38
bgneal@6 39 url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
bgneal@6 40 url(r'^admin/', include(admin.site.urls)),
bgneal@0 41 )