Electronics & Programming


Open Source electronics development and programming

  • You are not logged in.

#1 Oct. 28, 2005 14:25:47

David S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  


I do not understand precisely how these two settings are used.

>From Django doc, we have:
MEDIA_ROOT - Absolute path to the directory that holds media for this
installation. Example: "/home/media/media.lawrence.com/" See also MEDIA_URL.
MEDIA_URL - URL that handles the media served from MEDIA_ROOT. Example:

And from another post:
MEDIA_ROOT tells Django where it should put uploaded images.
MEDIA_URL tells Django the prefix it should use in media-references.

Is MEDIA_ROOT really only for uploaded images (or, generally, files)? The 2
descriptions of MEDIA_URL seem contradictory. How, when, and where is it
actually applied?


P.S. Django impresses more and more. It has become so easy to put solid and
consistent web apps together. So, here is to pragmatism--cheers!


Board footer

Moderator control

Enjoy the 22nd of April

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support