Set up and use crispy forms

pip install django-crispy-forms

settings.py:
…under INSTALLED_APPS
…add
‘crispy_forms’,
…after that outside of INSTALLED_APPS
…add
CRISPY_TEMPLATE_PACK = ‘bootstrap4’

to load them in html add the following line:
…at the top
{% load crispy_forms_tags %}
…in the form right under the csrf_token
…this also would replace form.as_p
{{ form|crispy }}