Environment:
Request Method: GET
Request URL: http://127.0.0.1/
Django Version: 1.3
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'esp.datatree',
'esp.users',
'esp.membership',
'esp.miniblog',
'esp.web',
'esp.program',
'esp.program.modules',
'esp.dbmail',
'esp.cal',
'esp.lib',
'esp.setup',
'esp.qsd',
'esp.qsdmedia',
'esp.resources',
'esp.gen_media',
'esp.dblog',
'esp.membership',
'esp.queue',
'esp.survey',
'esp.accounting_core',
'esp.accounting_docs',
'esp.shortterm',
'esp.utils',
'esp.cache',
'esp.cache_loader',
'esp.tagdict',
'django_extensions',
'south',
'sslauth']
Installed Middleware:
['esp.middleware.threadlocalrequest.ThreadLocals',
'esp.middleware.FixIEMiddleware',
'esp.middleware.ESPErrorMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'esp.middleware.espauthmiddleware.ESPAuthMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.doc.XViewMiddleware',
'sslauth.middleware.SSLAuthMiddleware',
'django.middleware.gzip.GZipMiddleware',
'esp.middleware.PrettyErrorEmailMiddleware',
'esp.middleware.StripWhitespaceMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'esp.datatree.middleware.DataTreeLockMiddleware']
Template error:
In template /home/me/mysite/esp/templates/main.html, error at line 77
Caught MemcachedKeyLengthError while rendering: Key length is > 250
67 : <!-- CSS2 doesn't allow vertical alignment without a table. So, give it a table. -->
68 : <table width="600px" height="30px"><tr><td valign="middle">Welcome to ESP</td></tr></table>
69 : {% endblock %}
70 : </div>
71 :
72 : {% block navbar %}
73 : <div id="navbar">
74 : <div id="navbar_content">
75 : <span class="announcementlink_title">Relevant Links</span>
76 : {% load navbar %}
77 : {% navbar_gen request.path request.user navbar_list %}
78 : </div>
79 :
80 : <div id="navbar_content">
81 :
82 : {% load preview %}
83 : {% miniblog_for_user request.user as announcements 6 %}
84 :
85 : {% load smartypants %}
86 : {% load markdown %}
87 : {% for announce in announcements.announcementList %}
Traceback:
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/home/lakshay/mysite/esp/esp/esp/web/views/main.py" in home
81. return render_to_response('index.html', request, GetNode('Q/Web'), context)
File "/home/lakshay/mysite/esp/esp/esp/web/util/main.py" in render_to_response
123. return render_response(request, template, context, mimetype=mimetype)
File "/home/lakshay/mysite/esp/esp/esp/web/util/main.py" in render_response
67. return django.shortcuts.render_to_response(template, {}, context_instance = inst, mimetype=mimetype, )
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/shortcuts/__init__.py" in render_to_response
20. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/loader.py" in r开发者_StackOverflowender_to_string
188. return t.render(context_instance)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/base.py" in render
123. return self._render(context)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/base.py" in _render
117. return self.nodelist.render(context)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/debug.py" in render_node
73. result = node.render(context)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/loader_tags.py" in render
127. return compiled_parent._render(context)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/base.py" in _render
117. return self.nodelist.render(context)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/debug.py" in render_node
73. result = node.render(context)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/loader_tags.py" in render
127. return compiled_parent._render(context)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/base.py" in _render
117. return self.nodelist.render(context)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/debug.py" in render_node
73. result = node.render(context)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/loader_tags.py" in render
64. result = block.nodelist.render(context)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/debug.py" in render_node
73. result = node.render(context)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/loader_tags.py" in render
64. result = block.nodelist.render(context)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/template/debug.py" in render_node
73. result = node.render(context)
File "/home/lakshay/mysite/esp/esp/esp/web/util/template.py" in render
141. return self.render_given_args(args)
File "/home/lakshay/mysite/esp/esp/esp/cache/argcache.py" in __call__
641. retVal = self.get(arg_list)
File "/home/lakshay/mysite/esp/esp/esp/cache/argcache.py" in get
339. ans_dict = self.cache.get_many(keys_to_get)
File "/home/lakshay/mysite/esp/esp/esp/utils/try_multi.py" in retried_fn
16. return fn(*args, **kwargs)
File "/home/lakshay/mysite/esp/esp/esp/utils/memcached_multikey.py" in get_many
76. wrapped_ans = self._wrapped_cache.get_many(keys_dict.keys())
File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/core/cache/backends/memcached.py" in get_many
73. ret = self._cache.get_multi(new_keys)
File "/usr/local/lib/python2.6/dist-packages/python_memcached-1.40-py2.6.egg/memcache.py" in get_multi
680. server_keys, prefixed_to_orig_key = self._map_and_prefix_keys(keys, key_prefix)
File "/usr/local/lib/python2.6/dist-packages/python_memcached-1.40-py2.6.egg/memcache.py" in _map_and_prefix_keys
465. check_key(str_orig_key, key_extra_len=key_extra_len)
File "/usr/local/lib/python2.6/dist-packages/python_memcached-1.40-py2.6.egg/memcache.py" in check_key
885. % SERVER_MAX_KEY_LENGTH)
Exception Type: TemplateSyntaxError at /
Exception Value: Caught MemcachedKeyLengthError while rendering: Key length is > 250
精彩评论