Skip to main content

A DaisyUI package for Django Crispy Forms

Project description

crispy-daisyui

A daisyUI template pack for the wonderful django-crispy-forms.

This repository is a fork of crispy-tailwind and has been modified just enough to suit my needs. It works well for the most common forms elements.

How to install

Install via pip:

pip install crispy-daisyui

You will need to update your project's settings file to add crispy_forms and crispy_daisyui to your project's INSTALLED_APPS setting. Also set daisyui as an allowed template pack and as the default template pack for your project:

INSTALLED_APPS = [
    # ...
    'crispy_forms',
    'crispy_daisyui',
    # ...
]

CRISPY_ALLOWED_TEMPLATE_PACKS = 'daisyui'
CRISPY_TEMPLATE_PACK = 'daisyui'

How to use

Current functionality allows the |crispy filter to be used to style your form. In your template:

  1. Load the filter: {% load daisyui_filters %}
  2. Apply the crispy filter: {{ form|crispy }}

We can also use the {% crispy %} tag to allow usage of crispy-forms' FormHelper and Layout. In your template:

  1. Load the crispy tag: {% load crispy_forms_tags %}
  2. Add FormHelper to your form and use crispy-forms to set-up your form
  3. Use the crispy tag {% crispy form %} in your template

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_daisyui-0.12.2.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crispy_daisyui-0.12.2-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file crispy_daisyui-0.12.2.tar.gz.

File metadata

  • Download URL: crispy_daisyui-0.12.2.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for crispy_daisyui-0.12.2.tar.gz
Algorithm Hash digest
SHA256 f61b138c6d2b61d507520dfe5bff860b8c34f4276412b4c66ab5d8195f2a101c
MD5 1a83363764984a712ff32504000e7f2a
BLAKE2b-256 152fc6002ca75d6acfe208800c0c035cf2b30baeae5cbd8b500a6b770b3509b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for crispy_daisyui-0.12.2.tar.gz:

Publisher: publish.yml on fabge/crispy-daisyui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crispy_daisyui-0.12.2-py3-none-any.whl.

File metadata

File hashes

Hashes for crispy_daisyui-0.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c4fe77dc5a0a15de43742ac83c00d07ea898257fd52bbb18d23d4da6524a07f
MD5 838cb334a7835c7aa6c03d47a95581c4
BLAKE2b-256 bf11e051eceac4583f092a8da10b5e45ba9654e5fca579c1ad31a2aff1774287

See more details on using hashes here.

Provenance

The following attestation bundles were made for crispy_daisyui-0.12.2-py3-none-any.whl:

Publisher: publish.yml on fabge/crispy-daisyui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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