Django static files
You can still read and search them, but for help, please post a question on Stack Overflow.
I've been setting up a Django 1.5 + python 2.7 website (used the community python 2.7 app). I have unfortunately been unable to get Openshift to serve static files. I've scoured the web for answers and tried several potential solutions without solution. In any case the problem seems to be a common one.
the first key element is that I collect all relevant files into (using django's collectstatic):
(for example bootstrap will be found in .../wsgi/static/js/bootstrap.js)
STATIC_URL is set to
/static/. So, for example and as one would expect, the web pages will look for bootstrap in (app is called "mezz" and namespace is "epowme"):
Finally, I created a .htaccess file in the wsgi directory (also tried wsgi/static). I've tried several iterations so far, and after spending some time with Apache's documentation, the latest is:
RewriteEngine On RewriteRule ^static/(.+)$ /static/$1 [L]
Have been banging my head against this particular wall for some time
Many thanks for your help