Django 部署。 Apache、wsgi、python 3.12

问题描述 投票:0回答:1

在 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>
python python-3.x django apache mod-wsgi
1个回答
0
投票

你也应该降级你的 Django,通常该包也在寻求同等的支持,

© www.soinside.com 2019 - 2024. All rights reserved.