Home>

Thank you very much, please let me know if you know.

Things I want to do or are in trouble

I want to import data into the DB of an app created with Django.
I am currently using "Django-import-export", but when I writefrom import_export import resourcesand the import statement, I get an error.

● Error text

django.core.exceptions.ImproperlyConfigured: Requested setting IMPORT_EXPORT_USE_TRANSACTIONS, but settings are not configured.You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure () before accessing settings.
>

I'm trying to set IMPORT_EXPORT_USE_TRANSACTIONS in settings.py to True while reading the official text, or trying to load settings explicitly, but it doesn't work.

Official text:
https://kurozumi.github.io/django-import- export/index.html

I just need to be able to import data into the Django app's DB, so I'm not particular about this, but is there any good way?

Environment etc.

python 3.6
Django 2.1
Mac OS High Sierra 10.13.6