https://github.com/enthought/django-export
Default Repo description from terraform module
https://github.com/enthought/django-export
Last synced: 8 months ago
JSON representation
Default Repo description from terraform module
- Host: GitHub
- URL: https://github.com/enthought/django-export
- Owner: enthought
- License: bsd-3-clause
- Created: 2014-09-15T23:53:40.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-16T00:22:00.000Z (almost 12 years ago)
- Last Synced: 2024-12-27T02:42:28.808Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 101 KB
- Stars: 0
- Watchers: 23
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
Awesome Lists containing this project
README
Django Export
=============
**Django app allowing for filtered exporting of model object data.**
django-export allows you to export model objects in a wide range of serialized formats (JSON, CSV, XML, YAML). Exports can be filtered and ordered on any of the particular model's fields.
django-export utilizes `django-object-tools `_ to hook into Django's admin interface and take care of user permissions.
.. contents:: Contents
:depth: 5
Installation
------------
#. Install ``django-object-tools`` as described `here `_.
#. Install or add ``django-export`` to your Python path.
#. Add ``export`` to your ``INSTALLED_APPS`` setting.
#. Optionally for exporting in CSV you need to add ``snippetscream.csv_serializer`` to your ``SERIALIZATION_MODULES`` setting, i.e.::
SERIALIZATION_MODULES = {
# ...
'csv': 'snippetscream.csv_serializer',
}
Usage
-----
Once installed you should see an **Export** object tool enabled on all admin change list views.
.. image:: https://github.com/downloads/praekelt/django-export/export_example.png
If you don't see the tool make sure the logged in user has the appropriate export user permission assigned (or set user as superuser).
Clicking the **Export** tool link takes you to an export page on which you can specify format, ordering and filtering of the objects you want to export. The export is delivered as a download in whichever format you select.