File: install.rst

package info (click to toggle)
python-django-crispy-forms-foundation 1.1.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 880 kB
  • sloc: javascript: 6,437; python: 1,326; makefile: 200; sh: 17
file content (34 lines) | stat: -rw-r--r-- 854 bytes parent folder | download
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
.. _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: ::

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

Import default settings at the end of the settings file: ::

    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>`_.