Почините сайт, а то невозможно на нём находится будучи авторизованым. На всех страницах (кроме разве, что страницы добавления комментария) выдаёт после авторизации ошибку:
DoesNotExist at /
ReadTracking matching query does not exist.
Request Method: GET
Request URL: http://pydev.ru/
Exception Type: DoesNotExist
Exception Value:
ReadTracking matching query does not exist.
Exception Location: /srv/data/web/web/pydev/.env/src/django/django/db/models/query.py in get, line 305
Python Executable: /usr/bin/python
Python Version: 2.5.2
Python Path: ['/web/pydev', '/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg', '/usr/lib/python2.5/site-packages/virtualenv-1.3.3-py2.5.egg', '/usr/lib/python2.5/site-packages/staticgenerator-1.3.4-py2.5.egg', '/usr/lib/python2.5/site-packages/Spawning-0.8.10-py2.5.egg', '/usr/lib/python2.5/site-packages/PasteDeploy-1.3.3-py2.5.egg', '/usr/lib/python2.5/site-packages/simplejson-2.0.9-py2.5.egg', '/usr/lib/python2.5/site-packages/eventlet-0.8.12-py2.5.egg', '/usr/lib/python2.5/site-packages/TracAccountManager-0.2.1dev-py2.5.egg', '/usr/lib/python2.5/site-packages/IniAdmin-0.2-py2.5.egg', '/usr/lib/python2.5/site-packages/TracMercurial-0.11.0.7-py2.5.egg', '/usr/lib/python2.5/site-packages/Genshi-0.5.1-py2.5-linux-i686.egg', '/usr/lib/python2.5/site-packages/recaptcha_client-1.0.4-py2.5.egg', '/usr/lib/python2.5/site-packages/TracRecaptchaRegister-0.2.1.2-py2.5.egg', '/usr/lib/python2.5/site-packages/South-0.6.1-py2.5.egg', '/usr/lib/python2.5/site-packages/pip-0.5.1-py2.5.egg', '/usr/src/superfcgi', '/usr/lib/python2.5/site-packages/flup-1.0.3.dev_20091021-py2.5.egg', '/usr/lib/python2.5/site-packages/django_debug_toolbar-0.8.0-py2.5.egg', '/web/pydev/.env/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg', '/web/pydev/.env/lib/python2.5/site-packages/pip-0.4-py2.5.egg', '/srv/data/web/web/pydev/.env/src/django-common', '/srv/data/web/web/pydev/.env/src/phpserialize', '/srv/data/web/web/pydev/.env/src/supercaptcha', '/srv/data/web/web/pydev/.env/src/django', '/srv/data/web/web/pydev/.env/src/django-account', '/srv/data/web/web/pydev/.env/src/linkexchange', '/srv/data/web/web/pydev/.env/src/south', '/srv/data/web/web/pydev/.env/src/pybb', '/srv/data/web/web/pydev/.env/src/pybb-templates-fluxbb', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/PIL', '/var/lib/python-support/python2.5', '/web/pydev/.env/lib/python2.5/site-packages']
Server time: Thu, 4 Feb 2010 00:03:46 +0300
Traceback Switch to copy-and-paste view
* /srv/data/web/web/pydev/.env/src/django/django/core/handlers/base.py in get_response
85. # Apply view middleware
86. for middleware_method in self._view_middleware:
87. response = middleware_method(request, callback, callback_args, callback_kwargs)
88. if response:
89. return response
90.
91. try:
92. response = callback(request, *callback_args, **callback_kwargs) ...
93. except Exception, e:
94. # If the view raised an exception, run it through exception
95. # middleware, and if the exception middleware returns a
96. # response, use that. Otherwise, reraise the exception.
97. for middleware_method in self._exception_middleware:
98. response = middleware_method(request, e)
▶ Local vars
Variable Value
callback
<function wrapper at 0x8c50d84>
callback_args
()
callback_kwargs
{}
e
DoesNotExist('ReadTracking matching query does not exist.',)
exc_info
(<class 'pybb.models.DoesNotExist'>, DoesNotExist('ReadTracking matching query does not exist.',), <traceback object at 0x8f2f5cc>)
exceptions
<module 'django.core.exceptions' from '/srv/data/web/web/pydev/.env/src/django/django/core/exceptions.pyc'>
middleware_method
<bound method XViewMiddleware.process_view of <django.middleware.doc.XViewMiddleware object at 0x86f21cc>>
receivers
[(<function _rollback_on_exception at 0x875cb8c>, None)]
request
<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
resolver
<RegexURLResolver urls (None:None) ^/>
response
None
self
<django.core.handlers.wsgi.WSGIHandler object at 0x84042cc>
settings
<django.conf.LazySettings object at 0x85877ac>
urlconf
'urls'
urlresolvers
<module 'django.core.urlresolvers' from '/srv/data/web/web/pydev/.env/src/django/django/core/urlresolvers.pyc'>
* /srv/data/web/web/pydev/.env/src/pybb/pybb/shortcuts.py in wrapper
28. def decorator(func):
29. def wrapper(request, *args, **kwargs):
30. output = func(request, *args, **kwargs)
31. if not isinstance(output, dict):
32. return output
33. else:
34. ctx = RequestContext(request)
35. return render_to_response(template, output, context_instance=ctx) ...
36. return wrapper
37. return decorator
38.
39.
40. def ajax(func):
41. """
▶ Local vars
Variable Value
args
()
ctx
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
func
<function index_ctx at 0x8c5033c>
kwargs
{}
output
{'cats': [{'cat': <Category: Python life>, 'forums': [<Forum: Тусовка>, <Forum: Работа>]}, {'cat': <Category: Python>, 'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>]}, {'cat': <Category: Веб программирование>, 'forums': [<Forum: Веб-программирование>, <Forum: Django>]}, {'cat': <Category: Python misc>, 'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>]}, {'cat': <Category: Другое>, 'forums': [<Forum: Офтопик>, <Forum: Работа сайта>]}]}
request
<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
template
'pybb/index.html'
* /srv/data/web/web/pydev/.env/src/django/django/shortcuts/__init__.py in render_to_response
13.
14. def render_to_response(*args, **kwargs):
15. """
16. Returns a HttpResponse whose content is filled with the result of calling
17. django.template.loader.render_to_string() with the passed arguments.
18. """
19. httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None)}
20. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs) ...
21.
22. def redirect(to, *args, **kwargs):
23. """
24. Returns an HttpResponseRedirect to the apropriate URL for the arguments
25. passed.
26.
▶ Local vars
Variable Value
args
('pybb/index.html', {'cats': [{'cat': <Category: Python life>, 'forums': [<Forum: Тусовка>, <Forum: Работа>]}, {'cat': <Category: Python>, 'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>]}, {'cat': <Category: Веб программирование>, 'forums': [<Forum: Веб-программирование>, <Forum: Django>]}, {'cat': <Category: Python misc>, 'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>]}, {'cat': <Category: Другое>, 'forums': [<Forum: Офтопик>, <Forum: Работа сайта>]}]})
httpresponse_kwargs
{'mimetype': None}
kwargs
{'context_instance': [{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]}
* /srv/data/web/web/pydev/.env/src/django/django/template/loader.py in render_to_string
101. t = select_template(template_name)
102. else:
103. t = get_template(template_name)
104. if context_instance:
105. context_instance.update(dictionary)
106. else:
107. context_instance = Context(dictionary)
108. return t.render(context_instance) ...
109.
110. def select_template(template_name_list):
111. "Given a list of template names, returns the first that can be loaded."
112. for template_name in template_name_list:
113. try:
114. return get_template(template_name)
▶ Local vars
Variable Value
context_instance
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
dictionary
{'cats': [{'cat': <Category: Python life>, 'forums': [<Forum: Тусовка>, <Forum: Работа>]}, {'cat': <Category: Python>, 'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>]}, {'cat': <Category: Веб программирование>, 'forums': [<Forum: Веб-программирование>, <Forum: Django>]}, {'cat': <Category: Python misc>, 'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>]}, {'cat': <Category: Другое>, 'forums': [<Forum: Офтопик>, <Forum: Работа сайта>]}]}
t
<django.template.Template object at 0x8f550ac>
template_name
'pybb/index.html'
* /srv/data/web/web/pydev/.env/src/django/django/template/__init__.py in render
171. def __iter__(self):
172. for node in self.nodelist:
173. for subnode in node:
174. yield subnode
175.
176. def render(self, context):
177. "Display stage -- can be called many times"
178. return self.nodelist.render(context) ...
179.
180. def compile_string(template_string, origin):
181. "Compiles template_string into NodeList ready for rendering"
182. if settings.TEMPLATE_DEBUG:
183. from debug import DebugLexer, DebugParser
184. lexer_class, parser_class = DebugLexer, DebugParser
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
self
<django.template.Template object at 0x8f550ac>
* /srv/data/web/web/pydev/.env/src/django/django/template/__init__.py in render
772. # extend_nodelist().
773. contains_nontext = False
774.
775. def render(self, context):
776. bits = []
777. for node in self:
778. if isinstance(node, Node):
779. bits.append(self.render_node(node, context)) ...
780. else:
781. bits.append(node)
782. return mark_safe(''.join([force_unicode(b) for b in bits]))
783.
784. def get_nodes_by_type(self, nodetype):
785. "Return a list of all nodes of the given type"
▶ Local vars
Variable Value
bits
[]
context
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
node
<ExtendsNode: extends "pybb/base.html">
self
[<ExtendsNode: extends "pybb/base.html">]
* /srv/data/web/web/pydev/.env/src/django/django/template/__init__.py in render_node
785. "Return a list of all nodes of the given type"
786. nodes = []
787. for node in self:
788. nodes.extend(node.get_nodes_by_type(nodetype))
789. return nodes
790.
791. def render_node(self, node, context):
792. return node.render(context) ...
793.
794. class TextNode(Node):
795. def __init__(self, s):
796. self.s = s
797.
798. def __repr__(self):
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
node
<ExtendsNode: extends "pybb/base.html">
self
[<ExtendsNode: extends "pybb/base.html">]
* /srv/data/web/web/pydev/.env/src/django/django/template/loader_tags.py in render
90. # the first non-text node you can stop looking.
91. break
92. else:
93. # Keep any existing parents and add a new one. Used by BlockNode.
94. parent_block.parent = block_node.parent
95. parent_block.add_parent(parent_block.nodelist)
96. parent_block.nodelist = block_node.nodelist
97. return compiled_parent.render(context) ...
98.
99. class ConstantIncludeNode(Node):
100. def __init__(self, template_path):
101. try:
102. t = get_template(template_path)
103. self.template = t
▶ Local vars
Variable Value
block_node
<Block Node: content_bottom. Contents: [<Text Node: ' '>, <django.templatetags.pybb_tags.PybbLoadStats object at 0x8f36f4c>, <Text Node: ' <div id="brd-stats" clas'>, <Variable Node: stats.user_count|intcomma>, <Text Node: '</strong></span></li> '>, <If node>, <Text Node: '</li> <li cl'>, <Variable Node: stats.topic_count|intcomma>, <Text Node: '</strong></span></li> '>, <Variable Node: stats.post_count|intcomma>, <Text Node: '</strong></span></li> </'>, <django.template.defaulttags.CommentNode object at 0x8f1f3ac>, <Text Node: ' '>]>
compiled_parent
<django.template.Template object at 0x8e308ec>
context
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
n
<Block Node: content_bottom. Contents: [<Text Node: ' '>, <django.templatetags.pybb_tags.PybbLoadStats object at 0x8f36f4c>, <Text Node: ' <div id="brd-stats" clas'>, <Variable Node: stats.user_count|intcomma>, <Text Node: '</strong></span></li> '>, <If node>, <Text Node: '</li> <li cl'>, <Variable Node: stats.topic_count|intcomma>, <Text Node: '</strong></span></li> '>, <Variable Node: stats.post_count|intcomma>, <Text Node: '</strong></span></li> </'>, <django.template.defaulttags.CommentNode object at 0x8f1f3ac>, <Text Node: ' '>]>
parent_block
<Block Node: content_bottom. Contents: [<Text Node: ' '>, <django.templatetags.pybb_tags.PybbLoadStats object at 0x8f36f4c>, <Text Node: ' <div id="brd-stats" clas'>, <Variable Node: stats.user_count|intcomma>, <Text Node: '</strong></span></li> '>, <If node>, <Text Node: '</li> <li cl'>, <Variable Node: stats.topic_count|intcomma>, <Text Node: '</strong></span></li> '>, <Variable Node: stats.post_count|intcomma>, <Text Node: '</strong></span></li> </'>, <django.template.defaulttags.CommentNode object at 0x8f1f3ac>, <Text Node: ' '>]>
parent_blocks
{u'brd_class': <Block Node: brd_class. Contents: [<Text Node: 'basic-page'>]>, u'brd_id': <Block Node: brd_id. Contents: [<Text Node: 'brd-index'>]>, u'content': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>, u'content_bottom': <Block Node: content_bottom. Contents: [<Text Node: ' '>, <django.templatetags.pybb_tags.PybbLoadStats object at 0x8f36f4c>, <Text Node: ' <div id="brd-stats" clas'>, <Variable Node: stats.user_count|intcomma>, <Text Node: '</strong></span></li> '>, <If node>, <Text Node: '</li> <li cl'>, <Variable Node: stats.topic_count|intcomma>, <Text Node: '</strong></span></li> '>, <Variable Node: stats.post_count|intcomma>, <Text Node: '</strong></span></li> </'>, <django.template.defaulttags.CommentNode object at 0x8f1f3ac>, <Text Node: ' '>]>, u'crumbs_bottom': <Block Node: crumbs_bottom. Contents: []>, u'crumbs_top': <Block Node: crumbs_top. Contents: []>, u'extra_meta': <Block Node: extra_meta. Contents: []>, u'head_extra': <Block Node: head_extra. Contents: []>, u'title': <Block Node: title. Contents: [<Variable Node: PYBB_HEADER>, <Text Node: ': '>, <Variable Node: PYBB_TAGLINE>]>}
self
<ExtendsNode: extends "pybb/base.html">
* /srv/data/web/web/pydev/.env/src/django/django/template/__init__.py in render
171. def __iter__(self):
172. for node in self.nodelist:
173. for subnode in node:
174. yield subnode
175.
176. def render(self, context):
177. "Display stage -- can be called many times"
178. return self.nodelist.render(context) ...
179.
180. def compile_string(template_string, origin):
181. "Compiles template_string into NodeList ready for rendering"
182. if settings.TEMPLATE_DEBUG:
183. from debug import DebugLexer, DebugParser
184. lexer_class, parser_class = DebugLexer, DebugParser
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
self
<django.template.Template object at 0x8e308ec>
* /srv/data/web/web/pydev/.env/src/django/django/template/__init__.py in render
772. # extend_nodelist().
773. contains_nontext = False
774.
775. def render(self, context):
776. bits = []
777. for node in self:
778. if isinstance(node, Node):
779. bits.append(self.render_node(node, context)) ...
780. else:
781. bits.append(node)
782. return mark_safe(''.join([force_unicode(b) for b in bits]))
783.
784. def get_nodes_by_type(self, nodetype):
785. "Return a list of all nodes of the given type"
▶ Local vars
Variable Value
bits
['', u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">\n<head>\n <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n <meta name="description" content="', u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', u'" />\n <title>', u'PyDev: \u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', u'</title>\n <link rel="alternate" type="application/atom+xml" href="', '/feeds/posts/', u'" title="', u'Latest posts on forum', u'" />\n <link rel="alternate" type="application/atom+xml" href="', '/feeds/topics/', u'" title="', u'Latest topics on forum', u'" />\n <link rel="top" href="', '/', u'" title="Forum index" />\n <!--<link rel="search" href="" title="Search" />-->\n <link rel="author" href="', '/users/', u'" title="User list" />\n <link rel="stylesheet" type="text/css" media="screen" href="', u'/static/pybb_templates_fluxbb/', u'style/Oxygen/Oxygen.css" />\n <link rel="stylesheet" type="text/css" media="screen" href="', u'/static/pybb_templates_fluxbb/', u'style/Oxygen/Oxygen_cs.css" />\n <!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="', u'/static/pybb_templates_fluxbb/', u'style/Oxygen/Oxygen_ie6.css" /><![endif]-->\n <!--[if IE 7]><link rel="stylesheet" type="text/css" href="', u'/static/pybb_templates_fluxbb/', u'style/Oxygen/Oxygen_ie7.css" /><![endif]-->\n\n ', '', u'\n\n <!-- PYBB STATIC FILES -->\n <script type="text/javascript" src="', u'/static/pybb/', u'js/jquery.js"></script>\n <!-- Highlightjs goodies -->\n <script type="text/javascript" src="', u'/static/pybb/', u'js/highlight.js"></script>\n <script type="text/javascript">\n hljs.initHighlightingOnLoad();\n </script>\n <link type="text/css" rel="stylesheet" href="', u'/static/pybb/', u'css/hljs_styles/idea.css" />\n\n ', '', u'\n ', '', u'\n\n</head>\n<body>\n<div id="brd-wrap" class="brd">\n<div id="', u'brd-index', u'" class="brd-page ', u'basic-page', u'">\n\n<div id="brd-head" class="gen-content">\n\t<p id="brd-access"><a href="#brd-main">Skip to forum content</a></p>\n\n <p id="brd-title"><a href="', '/', u'">', u'PyDev', u'</a></p>\n <p id="brd-desc">', u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', u'</p>\n</div>\n\n<div id="brd-navlinks" class="gen-content">\n\t<ul>\n <li id="navindex"><a href="', '/', u'"><span>Index</span></a></li>\n <li><a href="', '/users/', u'"><span>', u'Users', u'</span></a></li>\n <!--<li><a href="#" onclick="$(\'.search_box\').toggle(); return false;">', u'Search', u'</a></li>-->\n ', u'\n <li><a href="/profile/edit/"><span>My profile</span></a></li>\n \n <li><a href="/account/logout/"><span>Log out</span></a></li>\n <!--<li>Logged in as <a href="/users/Cykooz/">Cykooz</a></li>-->\n ', u'\n\t</ul>\n\t\n</div>\n\n<div id="brd-visit" class="gen-content">\n <p id="welcome">\n ', u'\n <span>Logged in as <strong>Cykooz</strong>.</span>\n <span>Last visit 2010-02-04 00:03:46</span></p>\n ', u'\n </p>\n</div>\n\n\n\n<div class="hr"><hr /></div>\n\n', '', u'\n\n<div id="brd-main" class="main-wrapper">\n ']
context
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
node
<Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>
self
[<django.template.defaulttags.LoadNode object at 0x8e68f4c>, <Text Node: '<!DOCTYPE html PUBLIC "-/'>, <Variable Node: PYBB_TAGLINE>, <Text Node: '" /> <title>'>, <Block Node: title. Contents: [<Variable Node: PYBB_HEADER>, <Text Node: ': '>, <Variable Node: PYBB_TAGLINE>]>, <Text Node: '</title> <link rel="a'>, <django.template.defaulttags.URLNode object at 0x8e4fb8c>, <Text Node: '" title="'>, <django.templatetags.i18n.TranslateNode object at 0x8f871ac>, <Text Node: '" /> <link rel="alter'>, <django.template.defaulttags.URLNode object at 0x8e4fdec>, <Text Node: '" title="'>, <django.templatetags.i18n.TranslateNode object at 0x8f87cac>, <Text Node: '" /> <link rel="top" '>, <django.template.defaulttags.URLNode object at 0x8e4ff0c>, <Text Node: '" title="Forum index" /> '>, <django.template.defaulttags.URLNode object at 0x8e4fccc>, <Text Node: '" title="User list" /> '>, <Variable Node: PYBB_SKIN_MEDIA_URL>, <Text Node: 'style/Oxygen/Oxygen.css" '>, <Variable Node: PYBB_SKIN_MEDIA_URL>, <Text Node: 'style/Oxygen/Oxygen_cs.cs'>, <Variable Node: PYBB_SKIN_MEDIA_URL>, <Text Node: 'style/Oxygen/Oxygen_ie6.c'>, <Variable Node: PYBB_SKIN_MEDIA_URL>, <Text Node: 'style/Oxygen/Oxygen_ie7.c'>, <django.template.defaulttags.CommentNode object at 0x8f876ac>, <Text Node: ' <!-- PYBB STATIC FI'>, <Variable Node: PYBB_MEDIA_URL>, <Text Node: 'js/jquery.js"></script> '>, <Variable Node: PYBB_MEDIA_URL>, <Text Node: 'js/highlight.js"></script'>, <Variable Node: PYBB_MEDIA_URL>, <Text Node: 'css/hljs_styles/idea.css"'>, <Block Node: extra_meta. Contents: []>, <Text Node: ' '>, <Block Node: head_extra. Contents: []>, <Text Node: ' </head> <body> <div id='>, <Block Node: brd_id. Contents: [<Text Node: 'brd-index'>]>, <Text Node: '" class="brd-page '>, <Block Node: brd_class. Contents: [<Text Node: 'basic-page'>]>, <Text Node: '"> <div id="brd-head" cl'>, <django.template.defaulttags.URLNode object at 0x8d2e0cc>, <Text Node: '">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</a></p> <p id="brd-d'>, <Variable Node: PYBB_TAGLINE>, <Text Node: '</p> </div> <div id="brd'>, <django.template.defaulttags.URLNode object at 0x8ee258c>, <Text Node: '"><span>Index</span></a><'>, <django.template.defaulttags.URLNode object at 0x8ee25cc>, <Text Node: '"><span>'>, <django.templatetags.i18n.TranslateNode object at 0x8e5f84c>, <Text Node: '</span></a></li> '>, <django.templatetags.i18n.TranslateNode object at 0x8e5f9cc>, <Text Node: '</a></li>--> '>, <If node>, <Text Node: ' </ul> </div> <div id'>, <If node>, <Text Node: ' </p> </div> <div '>, <Block Node: crumbs_top. Contents: []>, <Text Node: ' <div id="brd-main" clas'>, <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: crumbs_bottom. Contents: []>, <Text Node: ' '>, <Block Node: content_bottom. Contents: [<Text Node: ' '>, <django.templatetags.pybb_tags.PybbLoadStats object at 0x8f36f4c>, <Text Node: ' <div id="brd-stats" clas'>, <Variable Node: stats.user_count|intcomma>, <Text Node: '</strong></span></li> '>, <If node>, <Text Node: '</li> <li cl'>, <Variable Node: stats.topic_count|intcomma>, <Text Node: '</strong></span></li> '>, <Variable Node: stats.post_count|intcomma>, <Text Node: '</strong></span></li> </'>, <django.template.defaulttags.CommentNode object at 0x8f1f3ac>, <Text Node: ' '>]>, <Text Node: ' <div class="hr"><hr /><'>]
* /srv/data/web/web/pydev/.env/src/django/django/template/__init__.py in render_node
785. "Return a list of all nodes of the given type"
786. nodes = []
787. for node in self:
788. nodes.extend(node.get_nodes_by_type(nodetype))
789. return nodes
790.
791. def render_node(self, node, context):
792. return node.render(context) ...
793.
794. class TextNode(Node):
795. def __init__(self, s):
796. self.s = s
797.
798. def __repr__(self):
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
node
<Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>
self
[<django.template.defaulttags.LoadNode object at 0x8e68f4c>, <Text Node: '<!DOCTYPE html PUBLIC "-/'>, <Variable Node: PYBB_TAGLINE>, <Text Node: '" /> <title>'>, <Block Node: title. Contents: [<Variable Node: PYBB_HEADER>, <Text Node: ': '>, <Variable Node: PYBB_TAGLINE>]>, <Text Node: '</title> <link rel="a'>, <django.template.defaulttags.URLNode object at 0x8e4fb8c>, <Text Node: '" title="'>, <django.templatetags.i18n.TranslateNode object at 0x8f871ac>, <Text Node: '" /> <link rel="alter'>, <django.template.defaulttags.URLNode object at 0x8e4fdec>, <Text Node: '" title="'>, <django.templatetags.i18n.TranslateNode object at 0x8f87cac>, <Text Node: '" /> <link rel="top" '>, <django.template.defaulttags.URLNode object at 0x8e4ff0c>, <Text Node: '" title="Forum index" /> '>, <django.template.defaulttags.URLNode object at 0x8e4fccc>, <Text Node: '" title="User list" /> '>, <Variable Node: PYBB_SKIN_MEDIA_URL>, <Text Node: 'style/Oxygen/Oxygen.css" '>, <Variable Node: PYBB_SKIN_MEDIA_URL>, <Text Node: 'style/Oxygen/Oxygen_cs.cs'>, <Variable Node: PYBB_SKIN_MEDIA_URL>, <Text Node: 'style/Oxygen/Oxygen_ie6.c'>, <Variable Node: PYBB_SKIN_MEDIA_URL>, <Text Node: 'style/Oxygen/Oxygen_ie7.c'>, <django.template.defaulttags.CommentNode object at 0x8f876ac>, <Text Node: ' <!-- PYBB STATIC FI'>, <Variable Node: PYBB_MEDIA_URL>, <Text Node: 'js/jquery.js"></script> '>, <Variable Node: PYBB_MEDIA_URL>, <Text Node: 'js/highlight.js"></script'>, <Variable Node: PYBB_MEDIA_URL>, <Text Node: 'css/hljs_styles/idea.css"'>, <Block Node: extra_meta. Contents: []>, <Text Node: ' '>, <Block Node: head_extra. Contents: []>, <Text Node: ' </head> <body> <div id='>, <Block Node: brd_id. Contents: [<Text Node: 'brd-index'>]>, <Text Node: '" class="brd-page '>, <Block Node: brd_class. Contents: [<Text Node: 'basic-page'>]>, <Text Node: '"> <div id="brd-head" cl'>, <django.template.defaulttags.URLNode object at 0x8d2e0cc>, <Text Node: '">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</a></p> <p id="brd-d'>, <Variable Node: PYBB_TAGLINE>, <Text Node: '</p> </div> <div id="brd'>, <django.template.defaulttags.URLNode object at 0x8ee258c>, <Text Node: '"><span>Index</span></a><'>, <django.template.defaulttags.URLNode object at 0x8ee25cc>, <Text Node: '"><span>'>, <django.templatetags.i18n.TranslateNode object at 0x8e5f84c>, <Text Node: '</span></a></li> '>, <django.templatetags.i18n.TranslateNode object at 0x8e5f9cc>, <Text Node: '</a></li>--> '>, <If node>, <Text Node: ' </ul> </div> <div id'>, <If node>, <Text Node: ' </p> </div> <div '>, <Block Node: crumbs_top. Contents: []>, <Text Node: ' <div id="brd-main" clas'>, <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: crumbs_bottom. Contents: []>, <Text Node: ' '>, <Block Node: content_bottom. Contents: [<Text Node: ' '>, <django.templatetags.pybb_tags.PybbLoadStats object at 0x8f36f4c>, <Text Node: ' <div id="brd-stats" clas'>, <Variable Node: stats.user_count|intcomma>, <Text Node: '</strong></span></li> '>, <If node>, <Text Node: '</li> <li cl'>, <Variable Node: stats.topic_count|intcomma>, <Text Node: '</strong></span></li> '>, <Variable Node: stats.post_count|intcomma>, <Text Node: '</strong></span></li> </'>, <django.template.defaulttags.CommentNode object at 0x8f1f3ac>, <Text Node: ' '>]>, <Text Node: ' <div class="hr"><hr /><'>]
* /srv/data/web/web/pydev/.env/src/django/django/template/loader_tags.py in render
17. return "<Block Node: %s. Contents: %r>" % (self.name, self.nodelist)
18.
19. def render(self, context):
20. context.push()
21. # Save context in case of block.super().
22. self.context = context
23. context['block'] = self
24. result = self.nodelist.render(context) ...
25. context.pop()
26. return result
27.
28. def super(self):
29. if self.parent:
30. return mark_safe(self.parent.render(self.context))
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
self
<Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>
* /srv/data/web/web/pydev/.env/src/django/django/template/__init__.py in render
772. # extend_nodelist().
773. contains_nontext = False
774.
775. def render(self, context):
776. bits = []
777. for node in self:
778. if isinstance(node, Node):
779. bits.append(self.render_node(node, context)) ...
780. else:
781. bits.append(node)
782. return mark_safe(''.join([force_unicode(b) for b in bits]))
783.
784. def get_nodes_by_type(self, nodetype):
785. "Return a list of all nodes of the given type"
▶ Local vars
Variable Value
bits
[u'\n\n<div class="main-head">\n <h1 class="hn"><span>', u'PyDev', u'</span></h1>\n</div>\n\n']
context
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
node
<For Node: for item in cats, tail_len: 8>
self
[<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]
* /srv/data/web/web/pydev/.env/src/django/django/template/__init__.py in render_node
785. "Return a list of all nodes of the given type"
786. nodes = []
787. for node in self:
788. nodes.extend(node.get_nodes_by_type(nodetype))
789. return nodes
790.
791. def render_node(self, node, context):
792. return node.render(context) ...
793.
794. class TextNode(Node):
795. def __init__(self, s):
796. self.s = s
797.
798. def __repr__(self):
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
node
<For Node: for item in cats, tail_len: 8>
self
[<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]
* /srv/data/web/web/pydev/.env/src/django/django/template/defaulttags.py in render
148. if unpack:
149. # If there are multiple loop variables, unpack the item into
150. # them.
151. context.update(dict(zip(self.loopvars, item)))
152. else:
153. context[self.loopvars[0]] = item
154. for node in self.nodelist_loop:
155. nodelist.append(node.render(context)) ...
156. if unpack:
157. # The loop variables were pushed on to the context so pop them
158. # off again. This is necessary because the tag lets the length
159. # of loopvars differ to the length of each set of items and we
160. # don't want to leave any vars from the previous loop on the
161. # context.
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
i
0
item
{'cat': <Category: Python life>, 'forums': [<Forum: Тусовка>, <Forum: Работа>]}
len_values
5
loop_dict
{'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 5, 'revcounter0': 4}
node
<For Node: for forum in item.forums, tail_len: 3>
nodelist
[u'\n<div class="main-subhead">\n ', u'\n <h2 class="hn"><span>', u'Python life', u'</span></h2>\n <p class="item-summary"><span><strong class="subject-title">Forums</strong> in this category with details of <strong class="info-topics">topics</strong>, <strong class="info-posts">posts</strong>, <strong class="info-lastpost">last post</strong></span></p>\n</div>\n<div id="category', u'2', u'" class="main-content main-category">\n\n']
parentloop
{}
self
<For Node: for item in cats, tail_len: 8>
unpack
False
values
[{'cat': <Category: Python life>, 'forums': [<Forum: Тусовка>, <Forum: Работа>]}, {'cat': <Category: Python>, 'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>]}, {'cat': <Category: Веб программирование>, 'forums': [<Forum: Веб-программирование>, <Forum: Django>]}, {'cat': <Category: Python misc>, 'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>]}, {'cat': <Category: Другое>, 'forums': [<Forum: Офтопик>, <Forum: Работа сайта>]}]
* /srv/data/web/web/pydev/.env/src/django/django/template/defaulttags.py in render
148. if unpack:
149. # If there are multiple loop variables, unpack the item into
150. # them.
151. context.update(dict(zip(self.loopvars, item)))
152. else:
153. context[self.loopvars[0]] = item
154. for node in self.nodelist_loop:
155. nodelist.append(node.render(context)) ...
156. if unpack:
157. # The loop variables were pushed on to the context so pop them
158. # off again. This is necessary because the tag lets the length
159. # of loopvars differ to the length of each set of items and we
160. # don't want to leave any vars from the previous loop on the
161. # context.
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
i
0
item
<Forum: Тусовка>
len_values
2
loop_dict
{'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 5, 'revcounter0': 4}, 'revcounter': 2, 'revcounter0': 1}
node
<WithNode>
nodelist
[u'\n']
parentloop
{'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 5, 'revcounter0': 4}
self
<For Node: for forum in item.forums, tail_len: 3>
unpack
False
values
[<Forum: Тусовка>, <Forum: Работа>]
* /srv/data/web/web/pydev/.env/src/django/django/template/defaulttags.py in render
419. self.name = name
420. self.nodelist = nodelist
421.
422. def __repr__(self):
423. return "<WithNode>"
424.
425. def render(self, context):
426. val = self.var.resolve(context) ...
427. context.push()
428. context[self.name] = val
429. output = self.nodelist.render(context)
430. context.pop()
431. return output
432.
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
self
<WithNode>
* /srv/data/web/web/pydev/.env/src/django/django/template/__init__.py in resolve
565. if not lookup:
566. arg_vals.append(mark_safe(arg))
567. else:
568. arg_vals.append(arg.resolve(context))
569. if getattr(func, 'needs_autoescape', False):
570. new_obj = func(obj, autoescape=context.autoescape, *arg_vals)
571. else:
572. new_obj = func(obj, *arg_vals) ...
573. if getattr(func, 'is_safe', False) and isinstance(obj, SafeData):
574. obj = mark_safe(new_obj)
575. elif isinstance(obj, EscapeData):
576. obj = mark_for_escaping(new_obj)
577. else:
578. obj = new_obj
▶ Local vars
Variable Value
arg
<Variable: u'user'>
arg_vals
[<User: Cykooz>]
args
[(True, <Variable: u'user'>)]
context
[{'forloop': {'revcounter0': 1, 'last': False, 'counter': 1, 'parentloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, 'revcounter': 2, 'counter0': 0, 'first': True}, u'forum': <Forum: Тусовка>}, {'forloop': {'revcounter0': 4, 'last': False, 'counter': 1, 'parentloop': {}, 'revcounter': 5, 'counter0': 0, 'first': True}, u'item': {'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="main-head">'>, <Variable Node: PYBB_HEADER>, <Text Node: '</span></h1> </div> '>, <For Node: for item in cats, tail_len: 8>, <Text Node: ' '>]>}, {'cats': [{'forums': [<Forum: Тусовка>, <Forum: Работа>], 'cat': <Category: Python life>}, {'forums': [<Forum: Python>, <Forum: Рефакторинг кода>, <Forum: Network>, <Forum: GUI>, <Forum: Базы данных, XML>], 'cat': <Category: Python>}, {'forums': [<Forum: Веб-программирование>, <Forum: Django>], 'cat': <Category: Веб программирование>}, {'forums': [<Forum: Система>, <Forum: Инструменты программирования>, <Forum: Форки>], 'cat': <Category: Python misc>}, {'forums': [<Forum: Офтопик>, <Forum: Работа сайта>], 'cat': <Category: Другое>}]}, {'PYBB_NOTICE': '', 'PYBB_SKIN_MEDIA_URL': '/static/pybb_templates_fluxbb/', 'PYBB_HEADER': 'PyDev', 'PYBB_MARKUP': u'bbcode', 'PYBB_TAGLINE': u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432', 'PYBB_MEDIA_URL': '/static/pybb/'}, {'sape': <sape.client.Client object at 0x8f554ac>}, {'LANGUAGES': (('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/static/'}, {'debug': True, 'sql_queries': [{'time': '0.000', 'sql': u'SELECT `django_session`.`session_key`, `django_session`.`session_data`, `django_session`.`expire_date` FROM `django_session` WHERE (`django_session`.`session_key` = af1e1056d12deecc52701e54a054d98e AND `django_session`.`expire_date` > 2010-02-04 00:03:46 )'}, {'time': '0.000', 'sql': u'SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_profile`.`id`, `pybb_profile`.`user_id`, `pybb_profile`.`signature`, `pybb_profile`.`signature_html`, `pybb_profile`.`time_zone`, `pybb_profile`.`language`, `pybb_profile`.`show_signatures`, `pybb_profile`.`markup`, `pybb_profile`.`ban_status`, `pybb_profile`.`ban_till`, `pybb_profile`.`post_count` FROM `pybb_profile` WHERE `pybb_profile`.`user_id` = 382 '}, {'time': '0.001', 'sql': u'SELECT `pybb_forum`.`id`, `pybb_forum`.`category_id`, `pybb_forum`.`name`, `pybb_forum`.`position`, `pybb_forum`.`description`, `pybb_forum`.`updated`, `pybb_forum`.`post_count`, `pybb_forum`.`topic_count`, `pybb_category`.`id`, `pybb_category`.`name`, `pybb_category`.`position` FROM `pybb_forum` INNER JOIN `pybb_category` ON (`pybb_forum`.`category_id` = `pybb_category`.`id`) ORDER BY `pybb_forum`.`position` ASC'}, {'time': '0.000', 'sql': u'SELECT `auth_message`.`id`, `auth_message`.`user_id`, `auth_message`.`message` FROM `auth_message` WHERE `auth_message`.`user_id` = 382 '}, {'time': '0.000', 'sql': u'SELECT `pybb_readtracking`.`id`, `pybb_readtracking`.`user_id`, `pybb_readtracking`.`topics`, `pybb_readtracking`.`last_read` FROM `pybb_readtracking` WHERE `pybb_readtracking`.`user_id` = 382 '}]}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'sessionid': 'af1e1056d12deecc52701e54a054d98e'}, META:{'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'sessionid=af1e1056d12deecc52701e54a054d98e', 'HTTP_HOST': 'pydev.ru', 'HTTP_REFERER': 'http://pydev.ru/account/login/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)', 'HTTP_X_FORWARDED_FOR': '94.181.230.191', 'HTTP_X_REAL_IP': '94.181.230.191', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/', 'PATH_TRANSLATED': '/web/pydev/django.wsgi/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '36172', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/web/pydev/django.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'pydev.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2', 'mod_wsgi.application_group': 'pydev.ru|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '8080', 'mod_wsgi.process_group': 'pydev.ru', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 5), 'wsgi.errors': <mod_wsgi.Log object at 0x8e58e78>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>, 'wsgi.input': <mod_wsgi.Input object at 0x86bb1b0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'perms': <django.core.context_processors.PermWrapper object at 0x8f558ac>, 'messages': [], 'user': <User: Cykooz>}, {}]
func
<function pybb_forum_unread at 0x8e4b1b4>
ignore_failures
False
lookup
True
obj
<Forum: Тусовка>
self
<django.template.FilterExpression object at 0x8e5b40c>
* /srv/data/web/web/pydev/.env/src/pybb/pybb/templatetags/pybb_tags.py in pybb_forum_unread
318.
319. if not user.is_authenticated():
320. return False
321.
322. if not forum.updated:
323. return False
324.
325. track = user.readtracking ...
326.
327. if not track.last_read:
328. return False
329.
330. return track.last_read < forum.updated
331.
▶ Local vars
Variable Value
forum
<Forum: Тусовка>
user
<User: Cykooz>
* /srv/data/web/web/pydev/.env/src/django/django/db/models/fields/related.py in __get__
184. def __get__(self, instance, instance_type=None):
185. if instance is None:
186. return self
187. try:
188. return getattr(instance, self.cache_name)
189. except AttributeError:
190. params = {'%s__pk' % self.related.field.name: instance._get_pk_val()}
191. rel_obj = self.related.model._base_manager.get(**params) ...
192. setattr(instance, self.cache_name, rel_obj)
193. return rel_obj
194.
195. def __set__(self, instance, value):
196. if instance is None:
197. raise AttributeError, "%s must be accessed via instance" % self.related.opts.object_name
▶ Local vars
Variable Value
instance
<User: Cykooz>
instance_type
<class 'django.contrib.auth.models.User'>
params
{'user__pk': 382L}
self
<django.db.models.fields.related.SingleRelatedObjectDescriptor object at 0x8c3610c>
* /srv/data/web/web/pydev/.env/src/django/django/db/models/manager.py in get
113. def distinct(self, *args, **kwargs):
114. return self.get_query_set().distinct(*args, **kwargs)
115.
116. def extra(self, *args, **kwargs):
117. return self.get_query_set().extra(*args, **kwargs)
118.
119. def get(self, *args, **kwargs):
120. return self.get_query_set().get(*args, **kwargs) ...
121.
122. def get_or_create(self, **kwargs):
123. return self.get_query_set().get_or_create(**kwargs)
124.
125. def create(self, **kwargs):
126. return self.get_query_set().create(**kwargs)
▶ Local vars
Variable Value
args
()
kwargs
{'user__pk': 382L}
self
<django.db.models.manager.Manager object at 0x8c3620c>
* /srv/data/web/web/pydev/.env/src/django/django/db/models/query.py in get
298. """
299. clone = self.filter(*args, **kwargs)
300. num = len(clone)
301. if num == 1:
302. return clone._result_cache[0]
303. if not num:
304. raise self.model.DoesNotExist("%s matching query does not exist."
305. % self.model._meta.object_name) ...
306. raise self.model.MultipleObjectsReturned("get() returned more than one %s -- it returned %s! Lookup parameters were %s"
307. % (self.model._meta.object_name, num, kwargs))
308.
309. def create(self, **kwargs):
310. """
311. Creates a new object with the given kwargs, saving it to the database
▶ Local vars
Variable Value
args
()
clone
[]
kwargs
{'user__pk': 382L}
num
0
self
[<ReadTracking: lorien>, <ReadTracking: denger>, <ReadTracking: discip1e>, <ReadTracking: fata1ex>, <ReadTracking: WorkStation>, <ReadTracking: Typhon>, <ReadTracking: slav0nic>, <ReadTracking: alafin>, <ReadTracking: diusha>, <ReadTracking: veon>, <ReadTracking: noodlez>, <ReadTracking: axe>, <ReadTracking: ZZZ>, <ReadTracking: kixiro>, <ReadTracking: TectBessstype>, <ReadTracking: AsiatikRun>, <ReadTracking: BruiseeDulsit>, <ReadTracking: viagrabestellenblog>, <ReadTracking: virtualitylife>, <ReadTracking: milasettett>, '...(remaining elements truncated)...']
Environment: Request Method: GET Request URL: http://pydev.ru/ Django Version: 1.1 SVN-11735 Python Version: 2.5.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.humanize', 'links', 'project', 'common', 'pybb_templates_fluxbb', 'pybb', 'book', 'supercaptcha', 'south', 'sape.django', 'registration'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'pybb.middleware.PybbMiddleware', 'django.middleware.doc.XViewMiddleware') Traceback: File "/srv/data/web/web/pydev/.env/src/django/django/core/handlers/base.py" in get_response 92. response = callback(request, *callback_args, **callback_kwargs) File "/srv/data/web/web/pydev/.env/src/pybb/pybb/shortcuts.py" in wrapper 35. return render_to_response(template, output, context_instance=ctx) File "/srv/data/web/web/pydev/.env/src/django/django/shortcuts/__init__.py" in render_to_response 20. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs) File "/srv/data/web/web/pydev/.env/src/django/django/template/loader.py" in render_to_string 108. return t.render(context_instance) File "/srv/data/web/web/pydev/.env/src/django/django/template/__init__.py" in render 178. return self.nodelist.render(context) File "/srv/data/web/web/pydev/.env/src/django/django/template/__init__.py" in render 779. bits.append(self.render_node(node, context)) File "/srv/data/web/web/pydev/.env/src/django/django/template/__init__.py" in render_node 792. return node.render(context) File "/srv/data/web/web/pydev/.env/src/django/django/template/loader_tags.py" in render 97. return compiled_parent.render(context) File "/srv/data/web/web/pydev/.env/src/django/django/template/__init__.py" in render 178. return self.nodelist.render(context) File "/srv/data/web/web/pydev/.env/src/django/django/template/__init__.py" in render 779. bits.append(self.render_node(node, context)) File "/srv/data/web/web/pydev/.env/src/django/django/template/__init__.py" in render_node 792. return node.render(context) File "/srv/data/web/web/pydev/.env/src/django/django/template/loader_tags.py" in render 24. result = self.nodelist.render(context) File "/srv/data/web/web/pydev/.env/src/django/django/template/__init__.py" in render 779. bits.append(self.render_node(node, context)) File "/srv/data/web/web/pydev/.env/src/django/django/template/__init__.py" in render_node 792. return node.render(context) File "/srv/data/web/web/pydev/.env/src/django/django/template/defaulttags.py" in render 155. nodelist.append(node.render(context)) File "/srv/data/web/web/pydev/.env/src/django/django/template/defaulttags.py" in render 155. nodelist.append(node.render(context)) File "/srv/data/web/web/pydev/.env/src/django/django/template/defaulttags.py" in render 426. val = self.var.resolve(context) File "/srv/data/web/web/pydev/.env/src/django/django/template/__init__.py" in resolve 572. new_obj = func(obj, *arg_vals) File "/srv/data/web/web/pydev/.env/src/pybb/pybb/templatetags/pybb_tags.py" in pybb_forum_unread 325. track = user.readtracking File "/srv/data/web/web/pydev/.env/src/django/django/db/models/fields/related.py" in __get__ 191. rel_obj = self.related.model._base_manager.get(**params) File "/srv/data/web/web/pydev/.env/src/django/django/db/models/manager.py" in get 120. return self.get_query_set().get(*args, **kwargs) File "/srv/data/web/web/pydev/.env/src/django/django/db/models/query.py" in get 305. % self.model._meta.object_name) Exception Type: DoesNotExist at / Exception Value: ReadTracking matching query does not exist.
Request information
GET
No GET data
POST
No POST data
FILES
No FILES data
COOKIES
Variable Value
sessionid
'af1e1056d12deecc52701e54a054d98e'
META
Variable Value
DOCUMENT_ROOT
'/htdocs'
GATEWAY_INTERFACE
'CGI/1.1'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
HTTP_ACCEPT_CHARSET
'windows-1251,utf-8;q=0.7,*;q=0.7'
HTTP_ACCEPT_ENCODING
'gzip,deflate'
HTTP_ACCEPT_LANGUAGE
'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3'
HTTP_CONNECTION
'close'
HTTP_COOKIE
'sessionid=af1e1056d12deecc52701e54a054d98e'
HTTP_HOST
'pydev.ru'
HTTP_REFERER
'http://pydev.ru/account/login/'
HTTP_USER_AGENT
'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB6 (.NET CLR 3.5.30729)'
HTTP_X_FORWARDED_FOR
'94.181.230.191'
HTTP_X_REAL_IP
'94.181.230.191'
PATH
'/usr/local/bin:/usr/bin:/bin'
PATH_INFO
u'/'
PATH_TRANSLATED
'/web/pydev/django.wsgi/'
QUERY_STRING
''
REMOTE_ADDR
'127.0.0.1'
REMOTE_PORT
'36172'
REQUEST_METHOD
'GET'
REQUEST_URI
'/'
SCRIPT_FILENAME
'/web/pydev/django.wsgi'
SCRIPT_NAME
u''
SERVER_ADDR
'127.0.0.1'
SERVER_ADMIN
'[no address given]'
SERVER_NAME
'pydev.ru'
SERVER_PORT
'80'
SERVER_PROTOCOL
'HTTP/1.0'
SERVER_SIGNATURE
'<address>Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2 Server at pydev.ru Port 80</address>\n'
SERVER_SOFTWARE
'Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2'
mod_wsgi.application_group
'pydev.ru|'
mod_wsgi.callable_object
'application'
mod_wsgi.listener_host
''
mod_wsgi.listener_port
'8080'
mod_wsgi.process_group
'pydev.ru'
mod_wsgi.reload_mechanism
'1'
mod_wsgi.script_reloading
'1'
mod_wsgi.version
(2, 5)
wsgi.errors
<mod_wsgi.Log object at 0x8e58e78>
wsgi.file_wrapper
<built-in method file_wrapper of mod_wsgi.Adapter object at 0x8e44410>
wsgi.input
<mod_wsgi.Input object at 0x86bb1b0>
wsgi.multiprocess
False
wsgi.multithread
False
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)
Settings
Using settings module settings
Setting Value
ABSOLUTE_URL_OVERRIDES
{}
ACCOUNT_ACTIVATION_DAYS
3
ADMINS
(('Grigoriy', 'lorien@pyweb.ru'),)
ADMIN_FOR
()
ADMIN_MEDIA_PREFIX
'/media/'
ALLOWED_INCLUDE_ROOTS
()
APPEND_SLASH
True
AUTHENTICATION_BACKENDS
('django.contrib.auth.backends.ModelBackend',)
BANNED_IPS
()
CACHE_BACKEND
'locmem://'
CACHE_MIDDLEWARE_KEY_PREFIX
''
CACHE_MIDDLEWARE_SECONDS
600
CAPTCHA_ALT
u'\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043a\u0430\u043f\u0442\u0447\u0438'
CAPTCHA_LENGTH
4
CAPTCHA_SIZE
(150, 75)
CAPTCHA_SYMBOLS
'0123456789'
COMMENTS_ALLOW_PROFANITIES
False
COMMENTS_BANNED_USERS_GROUP
None
COMMENTS_FIRST_FEW
0
COMMENTS_MODERATORS_GROUP
None
COMMENTS_SKETCHY_USERS_GROUP
None
DATABASE_ENGINE
'mysql'
DATABASE_HOST
'localhost'
DATABASE_NAME
'pydev'
DATABASE_OPTIONS
{}
DATABASE_PASSWORD
'********************'
DATABASE_PORT
''
DATABASE_USER
'web'
DATETIME_FORMAT
'N j, Y, P'
DATE_FORMAT
'N j, Y'
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DEFAULT_CHARSET
'utf-8'
DEFAULT_CONTENT_TYPE
'text/html'
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL
'robot@pydev.ru'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_TABLESPACE
''
DISALLOWED_USER_AGENTS
()
DOMAIN
'pydev.ru'
EMAIL_HOST
'localhost'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
''
EMAIL_PORT
25
EMAIL_SUBJECT_PREFIX
'[Django] '
EMAIL_USE_TLS
False
FILE_CHARSET
'utf-8'
FILE_UPLOAD_HANDLERS
('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
FILE_UPLOAD_PERMISSIONS
None
FILE_UPLOAD_TEMP_DIR
None
FIXTURE_DIRS
()
FORCE_SCRIPT_NAME
''
IGNORABLE_404_ENDS
('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
IGNORABLE_404_STARTS
('/cgi-bin/', '/_vti_bin', '/_vti_inf')
INSTALLED_APPS
['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.humanize', 'links', 'project', 'common', 'pybb_templates_fluxbb', 'pybb', 'book', 'supercaptcha', 'south', 'sape.django', 'registration']
INTERNAL_IPS
('127.0.0.1',)
LANGUAGES
(('ru', 'Russian'), ('en', 'English'), ('pt_BR', 'Portuguese-Brazilian'), ('he', 'Hebrew'), ('sk', 'Slovak'))
LANGUAGES_BIDI
('he', 'ar', 'fa')
LANGUAGE_CODE
'ru-ru'
LANGUAGE_COOKIE_NAME
'django_language'
LOCALE_PATHS
()
LOGIN_REDIRECT_URL
'/'
LOGIN_URL
'/account/login/'
LOGOUT_URL
'/accounts/logout/'
MANAGERS
(('Grigoriy', 'lorien@pyweb.ru'),)
MEDIA_ROOT
'/srv/data/web/web/pydev/static'
MEDIA_URL
'/static/'
MIDDLEWARE_CLASSES
('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'pybb.middleware.PybbMiddleware', 'django.middleware.doc.XViewMiddleware')
MONTH_DAY_FORMAT
'F j'
PASSWORD_RESET_TIMEOUT_DAYS
'********************'
PREPEND_WWW
False
PROFANITIES_LIST
'********************'
PYBB_ADMIN_URL
'/admin/'
PYBB_ATTACHMENT_ENABLE
True
PYBB_ATTACHMENT_SIZE_LIMIT
1048576
PYBB_ATTACHMENT_UPLOAD_TO
'pybb_upload/attachments'
PYBB_AVATAR_HEIGHT
60
PYBB_AVATAR_WIDTH
60
PYBB_DEFAULT_AVATAR_URL
'pybb/img/default_avatar.jpg'
PYBB_DEFAULT_MARKUP
'bbcode'
PYBB_DEFAULT_TIME_ZONE
3
PYBB_FORUM_PAGE_SIZE
20
PYBB_FREEZE_FIRST_POST
True
PYBB_HEADER
'PyDev'
PYBB_HOST
'pydev.ru'
PYBB_NOTICE
''
PYBB_POST_AUTOJOIN_ENABLED
True
PYBB_POST_AUTOJOIN_TIMEOUT
3600
PYBB_QUICK_POSTS_NUMBER
10
PYBB_QUICK_TOPICS_NUMBER
10
PYBB_READ_TIMEOUT
604800
PYBB_SIGNATURE_MAX_LENGTH
1024
PYBB_SIGNATURE_MAX_LINES
3
PYBB_SKIN
'pybb_templates_fluxbb'
PYBB_TAGLINE
u'\u0424\u043e\u0440\u0443\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432'
PYBB_TOPIC_PAGE_SIZE
10
PYBB_USERS_PAGE_SIZE
20
ROOT
'/srv/data/web/web/pydev'
ROOT_URLCONF
'urls'
SAPE_DATABASE
'/srv/data/web/web/pydev/var/sape.links'
SAPE_HOST
'omprice.ru'
SAPE_USER
'74947f25f25d6eb17e910005cbeaa8e6'
SECRET_KEY
'********************'
SEND_BROKEN_LINK_EMAILS
False
SERVER_EMAIL
'root@localhost'
SESSION_COOKIE_AGE
1209600
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
'sessionid'
SESSION_COOKIE_PATH
'/'
SESSION_COOKIE_SECURE
False
SESSION_ENGINE
'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_FILE_PATH
None
SESSION_SAVE_EVERY_REQUEST
False
SETTINGS_MODULE
'settings'
SITE_ID
1
TEMPLATE_CONTEXT_PROCESSORS
('django.core.context_processors.auth', 'django.core.context_processors.request', 'django.core.context_processors.debug', 'django.core.context_processors.media', 'django.core.context_processors.i18n', 'sape.django.context_processors.sape', 'pybb.context_processors.pybb')
TEMPLATE_DEBUG
False
TEMPLATE_DIRS
('/srv/data/web/web/pydev/templates',)
TEMPLATE_LOADERS
('django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source')
TEMPLATE_STRING_IF_INVALID
''
TEST_DATABASE_CHARSET
'utf8'
TEST_DATABASE_COLLATION
None
TEST_DATABASE_NAME
None
TEST_RUNNER
'django.test.simple.run_tests'
TIME_FORMAT
'P'
TIME_ZONE
'Europe/Moscow'
TRANSACTIONS_MANAGED
False
URL_VALIDATOR_USER_AGENT
u'Django/1.1 SVN-11735 (http://www.djangoproject.com)'
USE_ETAGS
False
USE_I18N
True
YEAR_MONTH_FORMAT
'F Y'
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.