Trouble with importing Django import-export library

I've tried to import Django's import-export library as specified in the documentation. It seems that it has been installed correctly in my venv:

asgiref==3.5.2
defusedxml==0.7.1
diff-match-patch==20200713
Django==4.1.4
django-import-export==3.0.2
et-xmlfile==1.1.0
import-export==0.3.1
MarkupPy==1.14
numpy==1.23.5
odfpy==1.4.1
openpyxl==3.0.10
pandas==1.5.2
python-dateutil==2.8.2
pytz==2022.7
PyYAML==6.0
six==1.16.0
sqlparse==0.4.3
tablib==3.3.0
tzdata==2022.7
xlrd==2.0.1
xlwt==1.3.0

I've also added it to my installed apps in settings.py:

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'app.apps.AppConfig',
    'import_export',
]

But still, when I'm trying to import it in my app's admin.py file, it doesn't work:

What else could go wrong? The project itself as for now doesn't really include almost any code.

I've tried re-installing the library in my venv, double checked it if it's there, but that didn't solve the problem I'm struggling to find any solutions I could apply, since almost all of the tutorials and answers only include the two setup steps I've mentioned and done

Back to Top