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.
Django新手在这里
我知道我可以通过编写自己的南迁移来更改表的编码。
我的问题是,有没有办法通过改变我的模型并使用
./manage.py schemamigration my_app --auto
?
AFAIK,没有字符集修改迁移之类的东西,因为字符集取决于部署,因此是设置选项。
因此,您必须手动创建迁移(因此可能不--auto使用原始 SQL 并使用原始 SQL)。
--auto