3

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>?

1 Answer 1

4

the --app option is deprecated by more than a year (it should be reported in uWSGI logs if you use a stable version 1.2/1.4). For wsgi apps you use --module (for python modules) and --wsgi-file (for .wsgi files)

1
  • 1
    Not seeing a deprecation message in logs, just failure as OP noted with --version 1.2.3-debian (ubuntu 13.04 x86_64), and plenty of outdated documentation showing that erroneous form still. Commented Aug 2, 2013 at 1:25

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.