You can integrate
Add to
In your templates, load the
* Reference: http://django-bootstrap4.readthedocs.io/en/latest/
#python #django #bootstrap #bootstrap4 #template django_bootstrap4
Django
with Bootstrap4
now. First install it using pip
:pip install django-bootstrap4
Add to
INSTALLED_APPS
in your settings.py
:'bootstrap4',
In your templates, load the
bootstrap4
library and use the bootstrap_*
tags:{% load bootstrap4 %}
{# 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>
* Reference: http://django-bootstrap4.readthedocs.io/en/latest/
#python #django #bootstrap #bootstrap4 #template django_bootstrap4