diff bns_website/urls.py @ 14:2de51cc51d3a

My first stab at the news app. The template is a little dull, but it's a start.
author Bob Mourlam <bob.mourlam@gmail.com>
date Sun, 30 Oct 2011 21:33:45 -0500
parents f2cb9b2ec552
children 71f2beb03789
line wrap: on
line diff
--- a/bns_website/urls.py	Sun Oct 30 18:29:41 2011 -0500
+++ b/bns_website/urls.py	Sun Oct 30 21:33:45 2011 -0500
@@ -4,6 +4,7 @@
 from django.views.generic import ListView
 
 from bands.models import Band
+from news.models import News
 
 admin.autodiscover()
 
@@ -14,6 +15,9 @@
     url(r'^bands/$',
         ListView.as_view(model=Band),
         name="bands"),
+    url(r'^news/$',
+        ListView.as_view(model=News),
+        name="news"),
     url(r'^listen/$',
         TemplateView.as_view(template_name="music.html"),
         name="music"),