I have extensively searched for a solution to my problem; however, due to the lack of success I decided to post a question.
In short: I have created an OpenShift app/build based on this repo (in combination with a DIY 0.1 cartridge):
https://github.com/ehazlett/openshift-diy-py27-django
The (apparently quite common) problem I have is that I can not get access to static files working; I have tried a lot.
These are a few things of all I have tried so far (and I am assuming that the wsgi for this build is /app/ (?)):
- STATIC_ROOT
- I tried to set this to pretty much all possible places in my repo while placing a static folder with the corresponding static files in there, e.g.
- /static
- /app/static
- /app/app/static
- etc.
- I tried to set this to pretty much all possible places in my repo while placing a static folder with the corresponding static files in there, e.g.
- STATIC_URL
- I kept this set to '/static/' as this is just the URL prefix if I'm not completely wrong
- STATICFILES_DIRS
- set this to the absolute path on the file system, there shouldn't be much that could be wrong with that.
- .htaccess tried a few things with .htaccess rewrites as well but mildly in the wild as I am not perfectly sure how communication flow between Django and Apache works/how Django passes static requests on to Apache and where on the file system/in the repo Apache's root dir is (?)
I can give more info if needed but that's the essential so far.
It should be noted that this seems to be a unique case with this build as I don't have problems when i create an app based on the fully supported Python26/Django cartridge.
Any suggestions whatsoever would be greatly appreciated..!
Cheers~