Mercurial > public > bravenewsurf
comparison bns_website/urls.py @ 16:71f2beb03789
First stab at the review app.
author | Chris Ridgway <ckridgway@gmail.com> |
---|---|
date | Sun, 30 Oct 2011 23:07:05 -0500 |
parents | 2de51cc51d3a |
children | a0d3bc630ebd |
comparison
equal
deleted
inserted
replaced
15:6b664ec90f2f | 16:71f2beb03789 |
---|---|
3 from django.views.generic.base import TemplateView | 3 from django.views.generic.base import TemplateView |
4 from django.views.generic import ListView | 4 from django.views.generic import ListView |
5 | 5 |
6 from bands.models import Band | 6 from bands.models import Band |
7 from news.models import News | 7 from news.models import News |
8 from reviews.models import Review | |
8 | 9 |
9 admin.autodiscover() | 10 admin.autodiscover() |
10 | 11 |
11 urlpatterns = patterns('', | 12 urlpatterns = patterns('', |
12 url(r'^$', | 13 url(r'^$', |
13 TemplateView.as_view(template_name="home.html"), | 14 TemplateView.as_view(template_name="home.html"), |
14 name="home"), | 15 name="home"), |
16 url(r'^reviews/$', | |
17 ListView.as_view(model=Review), | |
18 name="reviews"), | |
15 url(r'^bands/$', | 19 url(r'^bands/$', |
16 ListView.as_view(model=Band), | 20 ListView.as_view(model=Band), |
17 name="bands"), | 21 name="bands"), |
18 url(r'^news/$', | 22 url(r'^news/$', |
19 ListView.as_view(model=News), | 23 ListView.as_view(model=News), |