Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有CharField一个模型,我想为其增加max_length属性。South 没有注意到这种变化,说没有什么可以迁移的。我如何让它迁移这个?
CharField
max_length
发出命令(更改max_length代码后):
python manage.py schemamigration <name of the app> --auto python manage.py migrate <name of the app>
这对我有用。希望能帮助到你