{ "info": { "author": "Vsevolod Novikov", "author_email": "nnseva@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Django-JSONEditor\n\nDjango-JSONEditor is an online structured JSON input widget for Django appropriate for various JSONField's provided for Django.\n\nCode of the javascript JSONEditor online editor has been got from the http://jsoneditoronline.org/ but slightly changed to avoid some issues.\n\nSee the latest versions of the javascript online JSON Editor here: https://github.com/josdejong/jsoneditor\n\nSample views:\n\n\"json\n\n*Don't mismatch this repo with https://github.com/skyhood/django-jsoneditor*\n\n## Installation\n\n pip install \"git+git://github.com/nnseva/django-jsoneditor.git\"\n\nNote that you should use one of original JSONField packages to provide the JSONField itself.\n\n## Configuration\n\nYou **should** append `jsoneditor` into the `INSTALLED_APPS` of your `settings.py` file:\n```python\nINSTALLED_APPS = (\n ...\n 'jsoneditor',\n ...\n)\n```\n\nYou **can** use CDN repositories to get JSONEditor javascript code, or host it yourself, instead of the packaged one using the following two settings in your `settings.py` file:\n```python\nJSON_EDITOR_JS = 'whatever-your-want.js'\nJSON_EDITOR_CSS = 'whatever-your-want.css'\n```\n\nJust look to the http://cdnjs.com/libraries/jsoneditor and select the latest one, like:\n```python\nJSON_EDITOR_JS = 'https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/4.2.1/jsoneditor.js'\nJSON_EDITOR_CSS = 'https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/4.2.1/jsoneditor.css'\n```\n\n## Use\n\nYou can use the JSONEditor widget for fields in selected Admin classes like:\n\nadmin.py:\n```python\nfrom json_field import JSONField\nfrom jsoneditor.forms import JSONEditor\nclass MyAdmin(admin.ModelAdmin):\n formfield_overrides = {\n JSONField:{ 'widget':JSONEditor },\n }\n```\n\nOr use the original JSONField implementation fixed by the package.\n\nRight now there are two fixed implementations:\n\n* `jsoneditor.fields.django_json_field.JSONField` replaces a JSONField from https://github.com/derek-schaefer/django-json-field (**NOTE** the package is not compatible with django v.1.9)\n* `jsoneditor.fields.django_jsonfield.JSONField` replaces a JSONField from https://github.com/bradjasper/django-jsonfield\n\nUse the fixed implementation instead of the original one\n\nmodels.py:\n```python\nfrom django.db import models\n\n# from json_field import JSONField replaced by:\nfrom jsoneditor.fields.django_json_field import JSONField\n# Create your models here.\n\nclass TestModel(models.Model):\n my_field = JSONField()\n```\n\n## Collecting bounties\n\nI'm collecting small bounties to integrate django-jsoneditor with different JSONField implementations, see below:\n\n[![Bountysource](https://api.bountysource.com/badge/issue?issue_id=28264536)](https://www.bountysource.com/issues/28264536-integrate-jsoneditor-with-https-launchpad-net-django-jsonfield?utm_source=28264536&utm_medium=shield&utm_campaign=ISSUE_BADGE) [![Bountysource](https://api.bountysource.com/badge/issue?issue_id=28264524)](https://www.bountysource.com/issues/28264524-integrate-jsoneditor-with-https-github-com-aychedee-unchained?utm_source=28264524&utm_medium=shield&utm_campaign=ISSUE_BADGE) [![Bountysource](https://api.bountysource.com/badge/issue?issue_id=28264508)](https://www.bountysource.com/issues/28264508-integrate-jsoneditor-with-https-github-com-vialink-vlk-django-jsonfield?utm_source=28264508&utm_medium=shield&utm_campaign=ISSUE_BADGE) [![Bountysource](https://api.bountysource.com/badge/issue?issue_id=28264503)](https://www.bountysource.com/issues/28264503-integrate-jsoneditor-with-https-github-com-rootbuzz-jsonate?utm_source=28264503&utm_medium=shield&utm_campaign=ISSUE_BADGE) [![Bountysource](https://api.bountysource.com/badge/issue?issue_id=28264495)](https://www.bountysource.com/issues/28264495-integrate-jsoneditor-with-https-bitbucket-org-schinckel-django-jsonfield?utm_source=28264495&utm_medium=shield&utm_campaign=ISSUE_BADGE) [![Bountysource](https://api.bountysource.com/badge/issue?issue_id=28264467)](https://www.bountysource.com/issues/28264467-integrate-jsoneditor-with-https-github-com-lukesneeringer-django-pgfields?utm_source=28264467&utm_medium=shield&utm_campaign=ISSUE_BADGE) [![Bountysource](https://api.bountysource.com/badge/issue?issue_id=28264451)](https://www.bountysource.com/issues/28264451-integrate-jsoneditor-with-https-github-com-djangonauts-django-pgjson?utm_source=28264451&utm_medium=shield&utm_campaign=ISSUE_BADGE) [![Bountysource](https://api.bountysource.com/badge/issue?issue_id=28264422)](https://www.bountysource.com/issues/28264422-integrate-jsoneditor-with-https-github-com-zacharyvoase-django-postgres?utm_source=28264422&utm_medium=shield&utm_campaign=ISSUE_BADGE) [![Bountysource](https://api.bountysource.com/badge/issue?issue_id=28264409)](https://www.bountysource.com/issues/28264409-integrate-jsoneditor-with-https-github-com-djangonauts-django-rest-framework-gis?utm_source=28264409&utm_medium=shield&utm_campaign=ISSUE_BADGE) [![Bountysource](https://api.bountysource.com/badge/issue?issue_id=28264385)](https://www.bountysource.com/issues/28264385-integrate-jsoneditor-with-https-github-com-skorokithakis-django-annoying?utm_source=28264385&utm_medium=shield&utm_campaign=ISSUE_BADGE) [![Bountysource](https://api.bountysource.com/badge/issue?issue_id=35175451)](https://www.bountysource.com/issues/35175451-integrate-jsoneditor-with-new-postgresql-specific-django-jsonfield?utm_source=35175451&utm_medium=shield&utm_campaign=ISSUE_BADGE)\n\n[![Bountysource](https://api.bountysource.com/badge/issue?issue_id=28268324)](https://www.bountysource.com/issues/28268324-integrate-jsoneditor-with-django-suit-https-github-com-darklow-django-suit?utm_source=28268324&utm_medium=shield&utm_campaign=ISSUE_BADGE) - Django Suit integration\n\n[![Bountysource](https://api.bountysource.com/badge/issue?issue_id=28268367)](https://www.bountysource.com/issues/28268367-integrate-jsoneditor-with-django-grappelli-https-github-com-sehmaschine-django-grappelli?utm_source=28268367&utm_medium=shield&utm_campaign=ISSUE_BADGE) - Django Grappelli integration", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nnseva/django-jsoneditor", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-jsoneditor-ng", "package_url": "https://pypi.org/project/django-jsoneditor-ng/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-jsoneditor-ng/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/nnseva/django-jsoneditor" }, "release_url": "https://pypi.org/project/django-jsoneditor-ng/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Django JSON Editor", "version": "0.0.3" }, "last_serial": 2564917, "releases": { "0.0.1": [], "0.0.2": [ { "comment_text": "", "digests": { "md5": "c1b84325f7ac13bfd7af7b670d4f66f0", "sha256": "a7ee8009fd5f286089dac58cac83f58ae4fef8e819d136ffe31466e8a47e63ed" }, "downloads": -1, "filename": "django-jsoneditor-ng-0.0.2.tar.gz", "has_sig": false, "md5_digest": "c1b84325f7ac13bfd7af7b670d4f66f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3634, "upload_time": "2017-01-10T15:06:27", "url": "https://files.pythonhosted.org/packages/95/d6/1e17d878bcc54083bd34412a8b1c1b18b363086b1f4a3149f59574259d57/django-jsoneditor-ng-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "cfbce56ea7b910408f2b40b637f309ce", "sha256": "8b7a4f09d0a82475964729efd1ad8a3eefc5862b2e483ddd58c0303a1ecf59b2" }, "downloads": -1, "filename": "django-jsoneditor-ng-0.0.3.tar.gz", "has_sig": false, "md5_digest": "cfbce56ea7b910408f2b40b637f309ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54766, "upload_time": "2017-01-10T15:41:18", "url": "https://files.pythonhosted.org/packages/41/8e/dabf4f434eeb6be2ac51977681fbcdc1dfe3aff4a19f942f0af3668ae40c/django-jsoneditor-ng-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cfbce56ea7b910408f2b40b637f309ce", "sha256": "8b7a4f09d0a82475964729efd1ad8a3eefc5862b2e483ddd58c0303a1ecf59b2" }, "downloads": -1, "filename": "django-jsoneditor-ng-0.0.3.tar.gz", "has_sig": false, "md5_digest": "cfbce56ea7b910408f2b40b637f309ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54766, "upload_time": "2017-01-10T15:41:18", "url": "https://files.pythonhosted.org/packages/41/8e/dabf4f434eeb6be2ac51977681fbcdc1dfe3aff4a19f942f0af3668ae40c/django-jsoneditor-ng-0.0.3.tar.gz" } ] }