Hy!
I have my models in a hierarchy below "models" package:
我的模型在“模型”包下面的层次结构中:
models
|-a.py
|-b.py
instead of having all my models into the models.py
而不是将我的所有模型都放入models.py中
But when I run the migration command for South it doesn't find any of them:
但是当我为South运行迁移命令时,它找不到任何一个:
schemamigration my_app --auto
In the meta class already exists the app_label='my_app'
在元类中已经存在app_label ='my_app'
I use auto because the tables are already changed.
我使用auto是因为表已经更改了。
1 个解决方案
#1
1
Have you imported all the models in __init__.py
? If you've done that, there's effectively no difference in how it works.
您是否在__init__.py中导入了所有模型?如果你已经这样做了,它的工作方式实际上没有区别。
#1
1
Have you imported all the models in __init__.py
? If you've done that, there's effectively no difference in how it works.
您是否在__init__.py中导入了所有模型?如果你已经这样做了,它的工作方式实际上没有区别。