{ "info": { "author": "Harry White", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "django-jsonforms\n================\n\n.. image:: https://travis-ci.org/Aristotle-Metadata-Enterprises/django-jsonforms.svg?branch=master\n :target: https://travis-ci.org/Aristotle-Metadata-Enterprises/django-jsonforms\n\ndjango-jsonforms provides a Django integration of json-editor (https://github.com/json-editor/json-editor).\nA form field is provided that renders the dynamic form created by json-editor, loading in the provided schema and options along with any initial form data.\nThe field can be rendered in the same way as any other django field and also validates submitted data against your json schema on submission.\n\nInstallation\n------------\n\nInstall with pip\n``pip install django-jsonforms``\n\nAdd ``django_jsonforms`` to your INSTALLED_APPS\n\nMake sure you have APP_DIRS set to True in your ``TEMPLATES`` setting. \nMore about the templates setting here: https://docs.djangoproject.com/en/2.0/ref/settings/#templates\n\nRequirements\n------------\n\nThe python packages jsonschema and django will be installed when installing the package through pip.\nAdditionally jQuery is required on the page that will be rendering the form.\n\nInstructions for adding jQuery can be found here: https://www.w3schools.com/jquery/jquery_get_started.asp\n\nUsage\n-----\n\nThe field can be used like any other Django form field, it has the schema and options attributes which can be either python dictionaries or paths to static files as as shown below\n\n+ The schema parameter is the json schema the field will use\n+ The options parameter is passed through to the json-editor object, these options are described here: https://github.com/jdorn/json-editor#options (the schema option is not used)\n+ An optional ajax parameter determines whether any files are loaded via ajax on the frontend or loaded in the backend and put into html parameters (defaults to true)\n\nExample::\n\n from django.forms import ModelForm, Form\n from django_jsonforms.forms import JSONSchemaField\n\n class RegistrySettingsForm(Form):\n\n json = JSONSchemaField(\n schema = 'schema/schema.json',\n options = 'schema/options.json'\n )\n\nIn this example the schema file would be located in 'static/schema/schema.json'. You will need to run collectstatic after creating the file\n\nTo load the file from a directory other than STATIC_ROOT see the ``JSONFORMS_SCHEMA_DIR`` setting below\n\nExample showing all options::\n\n class RegistrySettingsForm(Form):\n\n json = JSONSchemaField(\n schema = 'schema/schema.json',\n options = {\"theme\": \"bootstrap3\"},\n ajax = false\n )\n\nSince it is common to have only one field in this type of form. A form with a single JSONSchemaField named json is also available to use\n\nForm Example::\n\n from django_jsonforms.forms import JSONSchemaForm\n\n form = JSONSchemaForm(schema=... , options=... , ajax=...)\n\nNote:\n\nWhen rendering the form don't forget to render the forms media with the template tag {{ form.media }}. This is required for the field to function correctly\n\nThe data returned when the field is submitted is in the form of a python dictionary. This may need to be converted before being stored depending on the model field being used\n\nSettings\n--------\n\nThe ``JSONFORMS_SCHEMA_DIR`` setting can be used to specify the file directory to load the schema from. This directory will need to be seving static files for the form to funciton correctly\n\nThe ``JSONFORMS_SCHEMA_VALIDATE`` settings can be set to False to disable backend validation of the submitted json. This can allow a user to submit any json if the frontend validation is bypassed. This settings should only be used during development\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Aristotle-Metadata-Enterprises/django-jsonforms", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-jsonforms", "package_url": "https://pypi.org/project/django-jsonforms/", "platform": "", "project_url": "https://pypi.org/project/django-jsonforms/", "project_urls": { "Homepage": "https://github.com/Aristotle-Metadata-Enterprises/django-jsonforms" }, "release_url": "https://pypi.org/project/django-jsonforms/1.1.0/", "requires_dist": [ "jsonschema", "django" ], "requires_python": "", "summary": "JSON Schema forms for Django", "version": "1.1.0" }, "last_serial": 3972239, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "456a2dc892d1259a119bf3052da90dfa", "sha256": "73f7e38b4b30251521046ea3dc87684fb98e983522ec003cd46b9a7aabcb87fa" }, "downloads": -1, "filename": "django_jsonforms-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "456a2dc892d1259a119bf3052da90dfa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8168, "upload_time": "2018-02-20T23:51:50", "url": "https://files.pythonhosted.org/packages/c3/3d/bb6924f75ab6ca914e2eec5fc2dca3ac64713c551c7a2ec45e157a7521b2/django_jsonforms-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b37b92634d6fe706ee45062568f8768c", "sha256": "80fa8ae29a0f64c0a3453feed8de3e2e322b056953b2cc9a7fed01fa462bc28b" }, "downloads": -1, "filename": "django-jsonforms-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b37b92634d6fe706ee45062568f8768c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5827, "upload_time": "2018-02-20T23:51:51", "url": "https://files.pythonhosted.org/packages/be/3c/b244587945a39e3a5823a31866193fe6a99f85e9a02155b534abab17a30d/django-jsonforms-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "c7acb6cee2c38381f61f6f7dca17eac0", "sha256": "e42f6ded975d051038fe2eec2bee04a8da4be5d1957e1516e249c14cf72e88a2" }, "downloads": -1, "filename": "django_jsonforms-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c7acb6cee2c38381f61f6f7dca17eac0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8327, "upload_time": "2018-02-21T01:55:17", "url": "https://files.pythonhosted.org/packages/3e/02/b5943dbcc7441b8a8fbbf76c14a5cf65c074e4aa84b0480f4c5a4f9287ff/django_jsonforms-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bbe1a50aaf81d451341f9980c1769652", "sha256": "b0e3e1ca2a72b616da150954df182529593f149db0749c9f23ddb4666c853887" }, "downloads": -1, "filename": "django-jsonforms-1.0.1.tar.gz", "has_sig": false, "md5_digest": "bbe1a50aaf81d451341f9980c1769652", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5849, "upload_time": "2018-02-21T01:55:20", "url": "https://files.pythonhosted.org/packages/cd/73/6d1f559a2003f29d03bf5a41868b4bf82f9c523a10a4f74e6f8adc03a332/django-jsonforms-1.0.1.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "e657b31e05b24f15ad405484fddc9026", "sha256": "477f00a0ca3f2e1c64dfcf7cd1c139eac77b45ff0de8d26d5cd734fc9441396e" }, "downloads": -1, "filename": "django_jsonforms-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "e657b31e05b24f15ad405484fddc9026", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10425, "upload_time": "2018-03-01T05:48:13", "url": "https://files.pythonhosted.org/packages/f9/05/dac0ea3d3a0c94169a8db355c997d2e90bb4fadeb7f58721922d56ba5d32/django_jsonforms-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "996e03e6a370571302869bab76193eaf", "sha256": "d01ee9716121f19b48a5d0d74d94f08eea275a337a38738890277199c3a991ad" }, "downloads": -1, "filename": "django-jsonforms-1.0.3.tar.gz", "has_sig": false, "md5_digest": "996e03e6a370571302869bab76193eaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 85429, "upload_time": "2018-03-01T05:48:16", "url": "https://files.pythonhosted.org/packages/b7/e6/9e938aae7c433d3370554b7390e67262a42f82ded15aea05bbf609ed364d/django-jsonforms-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "0f35581977c86e1ce897704660f3b2cb", "sha256": "4943658059d899c154600679ee5bfcc7667fa6f30738090843a61f378c27ccba" }, "downloads": -1, "filename": "django_jsonforms-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "0f35581977c86e1ce897704660f3b2cb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 89999, "upload_time": "2018-03-01T06:21:44", "url": "https://files.pythonhosted.org/packages/3d/a0/5ec1a0d499a70a05dc8d262860aff758d8166e3791b0863b4a547e0d17e6/django_jsonforms-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "27ceffd8f4ca8df915f22cc124cffe62", "sha256": "bccedd38118c974535a13771bb599f5464b2f53b6b16d7c4c51b71a644a646c9" }, "downloads": -1, "filename": "django-jsonforms-1.0.4.tar.gz", "has_sig": false, "md5_digest": "27ceffd8f4ca8df915f22cc124cffe62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 85430, "upload_time": "2018-03-01T06:21:46", "url": "https://files.pythonhosted.org/packages/a4/b3/cf69b184eed36dfc5000ee84de74e9b6b80b380e84f0ac650bff2e5033e4/django-jsonforms-1.0.4.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "6e001eb425b6721821bf84a2c6dc4d23", "sha256": "f57690a1335b2342b31e425f35310243c8658c9d67818c182885dafb3e684559" }, "downloads": -1, "filename": "django_jsonforms-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6e001eb425b6721821bf84a2c6dc4d23", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10199, "upload_time": "2018-06-18T02:24:36", "url": "https://files.pythonhosted.org/packages/5d/78/3d36205de53669eabaf73d75bd1576b6f437b165463205566432b682cefe/django_jsonforms-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6114354c3d730842602e4425bea5eae6", "sha256": "ba9d470e4867d310b6a128f1c846a737a9f7eecce2040e5028f2420685332b0c" }, "downloads": -1, "filename": "django-jsonforms-1.1.0.tar.gz", "has_sig": false, "md5_digest": "6114354c3d730842602e4425bea5eae6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8370, "upload_time": "2018-06-18T02:24:37", "url": "https://files.pythonhosted.org/packages/49/ef/f4b1bb190ce6f87e3be5f1643e80b47f913c94205f3e5b3f9ecdc93c1c3b/django-jsonforms-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6e001eb425b6721821bf84a2c6dc4d23", "sha256": "f57690a1335b2342b31e425f35310243c8658c9d67818c182885dafb3e684559" }, "downloads": -1, "filename": "django_jsonforms-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6e001eb425b6721821bf84a2c6dc4d23", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10199, "upload_time": "2018-06-18T02:24:36", "url": "https://files.pythonhosted.org/packages/5d/78/3d36205de53669eabaf73d75bd1576b6f437b165463205566432b682cefe/django_jsonforms-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6114354c3d730842602e4425bea5eae6", "sha256": "ba9d470e4867d310b6a128f1c846a737a9f7eecce2040e5028f2420685332b0c" }, "downloads": -1, "filename": "django-jsonforms-1.1.0.tar.gz", "has_sig": false, "md5_digest": "6114354c3d730842602e4425bea5eae6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8370, "upload_time": "2018-06-18T02:24:37", "url": "https://files.pythonhosted.org/packages/49/ef/f4b1bb190ce6f87e3be5f1643e80b47f913c94205f3e5b3f9ecdc93c1c3b/django-jsonforms-1.1.0.tar.gz" } ] }