Django and Serving Static Files -


I'm hosting a site on WebFaction using Django / mod_python / Python2.5. I have recently run the concept of static files (during the installation of my Django administrator).

What I think is that the idea of ​​serving stable files is only to be told to the server, instead of routing the request through the directory, first apache, then mod_python, then the degego, and finally the user back . This is particularly helpful in webfication because there are two Apache servers that should go through your request (your app's server and main public server).

Why is it that when I set up the static files of the Django, only / contrib / admin / media folder is required? Is it just that the static content of all the dexgo is connected to the admin panel?

When I want to serve my own stable content (images, CSS, etc.), then I should include it in the same / media folder or another for my own content (/ my_media) Set nickname?

Yes, static files used by Django are related to beautiful images, for JavaScript and administrators CSS All other stable content comes from your application. You can keep both sets (yours and administrator) under the same server. Just set the appropriate folders in the setting file.

  • See this post for a little more information:


    Comments

    Popular posts from this blog

    c# - ListView onScroll event -

    PHP - get image from byte array -

    Linux Terminal Problem with Non-Canonical Terminal I/O app -