TypeError: 'module' object is not callable
- From:
- Sebastian Benthall
- Date:
- 2011-05-04 @ 22:39
Hi,
I am trying to deploy a Flask application with mod_wsgi and am getting a
persistent error:
TypeError: 'module' object is not callable
The thing is, i get this even when I replace my whole app with the Hello
World flask app from here:
http://flask.pocoo.org/docs/quickstart/#a-minimal-application
I'm running in a virtual env, with the activate_this.py called in the wsgi
script and the path to the working directory added with site.addsitedir.
My hunch is that something is messing up when 'application' from the 'from
foo import app as application' statement gets called, but really I'm just
stumped. Any pointers?
Many thanks in advance,
--
Sebastian Benthall
OpenGeo - http://opengeo.org