File: README.md

package info (click to toggle)
python-crispy-bootstrap4 2024.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 660 kB
  • sloc: python: 1,994; sh: 6; makefile: 4
file content (34 lines) | stat: -rw-r--r-- 854 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# crispy-bootstrap4

[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/smithdc1/crispy-bootstrap4/blob/main/LICENSE)

Bootstrap4 template pack for django-crispy-forms. This template pack was 
included with the core django-crispy-forms package until version 2.0.

## Installation

Install this plugin using `pip`:

```bash
    $ pip install crispy-bootstrap4
```

## Usage

You will need to update your project's settings file to add `crispy_forms`
and `crispy_bootstrap4` to your projects `INSTALLED_APPS`. Also set
`bootstrap4` as and allowed template pack and as the default template pack
for your project:

```python
    INSTALLED_APPS = (
        ...
        "crispy_forms",
        "crispy_bootstrap4",
        ...
    )

    CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap4"

    CRISPY_TEMPLATE_PACK = "bootstrap4"
```