Comment #3 on issue 136 by leidel: MEDIA_ROOT in settings.py ignored for  
document_root
http://code.google.com/p/django-hotclub/issues/detail?id=136

The way static files are served during development has changed since  
introducing the build_media command and a distinct
view. document_root isn't required anymore.

The matching path could be set to MEDIA_URL[1:] assuming it would never be  
a full URL in development.

if settings.SERVE_MEDIA:
     urlpatterns += patterns('',
         (r'^%s(?P<path>.*)$' % settings.MEDIA_URL[1:], 'misc.views.serve')
     )

But I think it's a bit ugly and hides the fact that serving static media  
with Django is in fact a makeshift solution. Hence I'll
soon close this ticket as WontFix unless I get a storm of boos. What do you  
think?


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

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

Reply via email to