def index(request): assert isinstance(request, HttpRequest) home_model = {'Sample': 'Test information'} context = context_builder.create_context(home_model) template = loader.get_template('home/index.html') return HttpResponse(template.render(context))
def index(request): assert isinstance(request, HttpRequest) squads = Squad.objects.all() context = context_builder.create_context(squads) template = loader.get_template('squad/index.html') return HttpResponse(template.render(context))