Bootstrap forms for Django ========================== Bootstrap integration for django using [widget templates]. Motivation ---------- This library is meant to be a drop-in replacement for [django-bootstrap5]. See below for a list of differences. I really like that library, but it is hard to customize some things because everything is done in python functions. By using widget templates, I hope this library is more flexible. Installation ------------ Install with pip: pip install 'django-bs==4.*' # for bootstrap 4 pip install 'django-bs==5.*' # for bootstrap 5 After that you have to add it to `INSTALLED_APPS`. You also need to make sure that the correct `FORM_RENDERER` is selected and `django.forms` is in `INSTALLED_APPS` (after `django_bs`). This is required so that widget templates can be overwritten: INSTALLED_APPS = [ … 'django_bs', … 'django.forms', … ] FORM_RENDERER = 'django.forms.renderers.TemplatesSetting' Usage ----- The following template tags are included in the `bootstrap` library: - `bootstrap_field {boundfield}` - Render a single field. - `bootstrap_form {form}` - Render errors and all fields for a form. The `