I've used the following tutorial. I used the command
pip install django-import-export, then added to the Installed Apps section.
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'import_export',
'frontend',
'userauth',
'methods',
]
When I run python manage.py collectstatic I get error ModuleNotFoundError: No module named 'import_export'
I guess you have installed Django in
virtualenv. Now when you installeddjango-import-exportyou forgot to activate your virtual environment. I doubt there is something else.Also make sure that your virtual environment is enabled when you run
django manage.py collectstatic. You might have installed Django outside all virtual environments once in the past (by mistake) and is therefore not raising "Django not found" errors but cannot findimport_exportbecause you actually installed it in virtual environment.