0
這裏是我做的步驟:剛纔添加這一行Django和authomatic:導入錯誤:無法導入名 '六個'
- CD
[mydjangoproject]
git clone git://github.com/peterhudec/authomatic.git
- 進入我的看法,:
from authomatic import authomatic
我djangoproject樹是這個樣子:
├── authomatic
│ ├── assets
│ ├── authomatic
│ ├── doc
│ ├── examples
│ ├── javascript
│ └── tests
├── locale
│ ├── en
│ ├── fr
│ └── sv
├── produits
│ ├── migrations
│ └── templatetags
├── pyweb
├── static
│ ├── css
│ ├── fonts
│ ├── images
│ ├── js
│ └── produits
└── templates
└── produits
的問題出現在[mydjangoproject]/authomatic/authomatic/__init__.py
,21行,它是這樣的代碼:
from . import six
當然我再次檢查該文件是否存在:
>cd [mydjangoproject]/authomatic/authomatic/
>find .
.
./adapters.py
./core.py
./exceptions.py
...blabla...
./six.py
./__init__.py
什麼奇怪的是與Pycharm,如果我在文件上__init__.py
在句子from . import six
的six
按住Ctrl鍵單擊,Pycharm發現它並顯示six.py
文件...
它應該工作我猜...任何想法發生了什麼?
不會是,從自動導入六'? – Lonoshea