Hello,
I am getting an error which seems quite common. However, I don't seem to be able to fix it by following the answers given in the forum. Could someone help me with this issue?
This is my WSGI file:
import os
import sys
path = '/home/mRayhoon/IESEG8'
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'IESEG8.settings'
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
This is the error:
Error running WSGI application
ImportError: win32 only
File "/var/www/mrayhoon_pythonanywhere_com_wsgi.py", line 16, in <module>
application = get_wsgi_application()
File "/home/mRayhoon/.virtualenvs/myenv/lib/python3.9/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application django.setup(set_prefix=False)
File "/home/mRayhoon/.virtualenvs/myenv/lib/python3.9/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/mRayhoon/.virtualenvs/myenv/lib/python3.9/site-packages/django/apps/registry.py", line 116, in populate app_config.import_models()
File "/home/mRayhoon/.virtualenvs/myenv/lib/python3.9/site-packages/django/apps/config.py", line 304, in import_models self.models_module = import_module(models_module_name)
File "/home/mRayhoon/IESEG8/base/models.py", line 1, in <module>
from asyncio.windows_events import NULL
File "/usr/local/lib/python3.9/asyncio/windows_events.py", line 6, in <module>
raise ImportError('win32 only')
Thanks in advance.
[edit by admin: formatting]