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

后端 未结 13 1326
失恋的感觉
失恋的感觉 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条回答
  •  猫巷女王i
    2020-12-30 20:11

    For my case the LookupError was occuring because I had altered the models and added 'related_name' but had not run makemigrations and migrate.

提交回复
热议问题