Django import export

Importing and exporting data with included admin integration.

Posted on Dec. 20, 2012 in django, archive, django-import-export, import, export.

django-import-export is a Django application and library for importing and exporting data with included admin integration.

Features:

  • support multiple formats (Excel, CSV, JSON, ... and everything else that tablib support)
  • admin integration for importing
  • preview import changes
  • admin integration for exporting
  • export data respecting admin filters

Define import-export resource example

class BookResource(resources.ModelResource):

    class Meta:
        model = Book
        widgets = {
                'published': {'format': '%d.%m.%Y'},
                }

Integrate with admin

django-import-export

Source code and example app are available on GitHub:
https://github.com/bmihelac/django-import-export

Documentation:
https://django-import-export.readthedocs.org/en/latest/

django-import-export is currently beta software.

Share on Reddit