Bootstrap 5 in Django

  1. First, install Bootstrap 5 using pip:
pip install django-bootstrap5
  1. Then, add 'bootstrap5' to the INSTALLED_APPS list in your Django settings file:
INSTALLED_APPS = [
    # ...
    'bootstrap5',
    # ...
]
  1. Next, load Bootstrap 5 in your HTML template:
{% load bootstrap5 %}
  1. Use the Bootstrap 5 template tags and filters in your templates to integrate Bootstrap components and utilities.

  2. Finally, you can start using Bootstrap 5 classes and components in your Django templates to create responsive and visually appealing web applications.