August 2016
Beginner to intermediate
717 pages
15h 24m
English
When you start working on templates, one of the first actions is to create the base.html boilerplate, which will be extended by most of the page templates in your project. In this recipe, we will demonstrate how to create such template for multilingual HTML5 websites with responsiveness in mind.
Responsive websites are the ones that adapt to the viewport of the device whether the visitor uses desktop browsers, tablets, or phones.
Create the templates directory in your project and set TEMPLATE_DIRS in the settings.
Perform the following steps:
templates, create a base.html file with the following content:
{# templates/base.html #} <!DOCTYPE html> {% load i18n ...Read now
Unlock full access