Project: crispy-bootstrap4

Bootstrap4 template pack for django-crispy-forms

Project Details

Latest version
2023.1
Home Page
https://github.com/django-crispy-forms/crispy-bootstrap4
PyPI Page
https://pypi.org/project/crispy-bootstrap4/

Project Popularity

PageRank
0.0031280011525825118
Number of downloads
68417

crispy-bootstrap4

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:

    $ 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:

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

    CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap4"

    CRISPY_TEMPLATE_PACK = "bootstrap4"