Re: Problem with a view - MultiValueDictKeyError

2015-12-18 Thread Dariusz Mysior
Hmm I split index view on two views index and register_user and now it is ok heh. W dniu czwartek, 17 grudnia 2015 22:16:33 UTC+1 użytkownik Dariusz Mysior napisał: > > I have this view and I have a bug why? > > def index(request): > # jezeli formularz coś wysłał > if request.method ==

Re: Problem with a view - MultiValueDictKeyError

2015-12-18 Thread Dariusz Mysior
My template looks like below but I changed someting in View and than I had this error {% load staticfiles %} {% block title %}{% endblock %} {% block header %} {% if user.is_authenticated %} Jesteś zalogowany {{ user.username }} wyloguj {% else %}

Re: Problem with a view - MultiValueDictKeyError

2015-12-17 Thread Galia Ladiray
We don't have your UserCreationForm, but usually those things have password1 and password2 fields, and no "password" On Thursday, December 17, 2015 at 10:16:33 PM UTC+1, Dariusz Mysior wrote: > > I have this view and I have a bug why? > > def index(request): > # jezeli formularz coś wysłał >

Re: Problem with a view - MultiValueDictKeyError

2015-12-17 Thread Ezequiel Bertti
On Thu, Dec 17, 2015 at 7:16 PM, Dariusz Mysior wrote: > password = request.POST['password'] Maybe your form is not a input with 'password' Can you show your HTML code builded by django -- Ezequiel Bertti E-Mail: eber...@gmail.com Cel: (21) 99188-4860 -- You

Problem with a view - MultiValueDictKeyError

2015-12-17 Thread Dariusz Mysior
I have this view and I have a bug why? def index(request): # jezeli formularz coś wysłał if request.method == 'POST': form_r = UserCreationForm(request.POST) username = request.POST['username'] password = request.POST['password'] user =