bgneal@0: from django.conf.urls.defaults import patterns, include, url bgneal@6: from django.contrib import admin bgneal@3: from django.views.generic.base import TemplateView bgneal@6: from django.views.generic import ListView bgneal@0: bgneal@6: from bands.models import Band bgneal@3: bgneal@6: admin.autodiscover() bgneal@0: bgneal@0: urlpatterns = patterns('', bgneal@6: url(r'^$', bgneal@3: TemplateView.as_view(template_name="home.html"), bgneal@3: name="home"), bgneal@6: url(r'^bands/$', bgneal@6: ListView.as_view(model=Band), bgneal@6: name="bands"), bgneal@9: url(r'^listen/$', bgneal@9: TemplateView.as_view(template_name="music.html"), bgneal@9: name="music"), bgneal@9: url(r'^watch/$', bgneal@9: TemplateView.as_view(template_name="videos.html"), bgneal@9: name="videos"), bgneal@9: url(r'^buy/$', bgneal@9: TemplateView.as_view(template_name="buy.html"), bgneal@9: name="buy"), bgneal@3: bgneal@0: # Examples: bgneal@0: # url(r'^$', 'bns_website.views.home', name='home'), bgneal@0: # url(r'^bns_website/', include('bns_website.foo.urls')), bgneal@0: bgneal@6: url(r'^admin/doc/', include('django.contrib.admindocs.urls')), bgneal@6: url(r'^admin/', include(admin.site.urls)), bgneal@0: )