Production environment with gunicorn and nginx
Install gunicorn
sudo pip install gunicorn
Install nginx
sudo apt-get install nginx
Run gunicorn
sudo gunicorn tumedical.wsgi
Tutorial based on https://www.digitalocean.com/community/tutorials/how-to-deploy-python-wsgi-apps-using-gunicorn-http-server-behind-nginx
http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/
Force a specific migrations:
It seems like you’ve faked migration 0006 forward, you should fake it backward too:
manage.py migrate –fake yourapp 0005
This will set the current migration to 0005.
Apparently, you want to migrate back to 0002:
manage.py migrate –fake yourapp 0002
And then start over at 0003:
manage.py migrate yourapp
http://stackoverflow.com/questions/12364157/south-how-to-force-certain-migration