django-import-export

Implement Django model import and export workflows to CSV, XLSX, or JSON.

Updated Jan 1, 2026
One-click install
npx skills add https://github.com/nibuno/django-import-export-books --skill django-import-export
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: django-import-export
Source: https://github.com/nibuno/django-import-export-books/tree/main/output/django-import-export
Command: npx skills add https://github.com/nibuno/django-import-export-books --skill django-import-export

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The django-import-export Skill provides a structured approach to implementing reliable data import and export workflows for Django projects using the django-import-export library, reducing manual coding and errors.

Core Features & Use Cases

  • Supports exporting and importing Django models to common formats (CSV, XLSX, JSON) with consistent field mappings.
  • Handles relations (foreign keys and many-to-many) and admin integration to streamline data pipelines.
  • Suitable for admin tasks like data migration, backup, and data synchronization across environments.

Quick Start

Use this skill to quickly scaffold export/import workflows with django-import-export. Example: export all records of a model to CSV and then import updates from a CSV back into the same model.

Frequently Asked Questions about django-import-export

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export Django model data to CSV or XLSX?

Django model data export to CSV or XLSX is handled by mapping model fields to target formats, ensuring consistent data extraction for backups or migrations. The workflow supports JSON output alongside spreadsheet formats.

What is the best way to import CSV data into Django models with foreign key relations?

Importing CSV data into Django models with foreign keys requires field mapping configurations that resolve relational references during data ingestion. This approach handles many-to-many associations and validates incoming records.

Can I integrate data import and export directly into the Django admin interface?

Django admin integration for data import and export is supported natively, allowing administrators to trigger workflows directly from model admin pages. This streamlines data migration and synchronization tasks without custom views.

Do I need Celery to handle long-running bulk imports in Django?

Celery is optional for long-running bulk imports in Django, preventing request timeouts during heavy data migration. Standard synchronous processing handles typical import volumes without requiring task queues.

Does the Django import-export workflow support JSON format alongside CSV?

JSON format is fully supported alongside CSV and XLSX for both Django model data import and export operations. This enables flexible data synchronization across different environments and API integrations.

Why does my Django data import fail on foreign key field mappings?

Django data import failures on foreign key mappings typically occur when relational references cannot be resolved during ingestion. Correct field mapping configurations and ensuring referenced records exist prevents these errors.