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 Building Custom Tags Create An Inclusion Tag

Jacqueline McKinney
Jacqueline McKinney
2,627 Points

Create an inclusion tag: Challenge Task 4 of 5, Task 1 keeps failing after successful completion

Keep getting an error that Task 1 is failing which is the "from django import template" part, but I don't think I've modified this first line. I don't think it should be failing. Or else what am I doing wrong?

code_challenges/courses/templatetags/course_extras.py
from django import template

from courses.models import Step

register = template.Library()

def steps_list:
    return Step.objects.all()

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,457 Points

If task one is failing it usually means a new syntax error was introduce in the latest changes.

It looks like you're missing the parens in the def statement

Jacqueline McKinney
Jacqueline McKinney
2,627 Points

Thank you Chris Freeman, the error message said task 1 had an issue and I didn't even catch my error in the current task ugh. Let me fix that. I fixed it and it works, thank you again. And now I better understand the error messages.