Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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