我按照官方网站上的说明将Django-keyboard-shortcuts添加到我的INSTALLED_APPS中,但出现此错误:
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
答案 0 :(得分:0)
现在它可以工作了,我在... / lib / python3.5 / site-packages / keyboard_shortcuts / __ init__.py中发现了错误:
except Exception, e:
我删除了,e