Getting __init__() got an unexpected keyword argument 'instance' with CreateView of Django
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Some details: Request Method: GET Request URL: http://localhost:8080/user/create Django Version: 1.5.1 Exception Type: TypeError Exception Value: ____init____() got an unexpected keyword argument 'instance' Exception Location: /place/venv/local/lib/python2.7/site-packages/django/views/generic/edit.py in get_form, line 35 Python Executable: /place/venv/bin/python Python Version: 2.7.3 views.py class UserCreateView(CreateView): model = models.User form_class = forms.UserForm urls.py url(r'^user/create$', UserCreateView.as_view(), name='user