#10650: Clarify use of MEDIA_ROOT in default settings.py
---------------------------------------------+------------------------------
          Reporter:  tvon                    |         Owner:  nobody
            Status:  new                     |     Milestone:  1.2   
         Component:  File uploads/storage    |       Version:  1.0   
        Resolution:                          |      Keywords:        
             Stage:  Design decision needed  |     Has_patch:  0     
        Needs_docs:  0                       |   Needs_tests:  0     
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Comment (by Muhammad Alkarouri):

 By looking at the internet, I say this is a serious conceptual bug in
 Django.

 I have spent some time trying to wrap my head around this. And you get all
 kind of different advice. For example,you get this
 http://oebfare.com/blog/2007/dec/31/django-and-static-files/ which I have
 to admit was following for some time. On the other hand, the documentation
 for static files is actually correct
 (http://docs.djangoproject.com/en/dev/howto/static-files/) and it suggests
 a new setting, STATIC_DOC_ROOT, for that.

 My suggestion would be to:

 1. Clarify the documentation of MEDIA_ROOT and MEDIA_URL as per the bug
 report

 2. Give more visibility to django.views.static.serve as a debug time way
 of serving static files. Practically every project needs to serve static
 files, and there is no point in not standardising the process.

 3. Explain clearly the alternative way in deployment time. For example, if
 deployed behind apache/mod_wsgi, the static directory can be configured
 directly from apache as part of the deployment process.

 If this is acceptable, I may look into providing the specific
 documentation patches needed, though I have to say I do not know where to
 start at the moment.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10650#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django 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/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to