Mercurial > public > madeira
view madeira/urls.py @ 55:0176eca97d1d
In the middle of revamping the band application. Moved the base and home
templates out of the band directory. Started hacking on the band models,
finally getting rid of older models and views. Not everything works yet
in this commit.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 07 Apr 2012 15:58:51 -0500 |
parents | 13b2561c909d |
children | 9b9daefba97a |
line wrap: on
line source
from django.conf.urls.defaults import patterns, include, url from django.contrib import admin from django.conf.urls.static import static from django.conf import settings from django.views.generic import TemplateView admin.autodiscover() urlpatterns = patterns('', url(r'^$', TemplateView.as_view(template_name='index.html'), name='home'), (r'^', include('band.urls')), (r'^gigs/', include('gigs.urls')), (r'^mail/', include('email_list.urls')), (r'^news/', include('news.urls')), (r'^press/', include('articles.urls')), (r'^songs/', include('mp3.urls')), (r'^videos/', include('videos.urls')), (r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/', include(admin.site.urls)), (r'^photologue/', include('photologue.urls')), ) # For serving media files in development only: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)