> Static content is served by http server not django.
> http://www.djangoproject.com/documentation/static_files/
For development purposes, in my urls.py after defining all
my
"business" urls, I have
from sys import argv
if 'runserver' in argv:
urlpatterns += patterns('',
(r'^media/(?P<path>.*)$',
'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}
),
# a couple other debugging tools here
)
which allows me to serve media in development, but in my
production environment (mod_python+apache), it doesn't offer
those URL patterns because they're handled by apache alone.
-tim
--~--~---------~--~----~------------~-------~--~----~
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
django-users-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|