Mercurial > public > bravenewsurf
view bns_website/urls.py @ 28:20dc7be59c85
Addresses three items from #2, comment #2.
1. Made review title a mandatory field
3. Changed reviews display to use Bootstrap <blockquote> instead of <cite>
4. Ordering of reviews is now reverse chronological
see ticket #2
author | Chris Ridgway <ckridgway@gmail.com> |
---|---|
date | Thu, 03 Nov 2011 23:00:34 -0500 |
parents | 71f2beb03789 |
children | a0d3bc630ebd |
line wrap: on
line source
from django.conf.urls.defaults import patterns, include, url from django.contrib import admin from django.views.generic.base import TemplateView from django.views.generic import ListView from bands.models import Band from news.models import News from reviews.models import Review admin.autodiscover() urlpatterns = patterns('', 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"), url(r'^news/$', ListView.as_view(model=News), name="news"), url(r'^listen/$', TemplateView.as_view(template_name="music.html"), name="music"), url(r'^watch/$', TemplateView.as_view(template_name="videos.html"), name="videos"), url(r'^buy/$', TemplateView.as_view(template_name="buy.html"), name="buy"), # Examples: # url(r'^$', 'bns_website.views.home', name='home'), # url(r'^bns_website/', include('bns_website.foo.urls')), url(r'^admin/doc/', include('django.contrib.admindocs.urls')), url(r'^admin/', include(admin.site.urls)), )