Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Flask Basics Character Builder Items

Pictures are not showing for choices

I'm not sure what is wrong with my code, but it is only letting me see the "no option" (circle with the slash) under the bear. I've tried to look for what could be the problem by looking over my code again and again but nothing. Below is what I copied from Kenneth:

<div class="items"> {% for category , choice in options.items() %} {% if category != 'colors' %} <div class="grid-100 row"> <div class="grid-20"> <p class="category-title">{{ category.title() }}</p> </div> <div class="grid-80"> <input type="radio" id="no_{{ category }}_icon" name="{{ category }}" value="" {% if not saves.get(category) %}checked{% endif %}> <label for="no_{{ category }}_icon"><img src="/static/img/no-selection.svg"></label> {% for choice in choices %} <input type="radio" id="{{ category }}-{{ choice }}_icon" name="{{ category }}" value="{{ choice }}" {% if saves.get(category) == choices %}checked{% endif %}> <label for="{{ category }}-{{ choice }}_icon"> <img src="/static/img/{{ category }}-{{ choice }}.svg"></label> {% endfor %} </div> </div> {% endif %} {% endfor %} </div>

2 Answers

Nancy Melucci
Nancy Melucci
Front End Web Development Techdegree Student 34,198 Points

I love the tutorials here. But as it seems the teachers are independent contractors, when they leave Treehouse, their code sometimes breaks or requires updating, and no one appears to be able to maintain it so that we can finish. This is the third time I've been in the middle of a tutorial that I was enjoying and learning from, and have been stopped in my tracks by a project that clearly needs some kind of update. I am just not good enough - yet - to figure out a work around. Can't anyone be put in charge of maintaining the code even after the teachers move on?