Getting an error when working with Django is always alarming. The yellow and grey screen with words that flutter around the page like sailors lost at sea is never a welcoming sign. So how can I assist you when you are yet again faced with this screen!?
Today we will tackle the error screen of another nature, one involving the database. Since Django has a nice abstracted database it can sometime allow you to feel lost when you get an error and can’t figure out how to fix it. The solution may not be the most graceful, but it will allow you to regain you confidence after what could be hours of trying to troubleshoot this problem.
To solve this we are going to empty the app database records with this command:
>>python manage.py reset #app
Then we can repopulate the schema using the good ole syncdb!
>>python manage.py syncdb
Voila!