Skip to main content

Export the entire database to an Excel workbook with a sheet per model.

https://travis-ci.org/maykinmedia/django-exportdb.svg?branch=master https://codecov.io/github/maykinmedia/django-exportdb/coverage.svg?branch=master https://coveralls.io/repos/maykinmedia/django-exportdb/badge.svg https://img.shields.io/pypi/v/django-exportdb.svg

Installation

$ pip install django-exportdb

Add exportdb to INSTALLED_APPS, and make sure that django.contrib.admin is in there as well.

Add

url(r’^admin/exportdb/’, include(‘exportdb.urls’))

to your urls.py, make sure that it comes before url(r’^admin/’, …) if you hook it into the admin.

Configuration

EXPORTDB_EXPORT_CONF

Configures what models and fields are exported. Example:

 EXPORT_CONF = {
    'models': {
        'auth.User': {
            'fields': ('username',),
            'resource_class': 'app.tests.utils.UserResource'
        },
        'auth.Group': {
            'resource_class': 'app.tests.utils.GroupResource'
        },
        'auth.Permission': {
            'fields': ('name',)
        }
    }
}
EXPORTDB_CONFIRM_FORM

Form shown to confirm the export

EXPORTDB_EXPORT_ROOT

The filesystem path where the exports are stored

EXPORTDB_PERMISSION

Who can access the export. By default only superusers have access.

To allow all staff users to use the export add the following to your settings:

EXPORTDB_PERMISSION = rules.is_staff

Release files for django-exportdb 0.4.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-exportdb 0.4.7
File Size Uploaded
django-exportdb-0.4.7.tar.gz 8.6 kB Details

Release files / django-exportdb-0.4.7.tar.gz

Download URL django-exportdb-0.4.7.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f7077259683bb28e86d09442e96ab5e74478b8a0c82deef1d6b9ec48cde028e9
BLAKE2b-256 checksum
How to use checksums
01be8dc6e0efe6eb6e394b3de99624e8a0d4b3d301f6c924cc7d144eda0b21e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4.7 This release

1 release file

0.4.6

1 release file

0.4.5

1 release file

0.4.4

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page