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

后端 未结 13 1290
失恋的感觉
失恋的感觉 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 20:01

    just check your "setting.py" in the installed apps section and make sure that you have added your app there :

    Application definition

    INSTALLED_APPS = [
        'django.contrib.admin',
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'django.contrib.sessions',
        'django.contrib.messages',
        'django.contrib.staticfiles',
        **'you need to add your app here>>>>>>>>>>>>>>>>>>>>>>',
    ]**
    

提交回复
热议问题