Adding context data

Report a typo

We're constructing a Django application for a bookshop. Write a view function using a context dictionary.

context = {
    'greetings_to': 'Anonymous',
    'num_articles': 10,
}

After that, render the template called book_detail.html.

Write a program in Python 3
def detail_book(request):
...

Create a free account to access the full topic