November 2015
Beginner to intermediate
840 pages
26h 30m
English
url Template Tag to Build a Navigation MenuBefore we generate the URLs for the links we have already left blank, we’re going to add to the work we must do.
A standard design feature of modern websites is a navigation menu. Navigation menus allow for easier site navigation and are typically necessary to provide a good user experience. In this section, we create a navigation menu and then use the url template tag to generate the links in the menu.
Had we programmed every template independently, we would now be faced with the task of changing every template. However, because we built our templates with inheritance via the extends template tag, we can make a single change to our site-wide template, found in /templates/base.html.
Read now
Unlock full access