May 2020
Intermediate to advanced
404 pages
10h 52m
English
To create a template, we first need to create the folders required.
Create a folder called templates in the billboard directory. The directory structure will now look as in the following code:
webapp/ manage.py webapp/ __init__.py settings.py urls.py wsgi.py billboard/ templates/ ___init_.py admin.py apps.py models.py tests.py urls.py views.py
Inside the templates folder, we'll place our template files. Let's first create base.html, which we will extend in all other templates. This will contain the CSS and JS includes, along with the general block structure of the page.
Read now
Unlock full access