Bootstrap 5 in Django
- First, install Bootstrap 5 using pip:
pip install django-bootstrap5
- Then, add
'bootstrap5'
to theINSTALLED_APPS
list in your Django settings file:
INSTALLED_APPS = [
# ...
'bootstrap5',
# ...
]
- Next, load Bootstrap 5 in your HTML template:
{% load bootstrap5 %}
Use the Bootstrap 5 template tags and filters in your templates to integrate Bootstrap components and utilities.
Finally, you can start using Bootstrap 5 classes and components in your Django templates to create responsive and visually appealing web applications.