TypeError: 'bool' object is not callable
TypeError: 'bool' object is not callable "object is not callable" error occurs when you are trying to behave an object like it is a method or function. current_user.is_authenticated() you are behaveing current_user.is_authenticated as a method but its not a method . you have to use it in this way : current_user.is_authenticated