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 trialJoel Jordan
Courses Plus Student 6,561 PointsNot sure what I am doing wrong here, but I'm extending the template with ({% extends "layout.html" %}) but, still wrong
I don't understand why this keeps showing up as being wrong.
<html>
<head>
<title>Code Challenge</title>
</head>
<body>
<div class="page-header">
<!-- YOUR CODE HERE -->
{% block content %} {% endblock %}
</div>
</body>
</html>
{% extends "layout.html" %}
1 Answer
Chris Freeman
Treehouse Moderator 68,441 PointsYou are close. The instructions give the hint (which is in the "code_challenges" directory). This is a clue that the path from the template base directory to the template file is needed. Add "code_challenges" to the "layout.html" string and it should pass.
Note: The challenge was written for Django 1.9. In Django 1.10+, relative inheritance paths were allowed. Since both "layout.html" and "list.html" were in the same directory, "./layout.html" would be acceptable in these later Django versions. As the Treehouse course contents get updated, the challenge will be altered to reflect this change.
Post back if you have more questions. Good luck!!