---
title: "django-import-export | pypx"
description: "Django application and library for importing and exporting data with included admin integration."
canonical_url: "https://pypx.app/packages/django-import-export"
meta:
  "og:description": "Django application and library for importing and exporting data with included admin integration."
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_django-import-export%2Cversion_4.4.6%2Csummary_Django%2Bapplication%2Band%2Blibrary%2Bfor%2Bimporting%2Band%2Bexporting%2Bdata%2Bwith%2Bincluded%2Badmin%2Bintegration.%2Clicense_BSD%2BLicense%2Cp_Ii9wYWNrYWdlcy9kamFuZ28taW1wb3J0LWV4cG9ydCI%2Cs_VFfP3xg0krw2WxaW.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "django-import-export 4.4.6"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_django-import-export%2Cversion_4.4.6%2Csummary_Django%2Bapplication%2Band%2Blibrary%2Bfor%2Bimporting%2Band%2Bexporting%2Bdata%2Bwith%2Bincluded%2Badmin%2Bintegration.%2Clicense_BSD%2BLicense%2Cp_Ii9wYWNrYWdlcy9kamFuZ28taW1wb3J0LWV4cG9ydCI%2Cs_VFfP3xg0krw2WxaW.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **django-import-export**

v4.4.6

Django application and library for importing and exporting data with included admin integration.

158 KB Python 3.9+ py3-none-anyBSD License3 deps

[** Diff **](https://pypx.app/packages/django-import-export/diff)

`$ uv add django-import-export`

====================

# django-import-export

[![Build status on Github](https://github.com/django-import-export/django-import-export/actions/workflows/release.yml/badge.svg)](https://github.com/django-import-export/django-import-export/actions/workflows/release.yml) [![Current version on PyPi](https://img.shields.io/pypi/v/django-import-export.svg)](https://pypi.org/project/django-import-export/) [![Documentation](http://readthedocs.org/projects/django-import-export/badge/?version=stable)](https://django-import-export.readthedocs.io/en/stable/) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-import-export) ![PyPI - Django Version](https://img.shields.io/pypi/djversions/django-import-export) [![Follow us on X](https://img.shields.io/twitter/url/https/twitter.com/django_import.svg?style=social&label=Follow%20%40django_import)](https://twitter.com/django_import) ![Discord](https://img.shields.io/discord/1240294048653119508?style=flat)

# 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:

.. source of this video uploaded to this issue comment: https://github.com/django-import-export/django-import-export/pull/1833#issuecomment-2118777440

https://github.com/django-import-export/django-import-export/assets/6249838/ab56d8ba-c307-4bdf-8fa9-225669c72b37

[Screenshots](https://django-import-export.readthedocs.io/en/latest/screenshots.html)

# Features

- Import / export via [Admin UI Integration](https://django-import-export.readthedocs.io/en/latest/admin_integration.html) or [programmatically](https://django-import-export.readthedocs.io/en/latest/getting_started.html#importing-data)
- Import to and from a variety of file formats (csv, json, xlsx, pandas, HTML, YAML... and anything else that [tablib](https://github.com/jazzband/tablib) supports)
- [Preview](https://django-import-export.readthedocs.io/en/latest/screenshots.html/) data before importing in Admin UI
- Support for [bulk import](https://django-import-export.readthedocs.io/en/latest/bulk_import.html)
- Handles [CRUD (and 'skip') operations during import](https://django-import-export.readthedocs.io/en/latest/advanced_usage.html#create-or-update-model-instances)
- Flexible handling of [foreign key](https://django-import-export.readthedocs.io/en/latest/advanced_usage.html#importing-model-relations) relationships
- [Many-to-many relationship](https://django-import-export.readthedocs.io/en/latest/advanced_usage.html#many-to-many-relations) support
- [Validation](https://django-import-export.readthedocs.io/en/latest/advanced_usage.html#validation-during-import) of imported data
- Define custom [transformations](https://django-import-export.readthedocs.io/en/latest/advanced_usage.html#advanced-data-manipulation-on-export) for exported data
- Import / export the same model instance as [different views](https://django-import-export.readthedocs.io/en/latest/advanced_usage.html#customize-resource-options)
- Export using [natural keys](https://django-import-export.readthedocs.io/en/latest/advanced_usage.html#django-natural-keys)\_ for portability between environments
- [Select items for export](https://django-import-export.readthedocs.io/en/latest/screenshots.html/) via the Admin UI object list
- [Select fields for export](https://django-import-export.readthedocs.io/en/latest/screenshots.html/) via the export form
- [Export single object instances](https://django-import-export.readthedocs.io/en/latest/admin_integration.html#export-from-model-instance-change-form)
- Use [django permissions](https://django-import-export.readthedocs.io/en/latest/installation.html#import-export-import-permission-code) to control import / export authorization
- Internationalization support
- Based on [tablib](https://github.com/jazzband/tablib)\_
- Support for MySQL / PostgreSQL / SQLite
- Extensible - [add custom logic to control import / export](https://django-import-export.readthedocs.io/en/latest/advanced_usage.html)
- Handle import from various character encodings
- [Celery](https://django-import-export.readthedocs.io/en/latest/celery.html) integration
- Test locally with [Docker](https://django-import-export.readthedocs.io/en/latest/testing.html)
- Comprehensive [documentation](https://django-import-export.readthedocs.io/en/latest/index.html)\_
- [Extensible API](https://django-import-export.readthedocs.io/en/latest/api_admin.html)
- 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](https://django-import-export.readthedocs.io/en/latest/installation.html#import-export-import-permission-code) 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](https://django-import-export.readthedocs.io/en/latest/advanced_usage.html#django-natural-keys)
- Manage user access to an application by importing externally version controlled auth user lists
- Add [hooks](https://django-import-export.readthedocs.io/en/latest/advanced_usage.html#advanced-data-manipulation-on-export) to anonymize data on export
- [Modify import / export UI forms](https://django-import-export.readthedocs.io/en/latest/admin_integration.html#customize-admin-import-forms) to add dynamic filtering on import / export.
- Build a migration layer between platforms, for example take a [Wordpress](https://wordpress.org/) export and import to [Wagtail](https://wagtail.org/)

# Getting started

- [Installation](https://django-import-export.readthedocs.io/en/latest/installation.html)
- [Getting started](https://django-import-export.readthedocs.io/en/latest/getting_started.html)\_
- [Example application](https://django-import-export.readthedocs.io/en/latest/installation.html#exampleapp)

# Help and support

- [Documentation](https://django-import-export.readthedocs.io/en/latest/)
- [FAQ](https://django-import-export.readthedocs.io/en/latest/faq.html)
- [Getting help](https://django-import-export.readthedocs.io/en/latest/faq.html#what-s-the-best-way-to-communicate-a-problem-question-or-suggestion)
- [Contributing](https://django-import-export.readthedocs.io/en/latest/faq.html#how-can-i-help)
- Become a [sponsor](https://github.com/sponsors/django-import-export)
- Join our [discord](https://discord.gg/aCcec52kY4)
- Tutorial videos on [YouTube](https://www.youtube.com/results?search_query=django-import-export)
- [Raise a security issue](https://github.com/django-import-export/django-import-export/blob/main/SECURITY.md)

# Commercial support

Commercial support is provided by [Bellaport Systems Ltd](https://www.bellaport.co.uk)

# Releases

- [Release notes](https://django-import-export.readthedocs.io/en/latest/release_notes.html)
- [Changelog](https://django-import-export.readthedocs.io/en/latest/changelog.html)

## **Details **

<dl>

<dt>Version</dt>
<dd>4.4.6</dd>

<dt>License</dt>
<dd>BSD License</dd>

<dt>Python</dt>
<dd>&gt;=3.9</dd>

<dt>Maintainer</dt>
<dd>Bojan Mihelač &lt;djangoimportexport@gmail.com&gt;</dd></dl>

## **Links**

- [Changelog](https://github.com/django-import-export/django-import-export/blob/main/docs/changelog.rst)
- [Documentation](https://django-import-export.readthedocs.io/en/stable/)
- [Repository](https://github.com/django-import-export/django-import-export)
- [View on PyPI](https://pypi.org/project/django-import-export/)

## **Release Cadence **

**7**

releases in the past year

avg 45 days between releases

## **Maintainers **

- Bojan Mihelač · [djangoimportexport@gmail.com](mailto:djangoimportexport@gmail.com)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/django-import-export#webpage","@type":"WebPage","description":"Django application and library for importing and exporting data with included admin integration.","name":"django-import-export","url":"https://pypx.app/packages/django-import-export","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/django-import-export"]}]},{"@id":"https://pypx.app/packages/django-import-export#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"Django application and library for importing and exporting data with included admin integration.","license":"BSD License","name":"django-import-export","softwareVersion":"4.4.6"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
