2 Answers
2

Assuming that you have installed all requirement and you are using the aptitude packages then you don't need the wsgi.py. All the configuration is in the uwsgi ini/xml/yaml file. (take the format that you prefer).

Here is a minimal example for example.com file for nginx(/etc/nginx/sites-available/examplecom for ubuntu 11.10)

Do not forget that Debian's, Ubuntu's and its derivates' uwsgi package does not require installation of its Python plugin — uwsgi-plugin-python, because uWSGI does not necessarily uses only Python (there are plugins for Lua, Erlang and others). Install it:

sudo apt-get install uwsgi-plugin-python

Unlike PIP's installation, you should explicitly mention a uwsgi's plugin used in the app's config by adding a plugins = python line to it (if you use Python), like this: