Hi,

what I am trying to do is to put a login box which will use
django.contrib.auth.views.login. According to documentation I`ve
crated inclusion tag which works, but it only views form sumbit button
not a whole form. This form is from tutorialand looks like this:




{% load url from future %}

{% block content %}

{% if form.errors %}
<p>Niepoprawny login lub nazwa użytkownika.</p>
{% endif %}

<form method="post" action="{% url 'django.contrib.auth.views.login'
%}">
{% csrf_token %}
<table>
<tr>
    <td>{{ form.username.label_tag }}</td>
    <td>{{ form.username }}</td>
</tr>
<tr>
    <td>{{ form.password.label_tag }}</td>
    <td>{{ form.password }}</td>
</tr>
</table>

<input type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>

{% endblock %}


It seems like it don`t know enything about form variable. How can I
give it to it via inclusion tag?

best regards
Gabe

-- 
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.

Reply via email to