See also: Heapify

Go back to post Create new comment

RSS Be notified of new comments on this post with the RSS feed for this post.

#

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?

#

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.

Go back to post

Create a new comment

Go to the top

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.

For post: Serving Static Content With Django
Your name:
Your email (optional):
Your website (optional):
 
 
 

A preview of your comment:

RSS
Powered by Debian, Guinness, and excessive quantities of caffeine and sugar.