I'm trying to use django-bootstrap3 package with my project.
I have built my template like this:
{% extends "base.html" %}
{% block content %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{% bootstrap_icon "star" %} All customers</h3>
</div>
<div class="panel-body">
All your customers are listed here in alphabetical order. In this panel you can update and delete
your customer informations.
</div>
</div>
{{ customers }}
{% endblock %}
But i'm getting
Invalid block tag: 'bootstrap_icon', expected 'endblock'
Error.
{% load bootstrap3 %}
{% bootstrap_css %}
{% bootstrap_javascript %}
Are in base.html file.
You should load {% load bootstrap3 %}
inside your template.
{% extends "base.html" %}
{% load bootstrap3 %}
{% block content %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{% bootstrap_icon "star" %} All customers</h3>
</div>
<div class="panel-body">
All your customers are listed here in alphabetical order. In this panel you can update and delete
your customer informations.
</div>
</div>
{{ customers }}
{% endblock %}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With