%global _empty_manifest_terminate_build 0 Name: python-django-jsonform Version: 2.17.0 Release: 1 Summary: A user-friendly JSON editing form for Django admin. License: BSD-3-Clause URL: https://www.github.com/bhch/django-jsonform Source0: https://mirrors.nju.edu.cn/pypi/web/packages/8e/9c/85fdaca6ff207608a8d94d13b55f16b8374cf39974ab71723403e49c948a/django-jsonform-2.17.0.tar.gz BuildArch: noarch Requires: python3-django %description
A user-friendly JSON editing form for django admin.
Documentation • Playground • PyPI
## Features - [x] File uploads - [x] Postgres `ArrayField` - [x] Many inputs and field types - [x] UI matches with Django admin's - [x] Recursion (nesting with self references) - [x] Validation ## Screenshots Here's a screenshot of items being added to a shopping list (JSON array) dynamically: ![django-jsonform screenshot](https://raw.githubusercontent.com/bhch/django-jsonform/master/docs/_static/quickstart.gif) ## Install Install via pip: ```sh $ pip install django-jsonform ``` Edit your *settings.py* file: ```python # 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](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](LICENSE.txt) %package -n python3-django-jsonform Summary: A user-friendly JSON editing form for Django admin. Provides: python-django-jsonform BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-django-jsonform
A user-friendly JSON editing form for django admin.
Documentation • Playground • PyPI
## Features - [x] File uploads - [x] Postgres `ArrayField` - [x] Many inputs and field types - [x] UI matches with Django admin's - [x] Recursion (nesting with self references) - [x] Validation ## Screenshots Here's a screenshot of items being added to a shopping list (JSON array) dynamically: ![django-jsonform screenshot](https://raw.githubusercontent.com/bhch/django-jsonform/master/docs/_static/quickstart.gif) ## Install Install via pip: ```sh $ pip install django-jsonform ``` Edit your *settings.py* file: ```python # 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](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](LICENSE.txt) %package help Summary: Development documents and examples for django-jsonform Provides: python3-django-jsonform-doc %description help
A user-friendly JSON editing form for django admin.
Documentation • Playground • PyPI
## Features - [x] File uploads - [x] Postgres `ArrayField` - [x] Many inputs and field types - [x] UI matches with Django admin's - [x] Recursion (nesting with self references) - [x] Validation ## Screenshots Here's a screenshot of items being added to a shopping list (JSON array) dynamically: ![django-jsonform screenshot](https://raw.githubusercontent.com/bhch/django-jsonform/master/docs/_static/quickstart.gif) ## Install Install via pip: ```sh $ pip install django-jsonform ``` Edit your *settings.py* file: ```python # 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](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](LICENSE.txt) %prep %autosetup -n django-jsonform-2.17.0 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-django-jsonform -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Wed May 31 2023 Python_Bot