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 bob@14: from news.models import News ckridgway@16: from reviews.models import Review 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"), ckridgway@16: url(r'^reviews/$', ckridgway@16: ListView.as_view(model=Review), ckridgway@16: name="reviews"), bgneal@6: url(r'^bands/$', bgneal@6: ListView.as_view(model=Band), bgneal@6: name="bands"), bob@14: url(r'^news/$', bob@14: ListView.as_view(model=News), bob@14: name="news"), bgneal@9: url(r'^listen/$', bgneal@9: TemplateView.as_view(template_name="music.html"), bgneal@9: name="music"), bgneal@60: url(r'^watch/$', include('videos.urls')), bgneal@9: url(r'^buy/$', bgneal@9: TemplateView.as_view(template_name="buy.html"), bgneal@9: name="buy"), bgneal@95: url(r'^feedback/$', bgneal@95: TemplateView.as_view(template_name="feedback.html"), bgneal@95: name="feedback"), bgneal@6: url(r'^admin/doc/', include('django.contrib.admindocs.urls')), bgneal@6: url(r'^admin/', include(admin.site.urls)), bgneal@0: )