Skip to content

Commit

Permalink
Merge pull request #188 from mate-academy/add_note_about_crispy_forms
Browse files Browse the repository at this point in the history
added note about crispy_forms
  • Loading branch information
Y-Havryliv authored Feb 27, 2023
2 parents 15d7b1d + 6161588 commit a33c2b2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,22 @@ deletion page for each manufacturer.
NOTE: Attach screenshots of all created or modified pages to pull request. It's important to attach images not links to them.

### Note: Check your code using this [checklist](checklist.md) before pushing your solution.

# Note
Follow these steps if you need to use `crispy_forms` v2.0 with Python 3.11:

1. Add `CRISPY_TEMPLATE_PACK` to `settings.py`.

```python
CRISPY_TEMPLATE_PACK="bootstrap4"
```

2. Add these apps to `INSTALLED_APPS` and install them corresponding to the `CRISPY_TEMPLATE_PACK` bootstrap version.

```python
INSTALLED APPS = [
...,
"crispy_bootstrap4",
"crispy_forms",
]
```

0 comments on commit a33c2b2

Please sign in to comment.