Deployment fixes for uwsgi and django