Skip to content

Instantly share code, notes, and snippets.

@DavidYKay
Created April 25, 2012 18:57
Show Gist options
  • Save DavidYKay/2492268 to your computer and use it in GitHub Desktop.
Save DavidYKay/2492268 to your computer and use it in GitHub Desktop.
Basic Django Login Form
{% 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