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