/templates/login.html

http://django-jchat.googlecode.com/ · HTML · 29 lines · 24 code · 5 blank · 0 comment · 0 complexity · 34f153f6495eaebbda44c299a3f56311 MD5 · raw file

  1. {% extends "base.html" %}
  2. {% block content %}
  3. <div id="instructions">
  4. <p>Before you test the app you must be logged in... or else all this doesn't make any sense... Luckily you created an user when running the "manage.py syncdb" command... right?</p>
  5. </div>
  6. {% if form.errors %}
  7. <p>Your username and password didn't match. Please try again.</p>
  8. {% endif %}
  9. <form method="post" action="{% url django.contrib.auth.views.login %}">
  10. {% csrf_token %}
  11. <table>
  12. <tr>
  13. <td>{{ form.username.label_tag }}</td>
  14. <td>{{ form.username }}</td>
  15. </tr>
  16. <tr>
  17. <td>{{ form.password.label_tag }}</td>
  18. <td>{{ form.password }}</td>
  19. </tr>
  20. </table>
  21. <input type="submit" value="login" />
  22. <input type="hidden" name="next" value="{{ next }}" />
  23. </form>
  24. {% endblock %}