Skip to content

Instantly share code, notes, and snippets.

@chriskief
Last active December 26, 2015 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriskief/7130291 to your computer and use it in GitHub Desktop.
Save chriskief/7130291 to your computer and use it in GitHub Desktop.
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