Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django media_root static_root

MEDIA_ROOT and STATIC_ROOT must have different values. 
Before STATIC_ROOT was introduced, it was common to rely or 
fallback on MEDIA_ROOT to also serve static files; however, 
since this can have serious security implications, 
there is a validation check to prevent it.
 
PREVIOUS NEXT
Tagged: #django
ADD COMMENT
Topic
Name
6+5 =