django ModuleNotFound during deployment

brccelvz  于 2023-10-21  发布在  Go
关注(0)|答案(1)|浏览(113)
<IfDefine !IS_APPNAME_LOADED>
    Define IS_APPNAME_LOADED
    WSGIDaemonProcess elijahtai_homepage python-home=/opt/bitnami/python python-path=/opt/bitnami/projects/elijahtai_homepage
  </IfDefine>
  <VirtualHost 127.0.0.1:80 _default_:80>
    ServerAlias *
    WSGIProcessGroup elijahtai_homepage
    Alias /robots.txt /opt/bitnami/projects/elijahtai_homepage/static/robots.txt
    Alias /favicon.ico /opt/bitnami/projects/elijahtai_homepage/static/favicon.ico
    Alias /static/ /opt/bitnami/projects/elijahtai_homepage/static/
    <Directory /opt/bitnami/projects/elijahtai_homepage/static>
      Require all granted
    </Directory>
    WSGIScriptAlias / /opt/bitnami/projects/elijahtai_homepage/elijahtai_homepage/wsgi.py
    <Directory /opt/bitnami/projects/elijahtai_homepage/elijahtai_homepage>
      <Files wsgi.py>
        Require all granted
      </Files>
    </Directory>

我试着将它添加到设置文件中的“installed_apps”等。

0s0u357o

0s0u357o1#

我想通了。不知何故,安装与sudo使它工作(即pip卸载reportlab,sudo pip安装reportlab。)

相关问题