|
I tried to launch my OSQA site with gunicorn (http://gunicorn.org/), but I got this error:
That works with a simple:
I tried to fix it with this answer (http://meta.osqa.net/questions/9722/from-djangoconf-import-settings-isnt-importing-settingspy), but it's not the solution. |
|
The problem was resulted by Gunicorn trying to load all the resources before populating the settings file. We've pushed a fast fix for your issue to the trunk, so consider updating to the latest revision: http://svn.osqa.net/changelog/OSQA/?cs=1163 and after that use the Gunicorn Django management command. It worked for me perfectly.
|
Was looking at http://gunicorn.org/ and they seem to have launched a new version today, and the release notes mentions something about a fix around django settings. Maybe that's your problem and has nothing to do with OSQA. Give a try to that new version, and maybe that will help you.
I tried with the v0.10.0, and the new one (v0.13.0), no differences. Tried on MacOS and on Debian. (I have a virtualenv)
@nico91, this posting is more a problem report than a question. OSQA bugs should be reported at jira.osqa.net, and OSQA support issues should go to support@osqa.net. In any case, please edit the posting title to make it a proper question.
Although this seems to me that @nico91 is using a costumized settings file, I don't see another reason for gunicorn to fail to load that setting. Either that, or unicorn as some serious issues... @nico, can you link us a pastebin of your settings file? Don't forget to obfuscate any sensitive info you may have there.