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 %}
Metadata
Release files for django-draftjs-tools 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-draftjs-tools-0.1.2.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_draftjs_tools-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / django-draftjs-tools-0.1.2.tar.gz
| Download URL | django-draftjs-tools-0.1.2.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66173a36fefd1f1ead06220fb376043388a8a3d425fd94138b01a7c5732cfcf5
|
|
BLAKE2b-256 checksum How to use checksums |
1d66713b5f1aaa8a92f1ba43e3a2a0ea505d592c0f148c8712f810c40222428c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.9
|
Release files / django_draftjs_tools-0.1.2-py3-none-any.whl
| Download URL | django_draftjs_tools-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7597212d325485db27a37411b2853321ffd61c0231e2b46dda9564086183fee
|
|
BLAKE2b-256 checksum How to use checksums |
27f542dda80ea04248dcfd85471c717accf7e9fd2492e8f9edb3027589d2171c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.9
|