[Answer]-Django Database 1054 error

1👍

You probably added the apellidos column after you did the first syncdb. When you syncdb for the first time, tables are created in the database. Afterwards, any changes to your models won’t be applied to your database. You have to make the changes yourself with an ALTER TABLE SQL command or by dropping the table (if you don’t need the data in it) and running syncdb again.

I recommend you check South:

South can see what’s changed in your models.py file and automatically write migrations that match your changes.

Leave a comment