1👍
✅
You’ve put the definition of the heading_style
block in the child within the content
block. So it’s being used for two things: as text content within content
, and to fill the heading_style
block in the parent.
Move heading_style
outside of the content
block definition, and it should be fine.
0👍
one endblock is missing
{% block content %}
{{block.super}}
{% block heading_style %}Login{% endblock %} {% endblock %}
- [Answer]-Html, csrf token tag is not working. Shows in page
- [Answer]-Django clickable field for href
- [Answer]-Push notification using Django
- [Answer]-Using forms only for validation
- [Answer]-Django Hide Processing Page
0👍
I’m not sure overriding a block and nested sub-block along with {{block.super}}
is good combination of doing things. May be you want to re-factor your templates for not relying on this.
Here is a ticket on django related to this (not sure this has been fixed or not) {{ block.super }} doesn’t work with nested {% block %} statements
- [Answer]-How to escape $ in the variable name in django
- [Answer]-Key Value Storage for django ? editable in django admin
- [Answer]-Group football result by score
Source:stackexchange.com