When setting up a new Python/WSGI application for Flask in Webfaction why does:
not work (I get a HTTP 500 error and the logs show ImportError: no module named x), instead in the index.py I have to put:
before the line
This feels a bit "dirty"? asked 24 May '12, 14:59 richbeales |
Check the other WSGI directives for the path definition, WSGIDaemonProcess is one of them that will have its own path definition, if this is so try setting it there. answered 24 May '12, 17:21 johns This has it's path set to the local install of Python2.7 - I assumed this was required?
(25 May '12, 01:26)
richbeales
It is required, You can add a semicolon to add more than 1 path to this setting, try adding the application path.
(25 May '12, 01:33)
johns
|