小编use*_*808的帖子

/ registration __init __()的TypeError得到一个意外的关键字参数'null'

请求方法:GET请求URL:http://127.0.0.1: 8000 /注册 Django版本:1.3.1异常类型:TypeError异常值:

__init__() 有一个意外的关键字参数 'null'

异常位置:/usr/local/lib/python2.7/dist-packages/django/forms/fields.py in init,第196行Python可执行文件:/ usr/bin/python Python版本:2.7.2 Python路径:

['/ home/forent/myprograms/mysite7','/ usr/local/lib/python2.7/dad-package /oauth2-1.5.211-py2.7.egg','/ usr/local/lib/python2 .7/dist-packages','/ usr/local/lib/python2.7/did-package/python_twitter-0.8.2-py2.7.egg','/ usr/local/lib/python2.7/rem -packages/ipython-0.12-py2.7.egg','/ usr/lib/python2.7','/ usr/lib/python2.7/plat-linux2','/ usr/lib/python2.7/lib-tk','/ usr/lib/python2.7/lib-old','/ usr/lib/python2.7/lib-dynload','/ usr/local/lib/python2.7/dad -packages ','/ usr/lib/python2.7/did-package','/ usr/lib/python2.7/did-package/PIL','/ usr/lib/python2.7/did-package/glst- 0.10','/ usr/lib/python2.7 /dist-packages/gtk-2.0','/ usr/lib/pymodules/python2.7','/ usr/lib/python2.7 /dist-package /ubuntu -sso-client','/ usr/lib/python2.7/dad-packages /ubuntuone-client','/ usr/lib/python2.7/dad-package /ubuntuone-control-panel','/ usr/lib/python2.7/dist-packages/ubuntuone-couch','/ usr/lib/python2.7/did-package /ubuntuone-installer'','/ usr/lib/python2.7/record-packages /ubuntuone-存储-PR otocol']

服务器时间:2012年1月27日星期五11:11:22 -0600

#

view

from django.shortcuts import render_to_response
from registration.models import UserDetails
from forms import UserForm
from django.template import RequestContext
from django.http import HttpResponseRedirect …
Run Code Online (Sandbox Code Playgroud)

django django-models django-forms

2
推荐指数
1
解决办法
8167
查看次数

标签 统计

django ×1

django-forms ×1

django-models ×1