在 python 3.8 上一切正常,但我需要将 python 更新到版本 3.12。 libapache2-mod-wsgi-py3 显然不支持版本 3.12。启动服务器后,出现错误 module django not found。我该怎么办?)
<VirtualHost *:443>
DocumentRoot /.../back/...
<Directory /.../back/.../.../...>
<Files wsgi.py>
Order deny,allow
Require all granted
</Files>
</Directory>
<Directory /.../back/...>
Require all granted
</Directory>
WSGIDaemonProcess ... lang='en_US.UTF-8' locale='en_US.UTF-8' python-path=/.../back/... python-home=/.../back/venv
WSGIProcessGroup ...
WSGIScriptAlias / /.../back/.../.../wsgi.py
WSGIPassAuthorization On
ServerName ...
ServerAlias ...
ErrorLog /.../back/logs/back-error.log
CustomLog /.../back/logs/back-access.log combined
SSLEngine on
SSLCertificateFile "..."
SSLCertificateKeyFile "..."
SSLCertificateChainFile "..."
</VirtualHost>
你也应该降级你的 Django,通常该包也在寻求同等的支持,