Skip to main content

Django Tools around DraftJS format

Project description

Django Draft.js Tools CI Django Draft.js Tools Develop

Django Draft.js Tools

Django Tools around DraftJS format

Installation

> pip install django-draftjs-tools

Add it to your list of apps in Django

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

Template Tag

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

{% load draftjs_tools %}

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

{% draftjs_render object.data %}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-draftjs-tools-0.1.2.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

django_draftjs_tools-0.1.2-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page