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

Uploaded Python 3

File details

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

File metadata

  • Download URL: crispy_daisyui-0.12.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.12.0.tar.gz
Algorithm Hash digest
SHA256 ba8ba8d9375e657b32662858111804a915a1b7cba4dbe3e2f8c01a4fdb5c52bf
MD5 b2b176a9a93efc1a135f4923e851ea36
BLAKE2b-256 cdc171251b59e93abe19db551c9a79ba9c8c431bfe6f47b2e4d43324c2b11e95

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for crispy_daisyui-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6af073e560e16f561ac51f11555f1ab0efd944e0fccab372c638cace9566a293
MD5 032bd8a7b8f03c2dd95d1a72674accde
BLAKE2b-256 f6f606d63036ccb619a51ba60d1a11de8ab4b614eec478e205eb882df49782e5

See more details on using hashes here.

Provenance

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