I have an application in Django 1.6.5. I have a model where I removed one field, I added another field, and the third upgraded. And when we now turn to the model in the admin panel, I get the message:
ProgrammingError at /admin/app/subscription/
column app_subscription.enabled does not exist
The command python manage.py syncdb does not work.
Django (hopefully) doesn't modify your database schema if you don't explicitely ask for it. The
syncdbcommand works perfectly, but (as documented) it will only create tables that don't yet exists (and are not marked as being managed externally in yourmodels).So you have mostly three options here:
syncdb. This mean you will loose all our data, so it's hardly a "solution"South(which seems to be installed since you do have amigratecommand available.Note that solution #3 imply that you do create the migration files for your app, as documented here : http://south.readthedocs.org/en/latest/tutorial/part1.html#the-first-migration