Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 136 by arockinit: MEDIA_ROOT in settings.py ignored for
document_root
http://code.google.com/p/django-hotclub/issues/detail?id=136
What steps will reproduce the problem?
1. Modify MEDIA_ROOT with anything
2. Restart Pinax
3. Any change to MEDIA_ROOT appears to be ignored
What is the expected output? What do you see instead?
Changes to the MEDIA_ROOT variable appears to be ignored and this section
of the urls.py has that directory hardcoded:
{{{
if settings.SERVE_MEDIA:
urlpatterns += patterns('',
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': os.path.join(os.path.dirname(__file__),
"site_media")}),
)
}}}
What version of the product are you using? On what operating system?
Mac 10.5.5 Pinax trunk r1283
Please provide any additional information below.
Comment from Brian Rosner on mailing list: "MEDIA_ROOT is used by any
FileField or ImageField. It is indeed used, but really should also be used
to map the documet_root"
--
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
-~----------~----~----~----~------~----~------~--~---