Introduction
Straightforward, reliable and comprehensive file import / export for your Django application.
django-import-export is an application and library which lets you manage import / export from / to a variety of sources (csv, xlsx, json etc).
Can be run programmatically, or with optional integration with the Django Admin site:
Features
Import / export via Admin UI Integration or programmatically
Import to and from a variety of file formats (csv, json, xlsx, pandas, HTML, YAML… and anything else that tablib supports)
Preview data before importing in Admin UI
Support for bulk import
Flexible handling of foreign key relationships
Many-to-many relationship support
Validation of imported data
Define custom transformations for exported data
Import / export the same model instance as different views
Export using natural keys for portability between environments
Select items for export via the Admin UI object list
Select fields for export via the export form
Use django permissions to control import / export authorization
Internationalization support
Based on tablib
Support for MySQL / PostgreSQL / SQLite
Extensible - add custom logic to control import / export
Handle import from various character encodings
Celery integration
Test locally with Docker
Comprehensive documentation
test coverage :100:
Supports dark mode :rocket:
Example use-cases
django-import-export is designed to be extensible and can be used to support a variety of operations. Here are some examples of how it has been used in the wild:
Configure external cron jobs to run an import or export at set times
Use permissions to define a subset of users able to import and export project data
Safely update project reference data by importing from version controlled csv
Create portable data to transfer between environments using natural keys
Manage user access to an application by importing externally version controlled auth user lists
Add hooks to anonymize data on export
Modify import / export UI forms to add dynamic filtering on import / export.
Build a migration layer between platforms, for example take a Wordpress export and import to Wagtail
Getting started
Help and support
Commercial support
Commercial support is provided by Bellaport Systems Ltd
Releases
Release files for django-import-export 4.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_import_export-4.4.1.tar.gz | 2.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_import_export-4.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.4 MB
Release files / django_import_export-4.4.1.tar.gz
| Download URL | django_import_export-4.4.1.tar.gz |
|---|---|
| Size | 2.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
165dc7fdcd56a6356342eef3f88f3f3682b64b6f67e9a259a137e8b57aeff10c
|
|
BLAKE2b-256 checksum How to use checksums |
92325b83cc46a70ac94c1d17144097bf8aee7d9bb401d0863652c8d5ce1d2e50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 5, 2026.
Transparency logRelease files / django_import_export-4.4.1-py3-none-any.whl
| Download URL | django_import_export-4.4.1-py3-none-any.whl |
|---|---|
| Size | 157.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8be2782e505ae303ccb02070a1b4c528995922126fca9ee449eb28666835dd4b
|
|
BLAKE2b-256 checksum How to use checksums |
91d1110aeb2acffea56d4222861b5678c2643f0bda00081e40d687077348bb7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 5, 2026.
Transparency log