Django:ImportError allauth.twitter:没有名为twitter的模块

时间:2013-06-03 16:59:06

标签: django django-allauth

我安装了allauth,但是当我运行manage.py syncdb时,我收到以下错误

django.core.exceptions.ImproperlyConfigured: ImportError allauth.twitter: No module named twitter

有什么想法来解决这个问题? 提前谢谢。

1 个答案:

答案 0 :(得分:1)

我认为正确的路径应该是:allauth.socialaccount.providers.twitter快速查看code in github

这是您需要传递给INSTALLED_APPS的路径

INSTALLED_APPS = (
    ...,
    'allauth.socialaccount.providers.twitter',
    ...
)

或者在import中这样:

import allauth.socialaccount.providers.twitter

希望这有帮助!

相关问题