from django.shortcuts import render, redirect, reverse, render_to_response from .models import rt_reg_res from django.http import HttpResponse, JsonResponse def units(request): #table = rt_reg_res.objects.all() table = [ { "id": "1", "run_date": "2020/04/24", "ref_vs_new": "1.72562", "cts_suite": "rt_cts", "cts_avg": "-1.5", "cts_tavg": "7.6", "cts_testcase_count": "15 / 16", }, ] return render(request, 'runtime.html', {'table': table})