“No installed app with label 'admin'” running Django migration. The app is installed correctly

后端 未结 13 1208
失恋的感觉
失恋的感觉 2020-12-30 19:37

I am trying to use admin.LogEntry objects during a datamigration on Django 1.7

The \'django.contrib.admin\' app is listed on INSTALLED_APPS

13条回答
  •  傲寒
    傲寒 (楼主)
    2020-12-30 19:58

    I don't know the exact cause for this. Will have to dig into the source code. but for now a workaround is add ('admin', 'name_of_last_migration_in_admin_app') to the dependencies and the migrations shall go alright.

提交回复
热议问题