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.13.0.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.13.0-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: crispy_daisyui-0.13.0.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.13.0.tar.gz
Algorithm Hash digest
SHA256 42cbd970ea93c605645ac3fa439735796fe6a67682439220e80188fa578e7722
MD5 381b058a01e917685cac5fbae6c1ab94
BLAKE2b-256 ead67357f48adcde10afa4ab528ae884fed143983ed0847ab59c2d5a544a1004

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for crispy_daisyui-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9f931d8d4ae3521d7e139d3b3ed5f6119705b87f67d3548ca0b400346c24cdc
MD5 c7d956dad047916fea8c0434422fad74
BLAKE2b-256 db44eaf4a81c026d2e37af9a4f438710abab948c4f664f8e8ebeb3fa3252ee96

See more details on using hashes here.

Provenance

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