douglasmiranda / django-admin-bootstrap

Responsive Theme for Django Admin With Sidebar Menu
MIT License
880 stars 235 forks source link

"Invalid block tag on line 132: 'ifequal', expected 'endblock'. Did you forget to register or load this tag?" #161

Closed rust-floppy closed 1 year ago

rust-floppy commented 2 years ago

Fresh install on a fresh (empty) Django project, did everything based on tutorial here.

<html>
<body>
<!--StartFragment-->

122 | <div class="{% if action_form and actions_on_bottom and cl.full_result_count %}col-sm-8{% else %}col-sm-12{% endif %}">
-- | --
{% block pagination %}{% pagination cl %}{% endblock %}
</div>
</div>
</div>
{% endif %}
{% endblock %}
<div class="panel-footer" id="panel-footer">
<span class="info pull-left">
{{ cl.result_count }}
{% ifequal cl.result_count 1 %}
{{ cl.opts.verbose_name }}
{% else %}
{{ cl.opts.verbose_name_plural }}
{% endifequal %}
</span>
<div class="right-buttons">
<a href="#panel-heading" class="btn btn-default btn-xs" role="button">
<span class="glyphicon glyphicon-chevron-up"></span>
</a>
{% if cl.formset and cl.result_count %}

<!--EndFragment-->
</body>
</html>
bifot commented 2 years ago

same for me.

bifot commented 2 years ago

works fine for me:

$ pip3 install git+https://github.com/douglasmiranda/django-admin-bootstrap@3e91bfc10b1e14c145a87d34ce4dd08f74e0f6a2
SimonMobi commented 1 year ago

Doesn't work with a new versions of django - ifequal was deprecated quite some time ago.

shayneoneill commented 1 year ago

Is there a fix?

rust-floppy commented 1 year ago

Not really. Use older versions of everything so it runs just fine, but then you can never upgrade to newer versions because this pckg is deprecated.

I'm not sure if the developer abandoned it or not, so..