1

在我单击管理员登录页面上的登录按钮后,大家好。我收到此错误:

ValueError at /admin/
too many values to unpack
Request Method: POST
Request URL:    http://localhost:8000/admin/
Django Version: 1.3.1
Exception Type: ValueError
Exception Value:    
too many values to unpack
Exception Location: /home/justin/Workspace/training/django/env/local/lib/python2.7/site-packages/django/contrib/auth/models.py in check_password, line 42
Python Executable:  /home/justin/Workspace/training/django/env/bin/python
Python Version: 2.7.2
Python Path:    
['/home/justin/Workspace/training/django/test_project',
 '/home/justin/Workspace/training/django/env/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg',
 '/home/justin/Workspace/training/django/env/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
 '/home/justin/Workspace/training/django/env/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg',
 '/home/justin/Workspace/training/django/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
 '/home/justin/Workspace/training/django/env/lib/python2.7',
 '/home/justin/Workspace/training/django/env/lib/python2.7/plat-linux2',
 '/home/justin/Workspace/training/django/env/lib/python2.7/lib-tk',
 '/home/justin/Workspace/training/django/env/lib/python2.7/lib-old',
 '/home/justin/Workspace/training/django/env/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/home/justin/Workspace/training/django/env/local/lib/python2.7/site-packages',
 '/home/justin/Workspace/training/django/env/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info',
 '/home/justin/Workspace/training/django/env/lib/python2.7/site-packages',
 '/home/justin/Workspace/training/django/env/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']
Server time:    Thu, 19 Apr 2012 01:36:33 -0500

谁能帮我这个?我不知道错误在哪里。

谢谢,贾斯汀

4

1 回答 1

8

可能您存储的密码错误,您是否更改了设置文件中的密钥?或者使用 Django 1.4 修改密码但在 Django 1.3 上运行?看到这篇文章ValueError: Too many values to unpack Django

于 2012-04-19T07:08:19.083 回答