Set up a production environment

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

Force a specific migrations:

It seems like you’ve faked migration 0006 forward, you should fake it backward too: migrate –fake yourapp 0005
This will set the current migration to 0005.

Apparently, you want to migrate back to 0002: migrate –fake yourapp 0002
And then start over at 0003: migrate yourapp