The easiest way to get Bootstrap into your Django installation is to use pip. You can manually load the files but I found this to be the simplest solution.
Install using pip:
Add ‘bootstrap4’ anywhere in INSTALLED_APPS inside your settings.py file:
In your template files, add {% load bootstrap4 %} to load the bootstrap4 library.
Configuring Django
Now that we have loaded the main files for Django, we may need to add additional CSS files to get the correct style we are looking for. To do this we need to make use of static files.
Django already knows where to find our static files but we need to create the correct folder inside our app if it does not exist already.
To keep things well organised we should create a folder called ‘CSS’ to place our stylesheets in.
Once you have put all your stylesheets that you need in our newly created folder, we now need to tell our templates to use them! We can have multiple css files for different pages if needed, you simply need to reference the correct file.
Inside your template file, add {% load staticfiles %} near the top of your template. Our example template should now look like below.
The last step is to tell our template which css file(s) we want to use. In between your <head> </head> tags, put the following.
Our template folder should now look similar to this.
References
https://github.com/zostera/django-bootstrap4