pinax ImportError 无法导入名称 UserOpenidAssociation

发布于 2024-08-19 10:54:02 字数 1962 浏览 7 评论 0原文

我有这些错误:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萌辣 2024-08-26 10:54:02

sudo pip install django_openid

sudo pip install django_openid

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文