If False, no database table creation or deletion operations will be performed for this model. This is useful if the model represents an existing table or a database view that has been created by some other means. This is the only difference when managed=False. All other aspects of model handling are exactly the same as normal.
您可能正在模型的} 。你知道吗
Meta
类中查找^{根据文件:
如果已经创建了迁移,请将} 的选项中:
'managed': False
添加到^{另外,考虑使用^{} 来选择适当的表名。你知道吗
相关问题 更多 >
编程相关推荐