Django Bootstrap 5
pip install django-bootstrap-v5
Njoroge Brian
pip install django-bootstrap-v5
{% 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>
INSTALLED_APPS = (
# ...
"bootstrap5",
# ...
)
pip install django-bootstrap5