Mercurial > public > bravenewsurf
comparison bns_website/urls.py @ 18:abe08d74dab3
I merged Chris' Reviews branch with mine.
author | Bob Mourlam <bob.mourlam@gmail.com> |
---|---|
date | Mon, 31 Oct 2011 20:38:43 -0500 |
parents | 71f2beb03789 |
children | a0d3bc630ebd |
comparison
equal
deleted
inserted
replaced
17:5348d2235497 | 18:abe08d74dab3 |
---|---|
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), |