2017-02-13 3 views
0

Ich verwende Django Registration_redux Vorlagen für Benutzerregistrierungen. Ich frage mich, woher Django wissen, wohin zu gehen, wenn Benutzer seine Registrierung bei Aktion Aktion = "." ?Django Registration Registrierungsformular

{% 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 %} 

Antwort

Verwandte Themen