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.1.tar.gz (16.0 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.1-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: crispy_daisyui-0.12.1.tar.gz
  • Upload date:
  • Size: 16.0 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.1.tar.gz
Algorithm Hash digest
SHA256 64c4fe7bd1919bfcc5068f5b0bc6df23ab2e7c32240e3c913a56be8fd748150c
MD5 6cbad35ee6b4883b5fd9cc4a776eb9e5
BLAKE2b-256 411fc05293c8203c228c23850f1e5440f6fe1bf3d1dce96e1f8def80297a50bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for crispy_daisyui-0.12.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for crispy_daisyui-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42dab82985adc6989f21eee6b269802d297de23c624a1da6aa9602b9da25656d
MD5 3eab330682473ee3139181d4e50c32bd
BLAKE2b-256 d8efd7c8fce0b0728a2813f4fdd077f3e6b3182b6fccea463787aaba8ce046bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for crispy_daisyui-0.12.1-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