Mercurial > public > bravenewsurf
view bns_website/urls.py @ 11:d5f3bb516fd3
For issue #4, add support for the Django Debug Toolbar if in debug mode.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 30 Oct 2011 14:51:12 -0500 |
parents | f2cb9b2ec552 |
children | 2de51cc51d3a |
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 admin.autodiscover() urlpatterns = patterns('', url(r'^$', TemplateView.as_view(template_name="home.html"), name="home"), url(r'^bands/$', ListView.as_view(model=Band), name="bands"), 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)), )