account/signup.html

{% extends "site_base.html" %}

{% load account_tags %}
{% load i18n %}
{% load bootstrap %}

{% block body_class %}account account-signup{% endblock %}
{% block head_title %}{% trans "Sign up" %}{% endblock %}

{% block body %}
    <form id="signup_form" method="post" action="{% url "account_signup" %}" autocapitalize="off" {% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>
        <legend>{% trans "Sign up" %}</legend>
        {% csrf_token %}
        {{ form|bootstrap }}
        {% if redirect_field_value %}
            <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
        {% endif %}
        <div class="form-actions">
            <button>{% trans "Sign up" %}</button>
        </div>
        <p class="login-signup">
            {% trans "Already have an account?" %}
            <a href="{% urlnext 'account_login' %}">{% trans "Log in" %}</a>
        </p>
    </form>
{% endblock %}

{% block scripts %}
    {{ block.super }}
    <script type="text/javascript">
        $(document).ready(function() {
            $('#id_username').focus();
        });
    </script>
{% endblock %}