Skip to content

A better, user-friendly JSON editing form field for Django admin. Also supports Postgres ArrayField.

License

Notifications You must be signed in to change notification settings

H4rryK4ne/django-jsonform

This branch is 3 commits behind bhch/django-jsonform:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

465ddd6 · Oct 8, 2024
Apr 17, 2023
Oct 8, 2024
Oct 8, 2024
Sep 13, 2024
Apr 17, 2023
Aug 29, 2021
Nov 9, 2023
Aug 29, 2021
Sep 15, 2021
Sep 17, 2022
Sep 13, 2024
Aug 29, 2021

Repository files navigation

django-jsonform icon

A user-friendly JSON editing form for django admin.

DocumentationPlaygroundPyPI

Features

  • File uploads
  • Postgres ArrayField
  • Many inputs and field types
  • UI matches with Django admin's
  • Recursion (nesting with self references)
  • Validation

Screenshots

Here's a screenshot of items being added to a shopping list (JSON array) dynamically:

django-jsonform screenshot

Install

Install via pip:

$ pip install django-jsonform

Edit your settings.py file:

# settings.py

INSTALLED_APPS = [
    # ...
    'django_jsonform'
]

Upgrading notes

When upgrading from an older version of this library, please ensure that your browser is loading the latest static JavaScript files that come with this library.

  • In the development environment, clear the browser cache.
  • In the production environment, you must run the collectstatic command to update the static files.

Documentation

Quickstart and usage docs can be found at http://django-jsonform.rtfd.io.

Contributing

  • The JavaScript code is written in React and it lives in another repo: https://github.com/bhch/react-json-form.
    The JS code lacks proper documentation or comments, so before contributing, maybe open an issue and I can help you out.
  • For everything else (related to Django or widget's css), contribute directly to this repo.

License

BSD-3-Clause

About

A better, user-friendly JSON editing form field for Django admin. Also supports Postgres ArrayField.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 74.6%
  • CSS 22.0%
  • JavaScript 3.1%
  • HTML 0.3%