[Answer]-Modify the django models

0👍

Please use south for any kind of changes to get reflected to your database tables,
here goes the link for using south
Link for South documentation

1👍

Django will not alter already existing tables, they even say so in the documentation. The reason for this is that django can not guarantee that there will be no information lost.

You have two options if you want to change existing tables. Either drop them and run syncdb again, but you will need to store your data somehow if you want to keep it. The other options is to use a migrations tool to do this for you. Django can show you the SQL for the new database schema and you can diff that to the current version of the database to create the update script.

You could even update your database mannually if it is a small change and you don’t want to bother with migrations tools, though I would recommend to use one.

👤Tarilo

Leave a comment