9๐
โ
vs
There is no {% load url from future %}
until django 1.3.
use this from the 1.2 docs
:
{% extends "base.html" %}
{% block content %}
{% if form.errors %}
<p>Your username and password didn't match. Please try again.</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 %}
๐คdting
23๐
In django 1.9 the url tag is loaded by default so you can simply remove the load statement.
RemovedInDjango19Warning: Loading the `url` tag from the `future` library is deprecated and will be removed in Django 1.9. Use the default `url` tag instead.
๐คfrmdstryr
- Django DB level default value for a column
- Using cleaned_data on forms in django
- Django: values_list() multiple fields concatenated
Source:stackexchange.com