分享

openstack dashboard登录报错'module' object has no attribute 'Login'解决

xioaxu790 发表于 2014-7-29 21:42:19 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 15178
本帖最后由 xioaxu790 于 2014-7-29 21:43 编辑
问题导读
1、openstack dashboard登录报错,怎么办?





登录Dashboard报错如下:
  1. AttributeError at /
  2. 'module' object has no attribute 'Login'
  3. Request Method:         GET
  4. Request URL:         http://192.168.56.101/
  5. Django Version:         1.6.5
  6. Exception Type:         AttributeError
  7. Exception Value:         
  8. 'module' object has no attribute 'Login'
  9. Exception Location:         /var/www/horizon-2014.1.1/openstack_dashboard/wsgi/../../openstack_dashboard/views.py in splash, line 35
  10. Python Executable:         /usr/bin/python
  11. Python Version:         2.6.6
  12. Python Path:         
  13. ['/var/www/horizon-2014.1.1/openstack_dashboard/wsgi/../..',
  14. '/usr/lib64/python26.zip',
  15. '/usr/lib64/python2.6',
  16. '/usr/lib64/python2.6/plat-linux2',
  17. '/usr/lib64/python2.6/lib-tk',
  18. '/usr/lib64/python2.6/lib-old',
  19. '/usr/lib64/python2.6/lib-dynload',
  20. '/usr/lib64/python2.6/site-packages',
  21. '/usr/lib64/python2.6/site-packages/gtk-2.0',
  22. '/usr/lib/python2.6/site-packages',
  23. '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info',
  24. '/var/www/horizon-2014.1.1/openstack_dashboard']
复制代码

解决办法:
  1. vim /var/www/horizon-2014.1.1/openstack_dashboard/views.py
复制代码

修改第22行  from openstack_auth import views  修改为from openstack_auth import forms

修改第35行   
form = views.Login(request) 修改为   form = forms.Login(request)

已有(2)人评论

跳转到指定楼层
oscar 发表于 2014-11-8 22:00:34
  I don't  understand it !
回复

使用道具 举报

oscar 发表于 2014-11-8 22:05:40
Could you explain the reasons?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条