小编ans*_*man的帖子

如何运行与gunicorn绑定的django应用程序?

我正在尝试按照通过此链接发布的教程运行与 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)

django postgresql nginx gunicorn

1
推荐指数
1
解决办法
1599
查看次数

标签 统计

django ×1

gunicorn ×1

nginx ×1

postgresql ×1