Computer scienceBackendDjangoTemplates

Django template inheritance

Loading a template

Report a typo

Another template we want to load is our contact form template. We've created an HTML template for it in the file blog/templates/blog/contact-form.html.

We also have our base template in blog/templates/blog/base.html with a block of {% block content %} {% endblock %}.

Your task is to:

  • Inherit from your base template;
  • Load your contact form template.
Write HTML and CSS code
<!-- write your code below -->





Completed 0 of 2
Inherit from base template: "base.html"
Load contact form template: "contact-form.html"
___

Create a free account to access the full topic