我正在尝试按照通过此链接发布的教程运行与 gunicorn 和 nginx 绑定的预构建 django 项目。
如何在 Ubuntu 18.04 上使用 Postgres、Nginx 和 Gunicorn 设置 Django
项目文件夹上的 tree 命令提供此输出。
当我使用 发布项目时# python manage.py runserver,我可以查看其内容。但是当我尝试使用 unicorn 和以下命令绑定它时,它显示以下错误。
# gunicorn --bind 0.0.0.0:8000 DjangoWebsiteSample.eccomerceProject.wsgi.py
[2019-05-10 05:25:11 +0000] [1912] [INFO] Starting gunicorn 19.7.1
[2019-05-10 05:25:11 +0000] [1912] [INFO] Listening at: http://0.0.0.0:8000 (1912)
[2019-05-10 05:25:11 +0000] [1912] [INFO] Using worker: sync
[2019-05-10 05:25:11 +0000] [1916] [INFO] Booting worker with pid: 1916
[2019-05-10 05:25:11 +0000] [1916] [ERROR] Exception in worker process
Traceback (most recent …Run Code Online (Sandbox Code Playgroud)