November 2015
Beginner to intermediate
840 pages
26h 30m
English
Typically, developers do not inherit app templates directly from the base template. Instead, each app defines an intermediary template, which inherits from the base. This allows apps to define their own behavior. A template thus first inherits from the app base template, which in turn inherits from the project base template.
At the moment, we don’t actually have anything to place in the app base template, so this may seem silly. However, following this convention can save you time in the long run, as we shall see in Chapter 16: Serving Static Content with Django.
To start, we can create a base template for our organizer app: organizer/templates/organizer/base_organizer.html. The contents at this point ...
Read now
Unlock full access