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 == '
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 %}
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ł
>
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 received this message because
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 = authenticate(username
5 matches
Mail list logo