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 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

articles/views.py
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
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
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: