Is django syncdb working in production, after initial deployment is it safe?

I read somewhere that you have never started syncdb

in the database since it was initially started. It's true?

I do not understand what the problem is. You?


source to share

2 answers

running syncdb

will not make changes to tables for any models already in the database (even if you changed them).

for managing changes to models, consider south



Syncdb will create tables that do not exist, but will not modify existing tables. Thus, it is safe enough to run in production. But this is not a reliable way to maintain the database schema. Look at the South package to reliably save changes to the database schema between development and production. Must be part of the django standard, IMHO.



All Articles