本文介绍了/admin/处的Python ValueError值太多,无法解压缩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我点击了管理员登录页面上的登录按钮.我收到此错误:

HI guys after I click the login button on the admin login page. I get this error:

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

有人可以帮我吗?我不知道错误在哪里.

can anyone help me with this? I don't know where is the error.

谢谢,贾斯汀

推荐答案

可能您存储的密码错误,您是否更改了设置文件中的密钥?还是使用Django 1.4修改了密码但可以在Django 1.3上运行?看到这篇文章 ValueError:太多的值无法解压Django

Probably your stored password is wrong, did you change the secret key in your settings file? Or modified password using Django 1.4 but run on Django 1.3? see this post ValueError: Too many values to unpack Django

这篇关于/admin/处的Python ValueError值太多,无法解压缩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-02 03:03