A tailwind package for Django Crispy Forms
Project description
A Tailwind template pack for the wonderful django-crispy-forms.
Currently the template pack allows the use of the |crispy filter to style your form. Here is an example image.
How to install
Install via pip.
pip install crispy-tailwind
You will need to update your project’s settings file to add crispy_forms and crispy_tailwind to your projects INSTALLED_APPS. Also set tailwind as and allowed template pack and as the default template pack for your project:
INSTALLED_APPS = ( ... "crispy_forms", "crispy_tailwind", ... ) CRISPY_ALLOWED_TEMPLATE_PACKS = "tailwind" CRISPY_TEMPLATE_PACK = "tailwind"
How to use
This project is still in its early stages. Currently functionality allows the |crispy filter to be used to style your form. In your template:
Load the filter {% load tailwind_filters %}
Apply the crispy filter {{ form|crispy }}
Documentation
The documentation for this project is available here: https://django-crispy-forms.github.io/crispy-tailwind/index.html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for crispy_tailwind-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 249d45e531f78c2a21dc5a62c351b711c6345d8b1ee8c099d5a4553a1e95e12c |
|
MD5 | 506fcc46fa224c81ad01dff0bff11895 |
|
BLAKE2b-256 | b294412999518e48262386dee559f420147f88acca56dcd3d3e0844f41f4f63f |