"""Views for our first_app"""

from django.shortcuts import render
# from django.http import HttpResponse
from first_app.models import *

# Create your views here.


def index(request):
    """Returns hello world"""
    webpages_list = AccessRecord.objects.order_by('date')
    date_dict = {'access_records': webpages_list}
    return render(request, "first_app/index.html", context=date_dict)
