Skip to content

Instantly share code, notes, and snippets.

Last active December 26, 2015 09:29
What would you like to do?
if form.is_valid():
# ... logic to login the user ...
# redirect to a protected page
return HttpResponseRedirect(reverse('account'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment