annotate bns_website/urls.py @ 93:c9955ef6707f

Change link color on the news page.
author Brian Neal <bgneal@gmail.com>
date Tue, 29 Nov 2011 18:44:22 -0600
parents a0d3bc630ebd
children 1b5def90f5bf
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@60 28 url(r'^watch/$', include('videos.urls')),
bgneal@9 29 url(r'^buy/$',
bgneal@9 30 TemplateView.as_view(template_name="buy.html"),
bgneal@9 31 name="buy"),
bgneal@6 32 url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
bgneal@6 33 url(r'^admin/', include(admin.site.urls)),
bgneal@0 34 )