Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Import/export django models via xlsx

Project description

Import/export django models from/to xlsx


Install django-db-xlsx:

pip install django-db-xlsx

Invoke export:

from django_db_xlsx import dump_models
return dump_models()

Invoke import (note: can import exported file):

from django_db_xlsx import load_models
<load workbook from whatever, e.g. FileField in form>

Optional setting for default models saved:

    ('myapp', 'mymodel'),


  • Import models via xlsx
  • Export models via xlsx


Beef up woefully lacking tests

Running Tests

Does the code actually work?:

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox


Copyright Jon Robison 2017, see LICENSE for details

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-db-xlsx, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size django_db_xlsx-1.0.0-py2.py3-none-any.whl (5.7 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size django-db-xlsx-1.0.0.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page