Skip to content

Wildly easy Django CSV imports

I’m currently working on a Django app wrapper for a bunch of data, and found this recently published importer to use: https://github.com/edcrewe/django-csvimport.

Doing a CSV import with Django isn’t rocket science … Python and CSVs are good friends, so doing it yourself isn’t that hard. However, this module allows two great things —

1. Essentially ‘magic’ import, especially if you take two seconds to make sure your CSV headers match your model (or you can provide a mapping)

2. It adds an importer admin module, so your less Django-savvy friends can import data themselves.

One thing I’d like to see is a logical ‘undo’ coming out of the app in case things go haywire (maybe that’s already in there?) but generally a big fan.

One Reply to “Wildly easy Django CSV imports”

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.