A widget for django's JSONField using the latest-and-greatest Json Editor
Project description
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
Built Distribution
File details
Details for the file django_svelte_jsoneditor-0.1.0.tar.gz
.
File metadata
- Download URL: django_svelte_jsoneditor-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6a37d01e8955588db4f72d2ffa95ae170aec3ef825a5c2da3673ea5abf770a0 |
|
MD5 | 16d92f2be388ce78a0fc08640ea76f28 |
|
BLAKE2b-256 | 43cb6d651fb04cbf421e2e5962ec5e49573379732bc4d0728f46da788015a767 |
File details
Details for the file django_svelte_jsoneditor-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: django_svelte_jsoneditor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2e96b0e6447ca7a6828493059215c7b3bb8a32f7f6d5322c1eb2b5c8034485d |
|
MD5 | e16a2d039a79e7c25917171abb951162 |
|
BLAKE2b-256 | a7792a2922b687a2da5c7ff123954b6101df011abae5f657a5d15541496dce14 |