Django Registration Registration_form

Majid

I'm using Django Registration_redux templates for user registrations. I am wondering how does Django know where to go when user submits his registration when action is action="." ?

{% extends "registration/registration_base.html" %}
{% load i18n %}

{% block title %}{% trans "Register for an account" %}{% endblock %}

{% block content %}
<form method="post" action="">
    {% csrf_token %}
    {{ form.as_p }}
    <input type="submit" value="{% trans 'Submit' %}" />
</form>
{% endblock %}


{% comment %}
**registration/registration_form.html**
Used to show the form users will fill out to register. By default, has
the following context:

``form``
    The registration form. This will be an instance of some subclass
    of ``django.forms.Form``; consult `Django's forms documentation
    <http://docs.djangoproject.com/en/dev/topics/forms/>`_ for
    information on how to display this in a template.
{% endcomment %}
markwalker_

If your action is blank or . then the post goes to the view (URL) which rendered the form.

Here's a simple example using a contact form; https://hellowebapp.com/news/tutorial-setting-up-a-contact-form-with-django/

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Django custom registration form

From Dev

How to subclass registration form in django-registration

From Dev

Django Registration Redux custom registration form

From Dev

Django User Registration Form KeyError

From Dev

How to make django registration form

From Dev

django-registration passing extra_context to Registration Form

From Dev

Django Registration or or django auth?

From Dev

Django registration form on startpage, without redirect to loginpage

From Dev

NoReverseMatch: in the password reset form in Django-registration?

From Dev

AJAX Form post for Django registration 1.0

From Dev

Creating Custom user registration form Django

From Dev

How to use django countries in registration form?

From Dev

django 1.7 User Registration form with profile picture

From Dev

How to create a profile registration form in Django?

From Dev

Django - Registration form can't upload image

From Dev

Django user signup / registration form not working

From Dev

Django Registration and Authenticate

From Dev

Django-registration not registering

From Dev

Django CSRF Error for Registration

From Dev

Django registration is not working

From Dev

Django-registration, custom registration and validation

From Dev

Django registration redux registration only with email (no password)

From Dev

Django-registration, custom registration and validation

From Dev

Django registration redux registration only with email (no password)

From Dev

form.isValid() always return false in custom registration form django

From Dev

How to over-ride default registration form in Django-Registration version 1.0?

From Dev

How to over-ride default registration form in Django-Registration version 1.0?

From Dev

django rest framework user registration

From Dev

Applying bootstrap to a django registration page

Related Related

  1. 1

    Django custom registration form

  2. 2

    How to subclass registration form in django-registration

  3. 3

    Django Registration Redux custom registration form

  4. 4

    Django User Registration Form KeyError

  5. 5

    How to make django registration form

  6. 6

    django-registration passing extra_context to Registration Form

  7. 7

    Django Registration or or django auth?

  8. 8

    Django registration form on startpage, without redirect to loginpage

  9. 9

    NoReverseMatch: in the password reset form in Django-registration?

  10. 10

    AJAX Form post for Django registration 1.0

  11. 11

    Creating Custom user registration form Django

  12. 12

    How to use django countries in registration form?

  13. 13

    django 1.7 User Registration form with profile picture

  14. 14

    How to create a profile registration form in Django?

  15. 15

    Django - Registration form can't upload image

  16. 16

    Django user signup / registration form not working

  17. 17

    Django Registration and Authenticate

  18. 18

    Django-registration not registering

  19. 19

    Django CSRF Error for Registration

  20. 20

    Django registration is not working

  21. 21

    Django-registration, custom registration and validation

  22. 22

    Django registration redux registration only with email (no password)

  23. 23

    Django-registration, custom registration and validation

  24. 24

    Django registration redux registration only with email (no password)

  25. 25

    form.isValid() always return false in custom registration form django

  26. 26

    How to over-ride default registration form in Django-Registration version 1.0?

  27. 27

    How to over-ride default registration form in Django-Registration version 1.0?

  28. 28

    django rest framework user registration

  29. 29

    Applying bootstrap to a django registration page

HotTag

Archive