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 Customizing Django Templates Template Tags and Filters Blocks and Inheritance

Shana HT
Shana HT
3,292 Points

extend layout task, any reason why this isn't passing?

Now, in the "list.html" template, extend "layout.html" (which is in the "code_challenges" directory).

Bummer! We accessed list.html, but can't find the content of layout.html. Did you extend "code_challenges/layout.html" within list.html?

        <title>{% block tile %} Code Challenge {% endblock %}</title>
        <div class="page-header">
            <!-- YOUR CODE HERE -->

{% extends "code_challenges/layout.html" %}
Matthew Magee
Matthew Magee
8,772 Points

Try single quotes in list.html? Perhaps that may help.

Shana HT
Shana HT
3,292 Points
{% extends 'code_challenges/layout.html' %}

doesn't work either

1 Answer

Ryan S
Ryan S
27,276 Points

Hi Shana,

Your code in task 2 is fine. The issue is actually in the code you wrote for task 1. You put the {% block %} tags in the <title> tag, which is not what the challenge asked for. Notice in "layout.html" there is a comment in the page-header div that says "YOUR CODE HERE".

I'm not sure why your code still passed task 1, but I tried it and it does for some reason. If you redo task 1 then you should be able pass task 2 with the code you have.

Good luck.