I’m using Django ( < v1.7), with SQLite3 as the database engine.
I am trying to add a new field to an already existing model’s class. This class already has data associated to it.
manage.py syncdb is not adding the new fields to the db.
Is there was a way to:
-
Add the new Field to the already existing class, and make sure a db entry is allocated to it?
-
Populate this new field with an empty string for all the already existing db entries?
Install south in your django and you can easily handle the existing tables. check this
If you really want to use Django-South, install it on your django, after adding your new fields to your existing model run
It will create a file in your project app. then,
thats it your table is altered.