Modify Model after Activation
After activating the Model, modifying database related items is not straight forward for me. Example of such items are: number of fields in
the table, name of table & names of fields.
For now, rather than investigate the relevant migration methods, I noticed that if I did the changes to the Model as part of the following
sequence then I seemed to be successful: delete db.sqlite3; delete the polls/migrations/0001_initial.py;
python manage.py migrate; python manage.py createsuperuser; modify database related items in models.py;
the 4 commands line involved with the model activation and lastly the straight forward changes in, for example,
views.py, models.py (non-database related) & latest_list.html.
By using this method I've lost the data in db.sqlite3, but at the stage I'm at that is no problem. Just in case I've drifted
into error, are there other limitations that I've missed?
Thanks Glyn