相关疑难解决方法(0)

Gunicorn,没有名为'myproject的模块

我正在新服务器上安装以前构建的网站.我不是原来的开发者.

我过去使用了Gunicorn + nginx来保持应用程序的活着(基本上遵循本教程),但我在这里遇到问题.

source venv/bin/activate,然后./manage.py runserver 0.0.0.0:8000运作良好,一切都按预期运行.我将其关闭并运行gunicorn --bind 0.0.0.0:8000 myproject.wsgi:application,并获得以下信息:

[2016-09-13 01:11:47 +0000] [15259] [INFO] Starting gunicorn 19.6.0
[2016-09-13 01:11:47 +0000] [15259] [INFO] Listening at: http://0.0.0.0:8000 (15259)
[2016-09-13 01:11:47 +0000] [15259] [INFO] Using worker: sync
[2016-09-13 01:11:47 +0000] [15262] [INFO] Booting worker with pid: 15262
[2016-09-13 01:11:47 +0000] [15262] [ERROR] Exception in worker process
Traceback (most recent call last):
  File "/var/www/myproject/venv/lib/python3.5/site-packages/gunicorn/arbiter.py", line 557, in spawn_worker
    worker.init_process()
  File "/var/www/myproject/venv/lib/python3.5/site-packages/gunicorn/workers/base.py", line 126, in …
Run Code Online (Sandbox Code Playgroud)

python django nginx gunicorn

39
推荐指数
2
解决办法
4万
查看次数

标签 统计

django ×1

gunicorn ×1

nginx ×1

python ×1