Getting ready

We will start with the ideas app that we created in this chapter. Next, we'll execute the following tasks one by one:

  1. Make sure you have created a base.html template for your site. Learn more about this in the Arranging the base.html template recipe in Chapter 4, Templates and JavaScript.
  2. Integrate the Bootstrap 4 frontend framework CSS and JS files
    from https://getbootstrap.com/docs/4.3/getting-started/introduction/ into the base.html template.
  3. Install django-crispy-forms in your virtual environment with pip (and include it in requirements/_base.txt):
(env)$ pip install django-crispy-forms
  1. Make sure that "crispy_forms" is added to INSTALLED_APPS in the settings, and then set "bootstrap4" as the template pack to be used in this project:
# myproject/settings/_base.py
INSTALLED_APPS = (
# ...
"crispy_forms",
"ideas",
)
# ...
CRISPY_TEMPLATE_PACK = "bootstrap4"