[uwsgi]
socket = 127.0.0.1:5000
logto = /var/log/uwsgi/public.log
processes = 1
env = PYTHONPATH=$PYTHONPATH:/var/www
module = public
callable = public

[uwsgi]
socket = 127.0.0.1:5000
logto = /var/log/uwsgi/public.log
processes = 1
env = PYTHONPATH=$PYTHONPATH:/var/www
module = public
callable = public
catch-exceptions = True

Make uWSGI return Python error messages rather than swallowing them up in HTTP 500 errors
Make uWSGI return Python error messages rather than swallowing them up in HTTP 500 errors