Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid block tag - bootstrap-form, expected endblock

I am working on a django project, but for some reason the template I am using brings up an invalid block tag error. I have looked at some other similar questions, but nothing seems helpful, so if you can see the problem please do tell me.Here is the template:

{% extends "learning_logs/base.html" %}
{% load bootstrap3 %}

{% block header %}
    <h2>Register an account.</h2>
{% endblock header %} 

{% block content %}

    <form method="post" action="{% url 'users:register' %}" class="form">
        {% csrf_token %}
        {% bootstrap-form form %}

        {% buttons %}
            <button name="sumbit" class="btn btn-primary">register</button>
        {% endbuttons %}

        <input type="hidden" name="next" value="{% url 'learning_logs:index' %}" />
    </form>

{% endblock content %}  

Thanks,
Milo

like image 275
Milo.D Avatar asked Oct 14 '25 04:10

Milo.D


1 Answers

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

Check it here

like image 199
nik_m Avatar answered Oct 17 '25 02:10

nik_m



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!