SetupΒΆ
Get the source from the Git repository or install it from the Python Package Index by running
pip install django-bleach
.Add
django_bleach
to theINSTALLED_APPS
setting:INSTALLED_APPS += ( 'django_bleach', )
Configure
django_bleach
. It comes with some sensible defaults, but you will probably want to tweak the settings for your application. See the :role:`settings` page for more information
- Add a
django_bleach.models.BleachField
to a model, adjango_bleach.forms.BleachField
to a form, or use thebleach
template filter in your templates.