Skip to content

Instantly share code, notes, and snippets.

@shangxiao
Created Jul 31, 2015
Embed
What would you like to do?
Django is_authenticated gotcha
def some_view(request):
if request.user.is_authenticated:
do_something_private()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment