Commit 314e74a4 authored by Jan Enzo Salvador's avatar Jan Enzo Salvador

Fixed the CBV of books page

parent 78c536ea
from django.shortcuts import render
from django.http import HttpResponse
from django.views import View
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from .models import Author, Books
# Create your views here.
def homepageIndex(request):
def HomepageView(request):
return render(request, 'bookshelf/home.html', {
})
class booksIndex(View):
def get(request):
class BooksView(View):
def get(self, request):
return render(request, 'bookshelf/books.html')
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