9👍
You should add %
here:
{% block jumbotron}
to became:
{% block jumbotron %}
Check template syntax used in Django for more info.
2👍
{% block jumbotron}
You need to correct the syntax. You forgot to put %
in your block statement.
{% block jumbotron %}
- [Django]-How to use a different database for Heroku review apps?
- [Django]-How to use Apache to serve Django server and React client?
0👍
In my case it was {% endblock %}
problem, it should be {% block base_content %}{% endblock base_content %}
or else it fails with error Invalid block tag: 'endblock' django
- [Django]-Django Userena Customization
- [Django]-Force re-collectstatic with django static?
- [Django]-How do you access/configure summaries/snippets in Django Haystack
- [Django]-Swagger API documentation
0👍
I would use the template tags like below:
{% block jumbotron %}
<div></div>
{% endblock jumbotron %}
- [Django]-How to fix "cannot unpack non-iterable NoneType object" error in django admin whilst using custom user model
- [Django]-__init__() missing 1 required positional argument: 'model_field'
- [Django]-Django queryset return DurationField value in seconds
- [Django]-Filtering out specific Python logging messages
- [Django]-Distinct values in ManyToManyField over a subset of objects in Django
Source:stackexchange.com