Pretty formated JSON editor for django.contrib.postgres.fields.JSONField in django admin.

431 views
Skip to first unread message

Ratan Kulshreshtha

unread,
Oct 24, 2017, 1:49:01 AM10/24/17
to Django developers (Contributions to Django itself)
I want to propose that django.contrib.postgres.fields.JSONField should have a JSON editor with pretty formatted, syntax highlighting, and JSON validation django admin, currently it uses simple text box.

Aymeric Augustin

unread,
Oct 24, 2017, 3:07:15 AM10/24/17
to django-d...@googlegroups.com
Hello,

Yes, that would be nice. There's a couple existing third-party implementations (search for "django json editor"), however none of them looks ready for dropping into Django.

-- 
Aymeric.

2017-10-24 7:49 GMT+02:00 Ratan Kulshreshtha <ratan.s...@gmail.com>:
I want to propose that django.contrib.postgres.fields.JSONField should have a JSON editor with pretty formatted, syntax highlighting, and JSON validation django admin, currently it uses simple text box.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscribe@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/b1d193fa-2ec1-4ece-be06-0b8f6396d109%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Ratan Kulshreshtha

unread,
Oct 24, 2017, 5:14:30 AM10/24/17
to Django developers (Contributions to Django itself)
How can I add this functionality to my django admin ?

Tim Allen

unread,
Oct 25, 2017, 9:26:18 AM10/25/17
to Django developers (Contributions to Django itself)
This would certainly make a good package, but I'm not sure it belongs in core Django, as it would likely introduce dependencies for everyone.

I've done something similar for the Wagtail CMS on Django using the PrismJS library: https://github.com/FlipperPA/wagtailcodeblock A similar package only using JSON could be built for the Django admin for those who want it.
Reply all
Reply to author
Forward
0 new messages