Traceback most recent call last File usr local lib python2 site-packag

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/django/core/handlers/base.py", line 113, in get_response
return callback(request, **param_dict)
File "/usr/local/lib/python2.5/site-packages/django/views/defaults.py", line 79, in page_not_found
return http.HttpResponseNotFound(t.render(RequestContext(request, {'request_path': request.path})))
File "/usr/local/lib/python2.5/site-packages/django/template/__init__.py", line 176, in render
return self.nodelist.render(context)
File "/usr/local/lib/python2.5/site-packages/django/template/__init__.py", line 751, in render
bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.5/site-packages/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/usr/local/lib/python2.5/site-packages/django/template/loader_tags.py", line 97, in render
return compiled_parent.render(context)
File "/usr/local/lib/python2.5/site-packages/django/template/__init__.py", line 176, in render
return self.nodelist.render(context)
File "/usr/local/lib/python2.5/site-packages/django/template/__init__.py", line 751, in render
bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.5/site-packages/django/template/debug.py", line 81, in render_node
raise wrapped
TemplateSyntaxError: Caught an exception while rendering: 'site_messages'
Original Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/usr/local/lib/python2.5/site-packages/django/template/__init__.py", line 898, in render
dict = func(*args)
File "/home/pythy/www/site1/webapp/byteflow/apps/lib/templatetags/messages.py", line 9, in site_messages
'errors': context['request'].session['site_messages']['errors'],
File "/usr/local/lib/python2.5/site-packages/django/contrib/sessions/backends/base.py", line 46, in __getitem__
return self._session[key]
KeyError: 'site_messages'
<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{},
META:{'DOCUMENT_ROOT': '/home/pythy/www/site1/public_html',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': 'text/html, image/jpeg, image/png, text/*, image/*, */*',
'HTTP_ACCEPT_CHARSET': 'utf-8, utf-8;q=0.5, *;q=0.5',
'HTTP_ACCEPT_ENCODING': 'x-gzip, x-deflate, gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'ru, en',
'HTTP_CONNECTION': 'close',
'HTTP_HOST': 'www.pyobject.ru',
'HTTP_USER_AGENT': 'Akregator/1.2.9; librss/remnants',
'HTTP_X_FORWARDED_FOR': '193.178.146.65',
'HTTP_X_REAL_IP': '193.178.146.65',
'PATH': '/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin',
'PATH_INFO': u'/atomic/blog/posts',
'PATH_TRANSLATED': 'redirect:/webapp/atomic/blog/posts/blog/posts',
# -----------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^
'QUERY_STRING': '',
'REDIRECT_PROXY_ADDR': '127.0.0.1',
'REDIRECT_STATUS': '200',
'REDIRECT_URL': '/atomic/blog/posts',
'REMOTE_ADDR': '193.178.146.65',
'REMOTE_PORT': '51915',
'REQUEST_METHOD': 'GET',
'REQUEST_URI': '/atomic/blog/posts',
'SCRIPT_FILENAME': '/home/pythy/www/site1/webapp/webapp.wsgi',
'SCRIPT_NAME': u'',
'SERVER_ADDR': '127.0.0.1',
'SERVER_NAME': 'pyobject.ru',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SIGNATURE': '<address>Apache/2.2.8 (FreeBSD) Server at pyobject.ru Port 80</address>\n',
'SERVER_SOFTWARE': 'Apache/2.2.8 (FreeBSD)',
'mod_wsgi.application_group': 'pyobject.ru|/webapp',
'mod_wsgi.callable_object': 'application',
'mod_wsgi.listener_host': '127.0.0.1',
'mod_wsgi.listener_port': '81',
'mod_wsgi.process_group': 'pyobject.ru',
'mod_wsgi.reload_mechanism': '1',
'mod_wsgi.script_reloading': '1',
'wsgi.errors': <mod_wsgi.Log object at 0x2957bea8>,
'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x2959b9b0>,
'wsgi.input': <mod_wsgi.Input object at 0x2959fe08>,
'wsgi.multiprocess': True,
'wsgi.multithread': True,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>