Django admin package to interact with Sharing Configs API
Project description
Features
provides client to interact with Sharing Configs API
easy download and upload of resources in the Django admin
Installation
Requirements
Python 3.7 or above
setuptools 30.3.0 or above
Django 2.2 or newer
Install
Install from PyPI
pip install sharing-configs
Add sharing_configs to the INSTALLED_APPS setting.
In the admin page of SharingConfigsConfig configure access to the Sharing Configs API
Usage
The Sharing Config Library provides two mixins to add into the ModelAdmin class of your resources: * SharingConfigsImportMixin - to import the resource * SharingConfigsExportMixin - to export the resource
The mixins provide custom admin views and request Sharing Configs API under the hood.
Import
To use SharingConfigsImportMixin the developer should specify how to convert the imported file into the django model instance and override get_sharing_configs_import_data method
Export
To use SharingConfigsExportMixin the developer should specify how to convert the django model instance into the exporting file and override get_sharing_configs_export_data method
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.