Django Model Sync Table
问题 If I change a field in a Django model, how can I synchronize it with the database tables? Do I need to do it manually on the database or is there a tool that does helps with the process? 回答1: Alas, Django does not support any easy solution to this. The only thing django will do for you, is restart your database with new tables that match your new models: $ #DON'T DO THIS UNLESS YOU CAN AFFORD TO LOSE ALL YOUR DATA! $ python PROJECT_DIR/manage.py syncdb the next option is to use the various