mjhea0 / flask-tracking

http://www.realpython.com
Other
129 stars 80 forks source link

current_user.is_anonymous is not callable on Part 2 #6

Closed FeralBytes closed 7 years ago

FeralBytes commented 7 years ago
File ".../tracking/views.py", line 15, in index
    if not current_user.is_anonymous():
TypeError: 'bool' object is not callable```

File ".../templates/layout.html", line 14, in top-level template code {% if current_user.is_anonymous() %} AttributeError: 'bool' object has no attribute 'call'```

mjhea0 commented 7 years ago

You'll need to downgrade Flask-Login to the version used in the tutorial.