Django 1.7 migration cannot find app

狂风中的少年 提交于 2019-12-04 10:38:39
Wal

Your issue is probably already resolved but somebody else might come across this question.

If the Manager model is not in the same app where you are creating the migration you need to add the dependency for the app accounts in the migration. Example:

class Migration(migrations.Migration):
    dependencies = [
        ('Current_App_Name', 'XYZ_Last_Migration_of_App'),
        ('accounts', '0012_auto_XYZ'),
        ...,
    ]`
    ...
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!