ImportError: No module named django.core.wsgi Apache + VirtualEnv + AWS + WSGI

后端 未结 10 846
予麋鹿
予麋鹿 2020-11-29 03:34

I am trying to publish my site on an Amazon\'s EC2 Instance, and I keep getting a 500 error. I really dunno why.

//Log Files

    [Sun Feb 17 23:12:48         


        
10条回答
  •  無奈伤痛
    2020-11-29 04:02

    You've configured everything very well my friend, just need to give the apache user permission to access both project and virtualenv dirs.

    Example:

    sudo chown -R www-data:www-data /home/ubuntu/projects
    sudo chown -R www-data:www-data /home/ubuntu/virtualenv
    

    This solved my problem with ImportError: No module named django.core.wsgi (virtualenvs folders) and ImportError: No module named .settings (projects folders)

提交回复
热议问题