File: setup.rst

package info (click to toggle)
django-bleach 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 448 kB
  • sloc: python: 1,155; makefile: 137; sh: 16
file content (24 lines) | stat: -rw-r--r-- 731 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
=====
Setup
=====

.. _setup:

1.  Get the source from the `Git repository`_ or install it from the Python
    Package Index by running ``pip install django-bleach``.

2.  Add ``django_bleach`` to the ``INSTALLED_APPS`` setting::

        INSTALLED_APPS += (
            'django_bleach',
        )

3. Configure ``django_bleach``. It comes with some sensible defaults, but you
   will probably want to tweak the settings for your application. See the
   :ref:`settings` page for more information

3. Add a ``django_bleach.models.BleachField`` to a model, a
   ``django_bleach.forms.BleachField`` to a form, or use the ``bleach``
   template filter in your templates.

.. _Git repository: https://github.com/marksweb/django-bleach/