FBV implementation for Homepage view

parent 15d15e30
from django.http import HttpResponse
from django.shortcuts import render from django.shortcuts import render
from django.views import View
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from .models import Author, Book
def HomeView(request):
return render(request, "bookshelf/home.html")
# Create your views here.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment