Question:
Fix Module Not Found during deployment- Django

Problem


<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>


I tried adding it to 'installed_apps' in the settings file, etc.


Solution

I figured it out. Somehow, installing that with sudo made it work (i.e. pip uninstall reportlab, sudo pip install reportlab.)


Answered by: >Elijah Tai

Credit: >StackOverflow


Blog links:

>How to add a Parsing PHP file in order to get an array of parameters?

>How to correct WordPress site errors after upgrading to PHP 8.2?

>How does Perl match a string containing a dot in PHP?

>How to use PHP to display MySQL results in an HTML table?


Nisha Patel

Nisha Patel

Submit
0 Answers