Esempio n. 1
0
 def setUpTestData(cls):
     for i in xrange(cls.number_of_dummy_loads):
         page_load = PageLoad()
         page_load.save()
Esempio n. 2
0
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})