Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Build a Social Network with Flask Broadcasting Add current_user Check

Noah Fields
Noah Fields
13,985 Points

Challenge uses outdated syntax

This challenge requires the use of parenthesis at the end of the command, "current_user.is_authenticated". The entire line reads: {% if current_user.is_authenticated() %} However, the previous video marked in both Teacher's Notes and an annotation on the video itself that parenthesis should not be used because they are outdated syntax for this command, and thus the command should read: {% if current_user.is_authenticated %}

This means that this challenge uses outdated and obsolete syntax in its requirements for completion.

1 Answer

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Noah;

Thanks for pointing that out. Sometimes libraries and framework updates like this happen and we update the teacher notes and add information to the videos for clarification as we did in this case. Updating our Flask content is on our radar and this is one of the things which will be addressed during the refresh.

Thanks again for bringing it to our attention.

Happy coding,
Ken