Skip to main content

A widget for django's JSONField using the latest-and-greatest Json Editor

Project description

PyPI version Release Documentation Status Code style: black pre-commit

django-svelte-jsoneditor

A plug in widget for django's JSONField that allows manipulation and display of JSON data. The widget is built using Jos deJong's new svelte-jsoneditor.

This app is a replacement for django-jsoneditor (which uses a deprecated version of the widget, jsoneditor - you can see the differences here). You can read about why we're not directly contributing to django-jsoneditor here, the two projects might merge in the future.

Documentation...

(working on it)

About Svelte

You don't need to know or care. It's the JavaScript framework used to develop the widget - but the widget JS is all pre-built so there are no extra requirements.

Developing

To get started with developing django-svelte-jsoneditor, fork the repo then open an environment in the devcontainer (the easiest way is to use GitHub codespaces or VSCode remote containers), then type:

python manage.py migrate
python manage.py createsuperuser
# (then enter user details for yourself)
python manage.py runserver
# (then go to the localhost address in your browser)
# (and in another terminal...)
pytest
# (this should run all tests and have them pass)

You'll find this takes you to the django admin where you have several example models registered, each of which use slightly different options on the json field, so you can see how the widget behaves.

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_svelte_jsoneditor-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

django_svelte_jsoneditor-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file django_svelte_jsoneditor-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django_svelte_jsoneditor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f6a37d01e8955588db4f72d2ffa95ae170aec3ef825a5c2da3673ea5abf770a0
MD5 16d92f2be388ce78a0fc08640ea76f28
BLAKE2b-256 43cb6d651fb04cbf421e2e5962ec5e49573379732bc4d0728f46da788015a767

See more details on using hashes here.

File details

Details for the file django_svelte_jsoneditor-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_svelte_jsoneditor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2e96b0e6447ca7a6828493059215c7b3bb8a32f7f6d5322c1eb2b5c8034485d
MD5 e16a2d039a79e7c25917171abb951162
BLAKE2b-256 a7792a2922b687a2da5c7ff123954b6101df011abae5f657a5d15541496dce14

See more details on using hashes here.

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