File: install.rst

package info (click to toggle)
python-django-crispy-forms-foundation 0.9.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 844 kB
  • sloc: javascript: 6,437; python: 1,221; makefile: 187; sh: 17
file content (38 lines) | stat: -rw-r--r-- 932 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.. _django-crispy-forms: https://github.com/maraujop/django-crispy-forms

.. _install-intro:

=======
Install
=======

Get it from PyPi: ::

    pip install crispy-forms-foundation


Register required applications in your project settings:

    .. code-block:: python

        INSTALLED_APPS = (
            ...
            "crispy_forms",
            "crispy_forms_foundation",
            ...
        )

Import default settings at the end of the settings file:

    .. code-block:: python

        from crispy_forms_foundation.settings import *

Default template pack name used will be ``foundation-6``.

All other `django-crispy-forms`_ settings option apply, see its documentation for
more details.

Finally you will need to install Foundation assets in your project. For novices, a
quick way to start is to use last
`Foundation compiled version from CDN links <https://get.foundation/sites/docs/installation.html#cdn-links>`_.