Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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:

    <app mountpoint="/">



What's the difference between <app> and <module>? Why did <module> work, but not <app>?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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)

share|improve this answer
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. –  JustinC Aug 2 '13 at 1:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.