django bootstrap
- Install Django Bootstrap 4 using pip:
pip install django-bootstrap4
- Add 'bootstrap4' to the INSTALLED_APPS list in your Django project's settings.py file:
INSTALLED_APPS = [
# ...
'bootstrap4',
# ...
]
- Use the {% load bootstrap %} tag at the top of the HTML template where you want to use Bootstrap 4:
{% load bootstrap %}
- Use the Bootstrap 4 elements and components in your HTML templates by following the Bootstrap documentation: https://getbootstrap.com/docs/4.6/getting-started/introduction/