Django Gunicorn wsgi

前端 未结 2 1677
情歌与酒
情歌与酒 2021-01-14 11:18

Hi I am trying to integrate my django 1.4.1 app with Gunicorn 0.14.6. I start gunicorn server from command line like so -

gunicorn -c /home/code/gunicorn_co         


        
2条回答
  •  孤城傲影
    2021-01-14 12:13

    Check if another package you have installed already contains a file called wsgi.py. (gevent does.) If so, likely the wrong wsgi.py file is being loaded. Try renaming your wsgi.py file to something else (e.g. app_wsgi.py) and add run your app using

    gunicorn -c /home/code/gunicorn_config.py app_wsgi
    

提交回复
热议问题