pinax ImportError 无法导入名称 UserOpenidAssociation
我有这些错误:
ImportError at
/ 无法导入名称 UserOpenidAssociation
。
我无法从回溯中理解任何意义:
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.1.1
Python Version: 2.6.1
Installed Applications:
['inventory.inlanddbase']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django_openid.consumer.SessionConsumer',
'account.middleware.LocaleMiddleware',
'django.middleware.doc.XViewMiddleware',
'pagination.middleware.PaginationMiddleware',
'pinax.middleware.security.HideSensistiveFieldsMiddleware')
Traceback:
File "C:\Python26\lib\site-packages\django\core\handlers\base.py" in get_response
83. request.path_info)
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in resolve
216. for pattern in self.url_patterns:
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in _get_url_patterns
245. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in _get_urlconf_module
240. self._urlconf_module = import_module(self.urlconf_name)
File "C:\Python26\lib\site-packages\django\utils\importlib.py" in import_module
35. __import__(name)
File "C:\inlanddoors\Scripts\inventory\urls.py" in <module>
9. from account.openid_consumer import PinaxConsumer
File "C:\inlanddoors\Lib\site-packages\pinax\apps\account\openid_consumer.py" in <module>
15. from account.views import login as account_login
File "C:\inlanddoors\Lib\site-packages\pinax\apps\account\views.py" in <module>
22. from django_openid.models import UserOpenidAssociation
Exception Type: ImportError at /
Exception Value: cannot import name UserOpenidAssociation
我做错了什么???
I have these errors:
ImportError at
/ cannot import name UserOpenidAssociation
.
I could not make any sense out of the traceback:
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.1.1
Python Version: 2.6.1
Installed Applications:
['inventory.inlanddbase']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django_openid.consumer.SessionConsumer',
'account.middleware.LocaleMiddleware',
'django.middleware.doc.XViewMiddleware',
'pagination.middleware.PaginationMiddleware',
'pinax.middleware.security.HideSensistiveFieldsMiddleware')
Traceback:
File "C:\Python26\lib\site-packages\django\core\handlers\base.py" in get_response
83. request.path_info)
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in resolve
216. for pattern in self.url_patterns:
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in _get_url_patterns
245. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in _get_urlconf_module
240. self._urlconf_module = import_module(self.urlconf_name)
File "C:\Python26\lib\site-packages\django\utils\importlib.py" in import_module
35. __import__(name)
File "C:\inlanddoors\Scripts\inventory\urls.py" in <module>
9. from account.openid_consumer import PinaxConsumer
File "C:\inlanddoors\Lib\site-packages\pinax\apps\account\openid_consumer.py" in <module>
15. from account.views import login as account_login
File "C:\inlanddoors\Lib\site-packages\pinax\apps\account\views.py" in <module>
22. from django_openid.models import UserOpenidAssociation
Exception Type: ImportError at /
Exception Value: cannot import name UserOpenidAssociation
What am I doing wrong???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
sudo pip install django_openid
sudo pip install django_openid