Spaces:
Sleeping
Sleeping
File size: 179 Bytes
1f074d8 |
1 2 3 4 5 6 |
from django.shortcuts import render
from .models import Book
def book_list(request):
books = Book.objects.all()
return render(request, 'book_list.html', {'books': books}) |