Adding a header section
To complete the base.html
template, we need to include a header section and a footer section. Let’s start with the header.
Updating the base template
In /moviesstore/templates/base.html
, add the following in bold:
… <body> <!-- Header --> <nav class="p-3 navbar navbar-dark bg-dark navbar-expand-lg"> <div class="container"> <a class="navbar-brand" href="{% url 'home.index' %}"> <img src="{% static 'img/logo.png' %}" alt="logo" ...