matiit
matiit

Reputation: 8017

django user registration

I have got a problem with registering user.

AttributeError at /users/register/
'WSGIRequest' object has no attribute 'get'

The code is here: https://github.com/matiit/pym/blob/master/docu/views.py line 62 form.is_valid() What am I doing wrong?

Upvotes: 0

Views: 905

Answers (1)

Bernhard Vallant
Bernhard Vallant

Reputation: 50796

You are not initializing the form correctly, it should be:

form = UserCreationForm(data=request.POST)

Upvotes: 1

Related Questions