【发布时间】:2013-08-25 03:06:12
【问题描述】:
我没有从 Two Scoops 项目 (https://github.com/twoscoops/django-twoscoops-project) 中获得回溯。
我在 Virtualbox 上运行 Ubuntu 12.04 生产服务器,并设置了 gunicorn。我正在尝试学习如何设置生产服务器,以便可以将其托管在 Digital Ocean 上。到目前为止,我已经能够通过在 /myproject/myproject/ (与我的 manage.py 相同的目录)中键入以下内容来运行 gunicorn:
gunicorn wsgi # run this in the same directory as wsgi.py
然后我输入:
curl localhost:8000
但我只回来了:
<\h1\> Whoops! <\h1>
我做了以下事情:
export DJANGO_SETTINGS_MODULE=myproject.settings.production
但我仍然得到相同的“哎呀”页面。关于如何让 Python 回溯或 Django 调试页面正常工作有什么想法吗?
【问题讨论】:
标签: django gunicorn django-1.5