Hi,

I make using static.serve a little cleaner like so:

In settings.py:
STATIC_OPTIONS = {'document_root': MEDIA_ROOT, 'show_indexes': True}

In urls.py:
from django.conf import settings
...
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
settings.STATIC_OPTIONS),

(change 'static/' above to wherever MEDIA_URL points but in regex form.)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to