~ubuntu-website-community/ubuntu-website/light-django-theme

« back to all changes in this revision

Viewing changes to urls.py

  • Committer: Michael Hall
  • Date: 2011-02-14 19:48:52 UTC
  • Revision ID: mhall119@gmail.com-20110214194852-zv0ty5uniauofqw1
Provide static media serving by default, overwritable to use apache or something else

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.conf.urls.defaults import *
 
2
import ubuntu_website
 
3
 
 
4
urlpatterns = patterns('',
 
5
    (r'^media/(?P<path>.*)$', 'django.views.static.serve',
 
6
        {'document_root': ubuntu_website.MEDIA_ROOT}),
 
7
)