django bootstrap 5

38

INSTALLED_APPS = (
    # ...
    "bootstrap5",
    # ...
)
{% load bootstrap5 %}

{# Display a form #}

<form action="/url/to/submit/" method="post" class="form">
    {% csrf_token %}
    {% bootstrap_form form %}
    {% buttons %}
        <button type="submit" class="btn btn-primary">Submit</button>
    {% endbuttons %}
</form>
pip install django-bootstrap5

Comments

Submit
0 Comments