def setUpTestData(cls): for i in xrange(cls.number_of_dummy_loads): page_load = PageLoad() page_load.save()
def home(request): page_load = PageLoad() page_load.save() page_loads = [model.format_datetime() for model in PageLoad.objects.all()] return render(request, "home.html", {'page_loads':page_loads})