Be notified of new comments on this post with the RSS feed for this post.
Argh theres a serious pitfall in your code (which costed me some time to find out): you should note that the parameter document_root in the 'urls' file shall be the MEDIA_ROOT and not a string as in your case.
Argh... there's a serious pitfall in your code (which costed me some time to find out): you should note that the parameter document_root in the 'urls' file shall be the MEDIA_ROOT and not a string as in your case.
You can use a restricted version of markdown formatting here. You can use the toolbar above the text field to make this more painless. For more information about markdown please refer to the markdown cheatsheet.
In this example, are you copying your entire Django project into your web server's document root? (not the greatest best practice)
Or are you keeping this project directory structure somewhere else on your production server, and only making a copy (or symlink) of the "/static" directory underneath your document root?
I'm a just little fuzzy on how the translation from MEDIA_ROOT to MEDIA_URL works out. Can you please elaborate?