What is Bootstrap?

  • Bootstrap is a popular CSS framework for developing responsive, mobile-first web applications.

How to Install Django-bootstrap5?

  • The Django-bootstrap5 app uses required Bootstrap files and provides styling directives available in our project’s templates.
  • From the terminal, simply type:
1pip install django-bootstrap5
  • For Mac users, from the terminal, type:
1pip3 install django-bootstrap5
  • Next, we need to add the following code to include django-bootstrap5 in INSTALLED_APPS in settings.py:

settings.py

settings.py INSTALLED_APPS showing django_bootstrap5 added under the Third party apps section

  • Start a new section called Third party apps for apps created by other developers and add ‘django_bootstrap5’ to this section.