Python Django Basics What a View! HttpResponse

Hien Ha
Hien Ha
148 Points

Hello What's wrong withh my code

from django.http import HttpResponse def Hello_Treehouse(request): return HttpResponse('Hello Treehouse')

newspaper/views.py
from django.http import HttpResponse
def Hello_Treehouse(request):
    return HttpResponse('Hello Treehouse')

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 48,710 Points

The instructions for task 2 are to create a view named index. You have Hello_Treehouse.