For clarification, I use the auth default views and this is my form
code:
<form id="login" action="{% url login %}" enctype="multipart/form-
data" method="post">
<dl>
<dt><label for="id_username">Usuario</label></dt>
<dd><input type="text" id="id_username" class="vTextField required"
name="username" value="" maxlength="30" /></dd>
<dt><label for="id_password">Clave</label></dt>
<dd><input type="password" id="id_password" class="vPasswordField
required" name="password" value="" maxlength="30" /></dd>
<dd>
<input type="hidden" name="this_is_the_login_form" value="1" />
<input type="hidden" name="post_data" value="{{ post_data }}" />
<input type="hidden" name="next" value="{{ next }}" />
<button type="submit" class="button positive">
Ingresar »
</button>
</dd>
</dl>
</form>
In urls:
url(r'^login/$', 'login', {'template_name': 'core/login.html'},
name="login"),
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---