Mercurial > public > bravenewsurf
diff 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 |
line wrap: on
line diff
--- a/bns_website/urls.py Sun Oct 30 21:37:52 2011 -0500 +++ b/bns_website/urls.py Sun Oct 30 23:07:05 2011 -0500 @@ -5,6 +5,7 @@ from bands.models import Band from news.models import News +from reviews.models import Review admin.autodiscover() @@ -12,6 +13,9 @@ url(r'^$', TemplateView.as_view(template_name="home.html"), name="home"), + url(r'^reviews/$', + ListView.as_view(model=Review), + name="reviews"), url(r'^bands/$', ListView.as_view(model=Band), name="bands"),