Contacts page

Report a typo

/contacts is another page we want to add to the site. You've created an HTML template for it in the file book/templates/book/contacts.html. You need to create a class that will serve this page on the site. There is no need to pass any additional data to the template.

By default, Django looks for templates in all of your <application_name>/templates directories, so do not include book/templates in the template path.
Write a program in Python 3
from django.views.generic.base import TemplateView


class ContactsView(TemplateView):
...
___

Create a free account to access the full topic