Ayushman Kumar
Ayushman Kumar

Reputation: 133

Django Template Inheritance not fully working

base.html

Base .html

Blogpage.html

Blogpage.html

Results:

Results

Views inside my app

Views inside my main app

The base template is added but i can't insert contents between {% block content%} {% endblock %}. Please help. Thanks in advance . :)

Upvotes: 0

Views: 241

Answers (1)

Naeem Ahmed
Naeem Ahmed

Reputation: 21

I think you should use {% endblock content %} as there are two blocks of code.

Just let the template engine know which block is ending where. Like {% endblock content %} and {% endblock foot %}

Upvotes: 0

Related Questions