【发布时间】:2012-09-04 08:53:28
【问题描述】:
我正在运行一个 Django 1.3 实例,它带有一个用于缓存层的 memcached 后端,最近我一直在尝试为应用程序调试数据库的一部分,但是每当我将 memcached 服务器脱机时,我都会得到以下信息错误:
AttributeError at /joinerysoft/contacts/ajax/all/None/None/
'NoneType' object has no attribute 'sendall'
Request Method: GET
Request URL: http://joinerysoft-directory.co.uk/joinerysoft/contacts/ajax/all/None/None/
Django Version: 1.3.1
Exception Type: AttributeError
Exception Value: 'NoneType' object has no attribute 'sendall'
Exception Location: /usr/lib/python2.7/dist-packages/memcache.py in send_cmd, line 1112
Python Executable: /usr/bin/python
Python Version: 2.7.3
我认为 memcached + django 的吸引人之处在于,如果 memcache 消失,您的网站在返回之前仍然可以运行(尽管已经瘫痪)。我确实使用 Django 的内置缓存。
【问题讨论】:
标签: django