from django.shortcuts import render
from django.http import HttpResponse

from first_app.models import Topic, Webpage, AccessRecord
# Create your views here.

def index(request):
    wp_list = AccessRecord.objects.order_by('date')
    date_dict = {'access_records': wp_list}
    my_dict = {'insert_me': 'hello, i am from views.py'}
    return render(request, 'first_app/index.html', context=date_dict)
