Because you are missing the form action, then the browser POSTs to the
current url as default, see:
https://docs.djangoproject.com/en/1.11/intro/tutorial04/#write-a-simple-form


> `pages/login_register.html`:
>  # For this example, I only include the registration form's HTML
>  <h2>Register</h2>
>  <form action="" method="post">
>  {% csrf_token %}
>  {{ registration_form.as_p }}
>  <button type="submit">Register</button>
>  </form>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BFDnh%2Br_oy5ZD%2B4yj974%3DeUpwDRLi%3DVurMrKqxwf-Ka%3Ds69Sg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to