Forums

django_seo_js module not found

I've installed django-seo-js but my website seems not to find it. The website works well in development.

I've also tested the website in console by using

python -i ...wsgi.py

then importing the module

django_seo_js

and everything seems to be fine.

 

` : ModuleNotFoundError: No module named 'django_seo_js'

2022-10-14 07:52:24,404: File "/var/www/rikiblogger_pythonanywhere_com_wsgi.py", line 16, in <module>

2022-10-14 07:52:24,404: application = get_wsgi_application()

2022-10-14 07:52:24,405: File "/home/rikiBlogger/.virtualenvs/rikiBlogger-virtualenv/lib/python3.10/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application

2022-10-14 07:52:24,405: django.setup(set_prefix=False)

2022-10-14 07:52:24,405: File "/home/rikiBlogger/.virtualenvs/rikiBlogger-virtualenv/lib/python3.10/site-packages/django/init.py", line 24, in setup

2022-10-14 07:52:24,406: apps.populate(settings.INSTALLED_APPS)

2022-10-14 07:52:24,406: File "/home/rikiBlogger/.virtualenvs/rikiBlogger-virtualenv/lib/python3.10/site-packages/django/apps/registry.py", line 91, in populate

2022-10-14 07:52:24,406: app_config = AppConfig.create(entry)

2022-10-14 07:52:24,406: File "/home/rikiBlogger/.virtualenvs/rikiBlogger-virtualenv/lib/python3.10/site-packages/django/apps/config.py", line 193, in create

2022-10-14 07:52:24,407: import_module(entry) `

I see that your site is using a virtualenv; when you did the python -i test that you mentioned in your post, did you have the virtualenv activated? You can start a Bash console inside the env using the link in the "Virtualenv" section of the "Web" page.