What's the difference between WSGI <app> and <module>?
- by Leftium
I followed these instructions to serve Python (Web2Py) via uWSGI. However, the web server returned an error:
uWSGI Error
Python application not found
until I modified the config.xml config file from:
<uwsgi>
<pythonpath>/var/web2py/</pythonpath>
<app mountpoint="/">
<script>wsgihandler</script>
</app>
</uwsgi>
to:
<uwsgi>
<pythonpath>/var/web2py/</pythonpath>
<module>wsgihandler</module>
</uwsgi>
What's the difference between <app> and <module>? Why did <module> work, but not <app>?