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