semvec/pypi-packages huggingface dataset:
django-draftjs-tools 0.1.2
Django Tools around DraftJS format
License: MIT license
Requires Python: >=3.6
Keywords: django,app

.. image:: https://github.com/renderbox/django-draftjs-tools/workflows/Django%20Draft.js%20Tools%20CI/badge.svg
   :target: https://github.com/renderbox/django-draftjs-tools/workflows/Django%20Draft.js%20Tools%20CI/badge.svg
   :alt: Django Draft.js Tools CI



.. image:: https://github.com/renderbox/django-draftjs-tools/workflows/Django%20Draft.js%20Tools%20Develop/badge.svg?branch=develop
   :target: https://github.com/renderbox/django-draftjs-tools/workflows/Django%20Draft.js%20Tools%20Develop/badge.svg?branch=develop
   :alt: Django Draft.js Tools Develop


Django Draft.js Tools
=====================

Django Tools around DraftJS format

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

.. code-block:: shell

   > pip install django-draftjs-tools

Add it to your list of apps in Django

.. code-block:: python

   INSTALLED_APPS = [
       ...
       'draftjstools',
       ...
   ]

Template Tag
------------

At the top of your template make sure to include this after the 'extends' tag if used.

.. code-block:: html

   {% load draftjs_tools %}

Now pass in the draft.js data to the tag to see it render on the screen in HTML.

.. code-block:: html

   {% draftjs_render object.data %}