Commit c40a64e7 authored by Anya Habana's avatar Anya Habana

Updated homepage view to reflect formatted details of all Widget Users

parent 5cd6fc31
from django.shortcuts import render from django.shortcuts import render
from django.http import HttpResponse from django.http import HttpResponse
from .models import WidgetUser
def index(request): def index(request):
return HttpResponse('Welcome to Widget!') formatted_widget_users = "WIDGET USERS:<br>"
\ No newline at end of file
for user in WidgetUser.objects.all():
formatted_widget_users += user.getWidgetUser()
return HttpResponse(formatted_widget_users)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment