문제

I read somewhere that you would never run syncdb on a database, post its initial run. Is this true?

I don't see what the problem could be. Do you?

도움이 되었습니까?

해결책

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

for managing changes to models, consider south

다른 팁

Syncdb will create tables that don't exist, but not modify existing tables. So it's fairly safe to run in production. But it's not a reliable way to maintain a database schema. Look at the South package for a way to reliably maintain changes to your database schema between development and production. Should be part of django standard, IMHO.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top