【发布时间】:2019-09-18 14:30:50
【问题描述】:
我在我的 INSTALLED_APPS 中添加了 Django-keyboard-shortcuts,按照官方网站中的描述,但我得到了这个错误:
RuntimeError: Model class photo.models.Data doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
我的 INSTALLED_APPS:
INSTALLED_APPS = [
'photo.apps.PhotoConfig',
'keyboard_shortcuts',
....
]
我在以下情况出现错误:
python3 manage.py runserver
【问题讨论】:
-
分享您的 installed_apps(在 settings.py 中)以及您收到此错误的确切文件。
标签: python-3.x django-2.0