Package to create Json WYSIWYG field for Django models
Project description
Dj jkabachcha is a Django app to create Json WYSIWYG field for Django models.
Quick start
Add “jkabachcha” to your INSTALLED_APPS like this:
``` INSTALLED_APPS = ( ... 'jkabachcha', ) ```
Collect static files by running:
``` python manage.py collectstatic ```
Import it in your models like:
``` from jkabachcha.db.fields import JsonField ```
Create model fields like:
``` json_text = JsonField() ```
Use widget to override default Textarea in ModelAdmin class like:
``` # import widget from jkabachcha.forms.widgets import JsonTextWidget # in ModelAdmin class, like formfield_overrides = { models.TextField : {'widget': JsonTextWidget}, } ```
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
dj-jkabachcha-0.7.tar.gz
(206.2 kB
view details)
File details
Details for the file dj-jkabachcha-0.7.tar.gz
.
File metadata
- Download URL: dj-jkabachcha-0.7.tar.gz
- Upload date:
- Size: 206.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae36a2f91c3a112013bf980295896c48dae123d15abc2a7aa9ce83348bd42618 |
|
MD5 | a7a4a29faf84e249e171b6cb53d77408 |
|
BLAKE2b-256 | e0bdefee59ec47690617964d77163b9fb2cdb2a5972dd63fa672e3d43ca8e21c |