# crispy-daisyui
A [`daisyUI`](https://daisyui.com) template pack for the wonderful [django-crispy-forms](https://github.com/django-crispy-forms/django-crispy-forms).
This repository is a fork of [`crispy-tailwind`](https://github.com/django-crispy-forms/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:
```bash
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:
```python
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
Raw data
{
"_id": null,
"home_page": null,
"name": "crispy-daisyui",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "forms, django, crispy, tailwind, daisyui",
"author": "Fabian Geiger",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/ef/3a/78d9d81882790f2fe0d6148ba3c23fb61e857e4dfd3a6d388bebef180972/crispy_daisyui-0.7.0.tar.gz",
"platform": null,
"description": "# crispy-daisyui\n\nA [`daisyUI`](https://daisyui.com) template pack for the wonderful [django-crispy-forms](https://github.com/django-crispy-forms/django-crispy-forms).\n\nThis repository is a fork of [`crispy-tailwind`](https://github.com/django-crispy-forms/crispy-tailwind) and has been modified just enough to suit my needs.\nIt works well for the most common forms elements.\n\n## How to install\n\nInstall via pip:\n\n```bash\npip install crispy-daisyui\n```\n\nYou will need to update your project's settings file to add ``crispy_forms``\nand ``crispy_daisyui`` to your project's ``INSTALLED_APPS`` setting. Also set\n``daisyui`` as an allowed template pack and as the default template pack\nfor your project:\n\n```python\nINSTALLED_APPS = [\n # ...\n 'crispy_forms',\n 'crispy_daisyui',\n # ...\n]\n\nCRISPY_ALLOWED_TEMPLATE_PACKS = 'daisyui'\nCRISPY_TEMPLATE_PACK = 'daisyui'\n```\n\n## How to use\n\nCurrent functionality allows the ``|crispy`` filter to be used to style your\nform. In your template:\n\n1. Load the filter: ``{% load daisyui_filters %}``\n2. Apply the crispy filter: ``{{ form|crispy }}``\n\nWe can also use the ``{% crispy %}`` tag to allow usage of crispy-forms'\n``FormHelper`` and ``Layout``. In your template:\n\n1. Load the crispy tag: ``{% load crispy_forms_tags %}``\n2. Add ``FormHelper`` to your form and use crispy-forms to set-up your form\n3. Use the crispy tag ``{% crispy form %}`` in your template\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "A DaisyUI package for Django Crispy Forms",
"version": "0.7.0",
"project_urls": {
"CI": "https://github.com/fabge/crispy-daisyui/actions",
"Changelog": "https://github.com/fabge/crispy-daisyui/releases",
"Homepage": "https://github.com/fabge/crispy-daisyui",
"Issues": "https://github.com/fabge/crispy-daisyui/issues"
},
"split_keywords": [
"forms",
" django",
" crispy",
" tailwind",
" daisyui"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "48a7a38fcd79707c85e4b90b655c435c76bd216e016f70509c0aa2d97c5e67f0",
"md5": "0a47f9f742f629d3c849e7762937f04c",
"sha256": "8215212202095879c38a368d06f9332d0a3aa1c89e9448930bcd1b4ec99b321f"
},
"downloads": -1,
"filename": "crispy_daisyui-0.7.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0a47f9f742f629d3c849e7762937f04c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 26911,
"upload_time": "2024-09-14T17:04:31",
"upload_time_iso_8601": "2024-09-14T17:04:31.787692Z",
"url": "https://files.pythonhosted.org/packages/48/a7/a38fcd79707c85e4b90b655c435c76bd216e016f70509c0aa2d97c5e67f0/crispy_daisyui-0.7.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ef3a78d9d81882790f2fe0d6148ba3c23fb61e857e4dfd3a6d388bebef180972",
"md5": "b411a7894c2f4326f53b34139d376339",
"sha256": "dad4e713b1b321f69985c10793cb08442281d385c6615cf02d85fb5fb720a093"
},
"downloads": -1,
"filename": "crispy_daisyui-0.7.0.tar.gz",
"has_sig": false,
"md5_digest": "b411a7894c2f4326f53b34139d376339",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 16148,
"upload_time": "2024-09-14T17:04:32",
"upload_time_iso_8601": "2024-09-14T17:04:32.740702Z",
"url": "https://files.pythonhosted.org/packages/ef/3a/78d9d81882790f2fe0d6148ba3c23fb61e857e4dfd3a6d388bebef180972/crispy_daisyui-0.7.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-14 17:04:32",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "fabge",
"github_project": "crispy-daisyui",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "crispy-daisyui"
}