Django键盘快捷键

时间:2019-09-18 14:30:50

标签: python-3.x django-2.0

我按照官方网站上的说明将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

1 个答案:

答案 0 :(得分:0)

现在它可以工作了,我在... / lib / python3.5 / site-packages / keyboard_shortcuts / __ init__.py中发现了错误:

except Exception, e:

我删除了,e