xxxxxxxxxx
from django.shortcuts import render
from .models import MyModel
def review_view(request, *args, **kwargs):
# Getting all the stuff from database
query_results = MyModel.objects.all();
# Creating a dictionary to pass as an argument
context = { 'query_results' : query_results }
# Returning the rendered html
return render(request, "review.html", context)