Modified views.py

parent 5f084cd3
Pipeline #2956 canceled with stages
from django.shortcuts import render
from django.http import HttpResponse
from .models import Author, Books
# Create your views here.
def index(request):
bookshelf_view = "Widget's Announcement Board <br/>"
author = Author.objects.all()
books = Books.objects.all()
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