Django DatabaseError: no such column error

This is because you have amended your models and you have not changed your database.

Nothing to worry about!

For your info – > python syncdb ->  will NOT alter the existing schema in the database.

You need to run the python sqlall <your_app>

and then change your database based on the info given.

You may want to run python dbshell to do so

Or you can start using the Django addons calles South.

-> pip install South

-> Open up your apps ->

->add ‘South’ to your INSTALLED_APPS

-> run python manage. syncdb

-> then run python schememigration [yourapp_models] –initial

-> and again python migrate [yourapp_models]


Did it resolve your problem?

Let me know post your comments !!

SSD Hosting for 5 dollars a month