hello
hello

Reputation: 37

how to properly install django-import-export

I am trying to import excel sheets into my django database, and i managed to install django-import-export. Following this https://simpleisbetterthancomplex.com/packages/2016/08/11/django-import-export.html , I edited the settings.py to include 'import-export' but I keep getting an error that there is no module named 'import-export'.

Following this https://simpleisbetterthancomplex.com/packages/2016/08/11/django-import-export.html , I edited the settings.py to include 'import-export' but I keep getting an error that there is no module named 'import-export' when I try to run the server.

ModuleNotFoundError: No module named 'import-export'

I am also not very sure about my following steps after this.

Upvotes: 1

Views: 1095

Answers (1)

Mehak
Mehak

Reputation: 961

I think there's a typo in your INSTALLED_APPS

Edit your INSTALLED_APPS. Use import_export instead of import-export

# settings.py
INSTALLED_APPS = (
    ...
    'import_export',
)

Refer the docs

Upvotes: 2

Related Questions