from django.shortcuts import render from .models import User def user_list(request): users = User.query.all() return render(request, 'user_list.html', {'users': users})