[Answered ]-Django MEDIA_ROOT



I got the answer to my question(as mentioned in my comment).I is was reviewing my stalkoverflow profile and I saw this question unanswered and unclosed.So have pasted the link as an answer once again.



Yes, because you need to tell Django where to the browser can find those files that are being served by Apache.


difference is MEDIA_ROOT indicates where you should put your static files, and MEDIA_URL is the relative path where those are being served.

in a production environement, MEDIA_* paths are (commonly, but it’s not strict to follow) used to store application related static files (css, imgs and javascripts). For user uploaded content, it’s good practice (but again, it’s not a rule) to save them inside the STATIC path, so you can move/delete/dostuff with them without compromising your app

so basically, to answer your question (didn’t see any question mark in your post, btw) MEDIA_ROOT is the absolute path on the server where the static files have to be stored.

Here you can find something about MEDIA_ROOT and MEDIA_URL

Here something about static files management with django

Leave a comment