from django.shortcuts import render,redirect from django.contrib.auth.models import User from django.http import HttpResponse from django.contrib.auth import authenticate from django.contrib import auth # Create your views here. def showall(request): mynames = '' for i in User.objects.all(): #myname += str(i) + '
' mynames += i.username + '
' return HttpResponse(mynames)