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
Scott Taylor
9,340 PointsBuild a Social Network with Flask - The Challenge
I have completed the assignment for the Tacocat Project here https://w.trhou.se/ta7ij1nqyn. I’ve run my code in a standalone python session to verify all the bullet points have been satisfied from the README.mk file. However, when I add all my code to the challenge task and select check work I am getting an error "Validate menu for unauthenticated users”. Here is my menu code: <nav class="menu"> <!-- menu goes here --> {% if current_user.is_authenticated %} <a href="{{ url_for('taco') }}" class="new">Add a New Taco</a> <a href="{{ url_for('logout') }}" >log out</a> {% else %} <a href="{{ url_for('register') }}">sign up</a> <a href="{{ url_for('login') }}">log in</a> {% endif %} </nav>
Any suggestions would be appreciated.
1 Answer
Chris Freeman
Treehouse Moderator 68,468 PointsDepending on the system, sometimes parens are needed with is_authenticated(). This is mentioned at the bottom of one of the Teacher's Notes and is easy to miss. Post back if this doesn't work.