V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
HerrDu
V2EX  ›  Python

在我部署 misago 的时候,出现了下面的问题。请问是哪里出现了问题?

  •  
  •   HerrDu ·
    herrdu · 2015-06-09 18:46:48 +08:00 · 2523 次点击
    这是一个创建于 3244 天前的主题,其中的信息可能已经有所发展或是发生改变。
    1.直接使用python manage.py runserver 运行,是可以登录的
    2.但是使用uwsgi和 nginx部署的时候,就出现了下面的我问题。
    请问,是uwsgi.ini 或 nginx.conf 的配置问题,还是 django python 版本问题,或者是其他我没有注意到的问题?

    AttributeError at /
    'MisagoACLDebugPanel' object has no attribute 'context'
    Request Method: GET
    Request URL: http://127.0.0.1/
    Django Version: 1.6.4
    Exception Type: AttributeError
    Exception Value:
    'MisagoACLDebugPanel' object has no attribute 'context'
    Exception Location: ./misago/acl/panels.py in content, line 25
    Python Executable: /usr/local/bin/uwsgi
    Python Version: 2.7.6
    Python Path:
    ['.',
    '',
    '/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg',
    '/Library/Python/2.7/site-packages/setuptools-8.0.2-py2.7.egg',
    '/usr/lib/python27.zip',
    '/usr/lib/python2.7',
    '/usr/lib/python2.7/plat-darwin',
    '/usr/lib/python2.7/plat-mac',
    '/usr/lib/python2.7/plat-mac/lib-scriptpackages',
    '/usr/Extras/lib/python',
    '/usr/lib/python2.7/lib-tk',
    '/usr/lib/python2.7/lib-old',
    '/usr/lib/python2.7/lib-dynload',
    '/Library/Python/2.7/site-packages',
    'Users/herrdu/sites/xiabanzhihou/Misago/']
    Server time: Ф≤÷Ф°÷Д╨▄, 9 Е┘╜Ф°┬ 2015 10:43:41 +0000
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2868 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:34 · PVG 17:34 · LAX 02:34 · JFK 05:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.