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

后端 未结 10 865
予麋鹿
予麋鹿 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 03:59

    I am using Centos and the nginx and gunicorn for my project... I had this problem... wsgi file is not reachable maybe it's bcz of the your current directory I changed my current directory and It worked... my project name is coda so I typed

    cd coda
    

    and then

    gunicorn --bind  0.0.0.0:8001 coda.wsgi
    

提交回复
热议问题