Skip to content

Instantly share code, notes, and snippets.

View TimFletcher's full-sized avatar

Tim Fletcher TimFletcher

View GitHub Profile
{% block scripts %}
<script type="text/javascript" charset="utf-8">
$(function(){
$('#submit').click(function(){
var username = $("input#id_username").val();
var password = $("input#id_password").val();
$form = $('#login_form');
$form.find('.errorlist').remove();
errordata = '<ul class="errorlist"><li>There was a server error processing your login. Please try again.</li></ul>'
$.ajax({