Mercurial > public > bravenewsurf
annotate bns_website/urls.py @ 95:1b5def90f5bf
Created a feedback page with Disqus comments.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 14 Dec 2011 19:52:32 -0600 |
parents | a0d3bc630ebd |
children |
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@95 | 32 url(r'^feedback/$', |
bgneal@95 | 33 TemplateView.as_view(template_name="feedback.html"), |
bgneal@95 | 34 name="feedback"), |
bgneal@6 | 35 url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
bgneal@6 | 36 url(r'^admin/', include(admin.site.urls)), |
bgneal@0 | 37 ) |