Таймаут шлюза - Шлюз не получил своевременного ответа от вышестоящего сервера или приложения.

Я смог запустить другие приложения Django, используя эти же настройки, но когда я установил Django CMS, эти настройки больше не работали. Да, другое приложение работает на Python 3.7, а я использую 3.8 для Django CMS. Ниже приведен журнал ошибок и другие настройки. Пожалуйста, любая помощь будет очень признательна.

Журнал ошибок:

Traceback (most recent call last):
File "/home/siteuser/public_html/core/wsgi.py", line 12, in
from django.core.wsgi import get_wsgi_application
ModuleNotFoundError: No module named 'django'
mod_wsgi (pid=13800): Failed to exec Python script file '/home/siteuser/public_html/core/wsgi.py'.
mod_wsgi (pid=13800): Exception occurred processing WSGI script '/home/siteuser/public_html/core/wsgi.py'.
Traceback (most recent call last):
File "/home/siteuser/public_html/core/wsgi.py", line 12, in
from django.core.wsgi import get_wsgi_application
ModuleNotFoundError: No module named 'django'
mod_wsgi (pid=13800): Failed to exec Python script file '/home/siteuser/public_html/core/wsgi.py'.
mod_wsgi (pid=13800): Exception occurred processing WSGI script '/home/siteuser/public_html/core/wsgi.py'.
Traceback (most recent call last):
File "/home/siteuser/public_html/core/wsgi.py", line 12, in
from django.core.wsgi import get_wsgi_application
ModuleNotFoundError: No module named 'django'
Timeout when reading response headers from daemon process 'siteuser.net': /home/siteuser/public_html/core/wsgi.py
Timeout when reading response headers from daemon process 'siteuser.net': /home/siteuser/public_html/core/wsgi.py
Timeout when reading response headers from daemon process 'siteuser.net': /home/siteuser/public_html/core/wsgi.py, referer: https://siteuser.net/
Timeout when reading response headers from daemon process 'siteuser.net': /home/siteuser/public_html/core/wsgi.py

wsgi.py

import os
from django.core.wsgi import get_wsgi_application
sys.path.append('/home/siteuser/public_html/')
sys.path.append('/venv/lib/python3.8/site-packages')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')
application = get_wsgi_application()

.conf

WSGIDaemonProcess siteuser.net python-home=/home/siteuser/public_html/venv
WSGIProcessGroup siteuser.net
WSGIScriptAlias / /home/siteuser/public_html/core/wsgi.py

<Directory "/home/siteuser/public_html/core">
    <Files wsgi.py>
        Require all granted
    </Files>
</Directory>
Вернуться на верх