RuntimeError: Model class apps.settings.licensefile.LicenseFile doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

RuntimeError: Model class apps.settings.licensefile.LicenseFile doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

 

这个实在settings.py中的INSTALLED_APPS 添加app包的名称:apps

INSTALLED_APPS = [
  'apps','django_filters',
    'bootstrap3',
    'captcha',
    'django_celery_beat',
    'django.contrib.auth',
    'django.contrib.admin',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
]

 

 

添加进去应该就可以了。

posted @ 2020-08-20 16:10  忧伤还是快乐EL  阅读(116)  评论(0编辑  收藏  举报