Skip to main content

A tailwind package for Django Crispy Forms

Project description

https://img.shields.io/badge/code%20style-black-000000.svg

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.

https://django-crispy-forms.github.io/crispy-tailwind/_images/crispy_form.png

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:

  1. Load the filter {% load tailwind_filters %}

  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crispy-tailwind-0.1.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

crispy_tailwind-0.1.0-py2.py3-none-any.whl (27.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file crispy-tailwind-0.1.0.tar.gz.

File metadata

  • Download URL: crispy-tailwind-0.1.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for crispy-tailwind-0.1.0.tar.gz
Algorithm Hash digest
SHA256 78399bbbab240ffd2c0d9f770f344e677997d048b8a4a6eefac8840c76a663bf
MD5 529d61ffb762f58ee5df68477fd54195
BLAKE2b-256 38f0d0332b9885ed1074ab553b1197e713849a8383b518df8346a134dcfb8639

See more details on using hashes here.

File details

Details for the file crispy_tailwind-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: crispy_tailwind-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for crispy_tailwind-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 249d45e531f78c2a21dc5a62c351b711c6345d8b1ee8c099d5a4553a1e95e12c
MD5 506fcc46fa224c81ad01dff0bff11895
BLAKE2b-256 b294412999518e48262386dee559f420147f88acca56dcd3d3e0844f41f4f63f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page