0

I want to show list of books in page. But below code does not do it.

base.html
<!DOCTYPE html>
<html lang="en">
    <head>
    </head>
    <body>
        {% include 'core/main.html' %}
    </body>
</html>
main.html
<main class="container">
    <div class="wrapper">
        {% block main %}
        {% endblock %}
    </div>
</main>
books.html
{% extends 'core/base.html' %}
{% block main %}
    Books    
{% endblock %}
Darwin
  • 1,695
  • 1
  • 19
  • 29
  • 1
    If I understand you right then this does not look like "include". Just keep extending. main extends base, books extend main. – Ivan Starostin Sep 21 '22 at 20:15

0 Answers0