[Django]-Invalid block tag – bootstrap-form, expected endblock

2👍

Found it. It’s {% bootstrap_form form %}, not {% bootstrap-form form %}

Check it here

👤nik_m

1👍

{% bootstrap-form form %} should be {% bootstrap_form form %}. Also paste the error

0👍

Also for everyone else that have this same error and it’s not a typo like OP did, make sure you have loaded bootstrap in your child template via

{% extends "base.html" %}
{% load bootstrapX %}

Where X is your version of bootstrap , So it’s not sufficent to load it in the base template.In addition to that make sure the load bootstrap statment is after the extends statment, This video explains the setup in great detail https://www.youtube.com/watch?v=YmJ0TACm8oE

Leave a comment