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 Django Basics Model Administration First app view

Kade Carlson
Kade Carlson
5,928 Points

Task one is no longer passing

Not sure why task 1 is no longer passing

from django.http import HttpResponse

# Write your views here
from .models import Article

def article_list(request):
    articles = Article.objects.all()
    return HttpResponse("There are {} articles".format(len(articles))

1 Answer

Jennifer Nordell
Jennifer Nordell
Treehouse Teacher

Hi there! You're doing an excellent job here! In fact, you're only off by one character. The reason you're getting a Task <#> is no longer passing message is because you've introduced a syntax error.

Take a close look at your last line. Count the number of open parentheses and then count the number of closed parentheses. You're simply missing a closed parentheses at the end.

Hope this helps! :sparkles: