<commit_before>===========
django-trix
===========

`Trix rich text editor <http://trix-editor.org>`_ widget for Django.


------------
Installation
------------

It's on `PyPI <https://pypi.python.org/pypi/django-trix>`_::

    pip install django-trix


-----------------
Using django-trix
-----------------

django-trix includes both a form widget and a model admin mixin that enables
the rich text editor.

To enable the editor in the Django admin, inherit from TrixAdmin and set
the trix_admin attribute to a list of the fields that use an editor::

    from myawesomeblogapp.models import Post<commit_msg>some more README<commit_after>===========
django-trix
===========

`Trix rich text editor <http://trix-editor.org>`_ widget for Django.

Uses Trix 0.9.


------------
Installation
------------

It's on `PyPI <https://pypi.python.org/pypi/django-trix>`_::

    pip install django-trix


-----------------
Using django-trix
-----------------

Add to *INSTALLED_APPS*::

    INSTALLED_APPS = (
        ...
        'trix',
        ...
    )

Add route to *urls.py*::

    urlpatterns = [
        ...
        url(r'^trixorwhateveryouwant/', include('trix.urls')),
        ...
    ]

django-trix includes both a form widget and a model admin mixin that enables
the rich text editor.

To enable the editor in the Django admin, inherit from TrixAdmin and set
the *trix_fields* attribute to a list of the fields that use an editor::

    from myawesomeblogapp.models import Post
{'fraction_non_alphanumeric': 0.18999323867478027, 'fraction_numerical': 0.001352265043948614, 'mean_word_length': 2.3333333333333335, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1936178', 'n_tokens_mistral': 470, 'n_tokens_neox': 437, 'n_words': 150}