Tags » flask
-
TIL: With Flask-Login, you want
current_user == None
, notcurrent_user is None
current_user
is a proxy object that happens to be wrappingNone
, but isn’t actuallyNone
.
current_user == None
, not current_user is None
current_user
is a proxy object that happens to be wrapping None
, but isn’t actually None
.