-
Apr '0926
Static Content
InScopeApps is hosted on WebFaction, their hosting is great and their help is especially good! We run multiple back ends, as talked about in previous posts, these systems need to share common content like css and images. Before svn:externals was used to move this content around but this help doc has an even simpler solution: Serving the Django admin media directly from the main Apache server Help.
As the title indicates this post is for django, but it works well for the wordpress side of the site, or any thing that needs static content. Now all we have to do is tell the page to look for the css in: /media/core/style.css, easy!
We decided to not use a symbolic link like in the doc, instead we moved core into a media directory then checked it out into the static directory. The django admin media is a svn:externals checkout of the files from the django install.
- media/core – core InScopeApps files
- media/admin – django admin files