Hi, I've come back to setting up a Bottle application on a clients WebFaction account. A while ago I used the instructions found here: EDITED: Found newer instructions for getting bottle working: However, I still cannot import any modules into my wsgi application. In my main application directory I have app.py and I have two folders called 'libs' and 'admin'. I have an init.py file in both. I have peewee.py (the orm) inside libs and something called views.py inside admin. However, Apache error log is still reporting there is no module named admin.views or libs.peewee. How do I get my application to recognise these additional folders and modules. Importing a module in the same folder as app.wsgi works as long as it had no dependencies outside that directory. I haven't had chance to check if static folder routing inside the app is working as the app itself won't start yet. Many thanks for any help. asked 19 Nov '13, 07:41 zilog8bit |
You should be able to get the application to see the additional modules if you set the WSGIPythonPath directive with the directories the modules are in. answered 19 Nov '13, 23:56 johns |