Modified books to book

parent 83ac6a0b
from django.shortcuts import render from django.shortcuts import render
from django.http import HttpResponse from django.http import HttpResponse
from .models import Author, Books from .models import Author, Book
def index(request): def index(request):
bookshelf_view = "Widget's Announcement Board <br/>" bookshelf_view = "Widget's Announcement Board <br/>"
author = Author.objects.all() author = Author.objects.all()
books = Books.objects.all() book = Book.objects.all()
return HttpResponse(bookshelf_view) return HttpResponse(bookshelf_view)
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