Activity 1.01 – creating a site welcome screen
The Bookr website that we are building needs to have a splash page that welcomes users and lets them know what site they are on. It will also contain links to other parts of the site, but these will be added in later chapters. For now, you will create a page with a welcome message.
These steps will help you complete the activity:
- In your
index
view, render thebase.html
template. - Update the
base.html
template to contain the welcome message. It should be in both the<title>
tag in<head>
and in a new<h1>
tag in the body.
After completing the activity, you should be able to see something like this:
Figure 1.52 – The Bookr welcome page
Note
The solution for this activity can be found on https://github.com/PacktPublishing/Web-Development-with-Django-Second-Edition/tree/main/ActivitySolutions.
In the next activity, you will build a basic page to show...