Mercurial > public > bravenewsurf
comparison bns_website/urls.py @ 9:f2cb9b2ec552
Added generic views for music, videos, and the buy page with placeholder text.
Fix typo in bands.json.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 29 Oct 2011 22:31:42 -0500 |
parents | 48ff23eab86a |
children | 2de51cc51d3a |
comparison
equal
deleted
inserted
replaced
8:92537b487942 | 9:f2cb9b2ec552 |
---|---|
12 TemplateView.as_view(template_name="home.html"), | 12 TemplateView.as_view(template_name="home.html"), |
13 name="home"), | 13 name="home"), |
14 url(r'^bands/$', | 14 url(r'^bands/$', |
15 ListView.as_view(model=Band), | 15 ListView.as_view(model=Band), |
16 name="bands"), | 16 name="bands"), |
17 url(r'^listen/$', | |
18 TemplateView.as_view(template_name="music.html"), | |
19 name="music"), | |
20 url(r'^watch/$', | |
21 TemplateView.as_view(template_name="videos.html"), | |
22 name="videos"), | |
23 url(r'^buy/$', | |
24 TemplateView.as_view(template_name="buy.html"), | |
25 name="buy"), | |
17 | 26 |
18 # Examples: | 27 # Examples: |
19 # url(r'^$', 'bns_website.views.home', name='home'), | 28 # url(r'^$', 'bns_website.views.home', name='home'), |
20 # url(r'^bns_website/', include('bns_website.foo.urls')), | 29 # url(r'^bns_website/', include('bns_website.foo.urls')), |
21 | 30 |