I keep modifying my model in Django. However after I do it I have to go into the database, delete the table manually and then manage.py syncdb. I tried manage.py reset <<app_name>> but it doesn’t drop then reinstall the model with the new fields. What is the proper way to do this or is the best way to go into the database, delete, then syncdb?
I keep modifying my model in Django. However after I do it I have
Share
The behaviour you describe is explicitly mentioned in the docs:
What you are after is a tool for database migrations and that is a large problem mostly solved 😉
So yes, as Marcin said, your are looking for South.
Alternatively you could try Nashvegas and for small changes even
sql_diffwhich is part ofdjango-extensionsis a viable option.