Created
April 25, 2012 18:57
-
-
Save DavidYKay/2492268 to your computer and use it in GitHub Desktop.
Basic Django Login Form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'base.html' %} | |
{% block content %} | |
<div class="six columns centered signupbox"> | |
<h1>Login</h1> | |
<form method="post" action=""> | |
{% if form.errors.authenticate %}<div class="alert-box error">{{ form.errors.authenticate }}</div>{% endif %} | |
{% csrf_token %} | |
{{ form.as_p }} | |
<input type="submit" class="nice large radius blue button" value="Login" /><br/> | |
</form> | |
</div> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment