This is done by adding variable to the context, like you can see here. A context is a simple dictionary, you just need to add some key-value in it so your template can read them.
context = {'books': Books.objets.all()}
You can also use class-based view, but you may want to learn the simple view before.