2016-07-07 61 views
1

我想從https://github.com/pennersr/django-allauth測試[django-allauth/example]。沒有模塊命名鬆弛

遵守[示例/ readme.rst],所有步驟需要測試的〔實施例,如下所示:

$ git clone git://github.com/pennersr/django-allauth.git 
$ cd django-allauth/example 
$ virtualenv venv 
$ . venv/bin/activate 
$ pip install -r requirements.txt 

$ python manage.py migrate # **The promblem happen here** 

$ python manage.py createsuperuser 
$ python manage.py runserver 

在i遷移通過命令 「$蟒manage.py遷移」 數據庫,[導入錯誤]出現與描述:「沒有模塊命名鬆弛」

我有谷歌的搜索,但沒有標準[鬆散包]蟒蛇或任何有關[鬆弛]的信息。所以,沒有辦法爲我解決問題。

[鬆弛]是什麼,我怎麼能通過它?幫我。

+0

你可以在源代碼中搜索單詞鬆弛嗎?你也可以粘貼錯誤信息? –

+0

如何在源代碼中搜索單詞鬆弛?錯誤消息就是我所說的:「ImportError:沒有名爲slack的模塊」。 –

回答

0

確保您已經按照此處找到的文檔編輯了settings.py:https://django-allauth.readthedocs.io/en/latest/installation.html。特別包括'allauth.socialaccount.providers.slack'。

+0

是的,它有幫助。在設置文件中的問題。我只是刪除所有socialaccount供應商。非常感謝。 –

+0

太棒了!你能選擇我的答案是否正確? – perfect5th

+0

對不起,我不能,因爲我沒有足夠的聲譽:)) –