首页 > 技术文章 > RuntimeError: Model class apps.settings.licensefile.LicenseFile doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

notchangeworld 2020-08-20 16:10 原文

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',
]

 

 

添加进去应该就可以了。

推荐阅读