crispy-daisyui


Namecrispy-daisyui JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/fabge/crispy-daisyui
SummaryA DaisyUI package for Django Crispy Forms
upload_time2023-09-08 05:04:04
maintainer
docs_urlNone
authorFabian Geiger
requires_python>=3.7
licenseMIT
keywords forms django crispy tailwind daisyui
VCS
bugtrack_url
requirements django django-crispy-forms pytest pytest-django coverage twine wheel black isort flake8 django-coverage-plugin codecov pre-commit sphinx sphinx-rtd-theme
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ===============
crispy-daisyui
===============

A `daisyUI`_ template pack for the wonderful django-crispy-forms_.

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

**WARNING**

This project is still in its early stages of development. Any contributions to
the package would be very welcomed.

Currently the template pack allows the use of the ``|crispy`` filter to style
your form. Here is an example image.

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
----------

This project is still in its early stages.

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

.. _daisyUI: https://daisyui.com
.. _crispy-tailwind: https://github.com/django-crispy-forms/crispy-tailwind
.. _django-crispy-forms: https://github.com/django-crispy-forms/django-crispy-forms


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fabge/crispy-daisyui",
    "name": "crispy-daisyui",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "forms,django,crispy,tailwind,daisyui",
    "author": "Fabian Geiger",
    "author_email": "geiger.fabian@outlook.com",
    "download_url": "https://files.pythonhosted.org/packages/73/12/176969bc8e23c62a59b6b966dc7b93ecc4f54c4da7bb67fdaa27f7107bc0/crispy-daisyui-0.2.0.tar.gz",
    "platform": null,
    "description": "===============\ncrispy-daisyui\n===============\n\nA `daisyUI`_ template pack for the wonderful django-crispy-forms_.\n\nThis repository is a fork of `crispy-daisyui`_ and has been modified just enough to suit my needs.\nIt works well for the most common forms elements.\n\n**WARNING**\n\nThis project is still in its early stages of development. Any contributions to\nthe package would be very welcomed.\n\nCurrently the template pack allows the use of the ``|crispy`` filter to style\nyour form. Here is an example image.\n\nHow to install\n--------------\n\nInstall via pip. ::\n\n    pip install crispy-daisyui\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    INSTALLED_APPS = (\n        ...\n        \"crispy_forms\",\n        \"crispy_daisyui\",\n        ...\n    )\n\n    CRISPY_ALLOWED_TEMPLATE_PACKS = \"daisyui\"\n\n    CRISPY_TEMPLATE_PACK = \"daisyui\"\n\nHow to use\n----------\n\nThis project is still in its early stages.\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\n.. _daisyUI: https://daisyui.com\n.. _crispy-tailwind: https://github.com/django-crispy-forms/crispy-tailwind\n.. _django-crispy-forms: https://github.com/django-crispy-forms/django-crispy-forms\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A DaisyUI package for Django Crispy Forms",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/fabge/crispy-daisyui"
    },
    "split_keywords": [
        "forms",
        "django",
        "crispy",
        "tailwind",
        "daisyui"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4f8473d6c361871d3578fb15b5d64bb58c179710413ecb975f35d30d6ed703c4",
                "md5": "01556f56f44c997a105e18c77b46f45c",
                "sha256": "dd5c420c96fea560866da5d0b8c0fbde4d2ba64f12694bf82802d47e6d1985bc"
            },
            "downloads": -1,
            "filename": "crispy_daisyui-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "01556f56f44c997a105e18c77b46f45c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 22903,
            "upload_time": "2023-09-08T05:04:02",
            "upload_time_iso_8601": "2023-09-08T05:04:02.967712Z",
            "url": "https://files.pythonhosted.org/packages/4f/84/73d6c361871d3578fb15b5d64bb58c179710413ecb975f35d30d6ed703c4/crispy_daisyui-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7312176969bc8e23c62a59b6b966dc7b93ecc4f54c4da7bb67fdaa27f7107bc0",
                "md5": "d77a86daaf476802db9647a495d332e0",
                "sha256": "338264d07815242a8cacd17a98884b863ef798f675c6bb2f66b76c81f46ea6ec"
            },
            "downloads": -1,
            "filename": "crispy-daisyui-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d77a86daaf476802db9647a495d332e0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 13967,
            "upload_time": "2023-09-08T05:04:04",
            "upload_time_iso_8601": "2023-09-08T05:04:04.713088Z",
            "url": "https://files.pythonhosted.org/packages/73/12/176969bc8e23c62a59b6b966dc7b93ecc4f54c4da7bb67fdaa27f7107bc0/crispy-daisyui-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-08 05:04:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fabge",
    "github_project": "crispy-daisyui",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "django",
            "specs": [
                [
                    ">=",
                    "3.2"
                ]
            ]
        },
        {
            "name": "django-crispy-forms",
            "specs": [
                [
                    "~=",
                    "1.11.0"
                ]
            ]
        },
        {
            "name": "pytest",
            "specs": []
        },
        {
            "name": "pytest-django",
            "specs": []
        },
        {
            "name": "coverage",
            "specs": []
        },
        {
            "name": "twine",
            "specs": []
        },
        {
            "name": "wheel",
            "specs": []
        },
        {
            "name": "black",
            "specs": []
        },
        {
            "name": "isort",
            "specs": []
        },
        {
            "name": "flake8",
            "specs": []
        },
        {
            "name": "django-coverage-plugin",
            "specs": []
        },
        {
            "name": "codecov",
            "specs": []
        },
        {
            "name": "pre-commit",
            "specs": []
        },
        {
            "name": "sphinx",
            "specs": []
        },
        {
            "name": "sphinx-rtd-theme",
            "specs": [
                [
                    "==",
                    "0.5.1"
                ]
            ]
        }
    ],
    "lcname": "crispy-daisyui"
}
        
Elapsed time: 0.10953s