Django request.user.is authenticated() TypeError: 'bool' object is not callable

Published: 18 May 2019
on channel: Jarad Python
5,236
102

If you're getting a TypeError: 'bool' object is not callable when attempting request.user.is_authenticated(), the reason is that you need to remove the parentheses from is_authenticated().

The hint is the word "callable" in the error message. If something isn't callable, that usually means just remove the parentheses so you're not calling the function.

is_authenticated is an attribute and it's read-only.

Helpful Links
https://docs.djangoproject.com/en/2.2...


Watch video Django request.user.is authenticated() TypeError: 'bool' object is not callable online, duration hours minute second in high quality that is uploaded to the channel Jarad Python 18 May 2019. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 5,236 times and liked it 102 visitors.