(1, "Can't create/write to file '/tmp/#sql_3b9_0.MYI' (Errcode: 13)")
Request Method: | GET |
---|---|
Request URL: | http://zabclean.ru/offers/ |
Django Version: | 1.4.3 |
Exception Type: | DatabaseError |
Exception Value: | (1, "Can't create/write to file '/tmp/#sql_3b9_0.MYI' (Errcode: 13)") |
Exception Location: | /usr/lib64/python2.7/site-packages/MySQLdb/connections.py in defaulterrorhandler, line 36 |
Python Executable: | |
Python Version: | 2.7.0 |
Python Path: | ['/var/www/cherokee/evrochistka/', '/var/www/cherokee/', '.', '', '/usr/lib/python2.7/site-packages/pip-0.8-py2.7.egg', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/PIL', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info'] |
Server time: | Птн, 29 Мар 2024 16:53:33 +1000 |
In template /var/www/cherokee/evrochistka/templates/services/offers.html
, error at line 26
16 | {{ item.description|safe }} |
---|---|
17 | </div> |
18 | </div> |
19 | {% endfor %} |
20 | </div> |
21 | {% endblock %} |
22 | |
23 | {% block right %} |
24 | {% include "block_bonus.html" %} |
25 | |
26 | {% block_faq_last %} |
27 | {% endblock %} |
/usr/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
for middleware_method in self._view_middleware:
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
try:
response = callback(request, *callback_args, **callback_kwargs)...
except Exception, e:
# If the view raised an exception, run it through exception
# middleware, and if the exception middleware returns a
# response, use that. Otherwise, reraise the exception.
for middleware_method in self._exception_middleware:
response = middleware_method(request, e)
Variable | Value |
---|---|
exceptions | <module 'django.core.exceptions' from '/usr/lib/python2.7/site-packages/django/core/exceptions.py'> |
e | DatabaseError(1, "Can't create/write to file '/tmp/#sql_3b9_0.MYI' (Errcode: 13)") |
callback_args | () |
settings | <django.conf.LazySettings object at 0x2530710> |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x2c3a090>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x2c178d0> |
request | "<WSGIRequest\npath:/offers/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '0',\n 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql',\n 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTPS': 'off',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'zabclean.ru',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin',\n 'PATH_INFO': u'/offers/',\n 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '54.226.155.151',\n 'REMOTE_PORT': '31390',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_URI': '/offers/',\n 'SCRIPT_NAME': u'',\n 'SCRIPT_URL': '/offers/',\n 'SERVER_ADDR': '95.189.98.242',\n 'SERVER_NAME': 'zabclean.ru',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>',\n 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)',\n 'uwsgi.node': 'EuroGW',\n 'uwsgi.version': '0.9.8.6',\n 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x33de7f0>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
callback | <function offers_view at 0x2f64410> |
resolver | <RegexURLResolver urls (None:None) ^/> |
urlresolvers | <module 'django.core.urlresolvers' from '/usr/lib/python2.7/site-packages/django/core/urlresolvers.py'> |
callback_kwargs | {} |
response | None |
urlconf | 'urls' |
/var/www/cherokee/evrochistka/apps/services/views.py
in offers_view
service = get_object_or_404(Services, id = id_service)
return direct_to_template(request, 'services/service.html', locals())
def offers_view(request):
items = Offers.objects.all()
return direct_to_template(request, 'services/offers.html', locals())...
def offers_detail(request, id_offer):
offer = get_object_or_404(Offers, id=id_offer)
return direct_to_template(request, 'services/offers_detail.html', locals())
Variable | Value |
---|---|
items | [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>] |
request | "<WSGIRequest\npath:/offers/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '0',\n 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql',\n 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTPS': 'off',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'zabclean.ru',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin',\n 'PATH_INFO': u'/offers/',\n 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '54.226.155.151',\n 'REMOTE_PORT': '31390',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_URI': '/offers/',\n 'SCRIPT_NAME': u'',\n 'SCRIPT_URL': '/offers/',\n 'SERVER_ADDR': '95.189.98.242',\n 'SERVER_NAME': 'zabclean.ru',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>',\n 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)',\n 'uwsgi.node': 'EuroGW',\n 'uwsgi.version': '0.9.8.6',\n 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x33de7f0>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
/usr/lib/python2.7/site-packages/django/views/generic/simple.py
in direct_to_template
for key, value in extra_context.items():
if callable(value):
dictionary[key] = value()
else:
dictionary[key] = value
c = RequestContext(request, dictionary)
t = loader.get_template(template)
return HttpResponse(t.render(c), content_type=mimetype)...
def redirect_to(request, url, permanent=True, query_string=False, **kwargs):
"""
Redirect to a given URL.
The given url may contain dict-style string formatting, which will be
Variable | Value |
---|---|
mimetype | None |
c | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
template | 'services/offers.html' |
dictionary | {'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>} |
request | "<WSGIRequest\npath:/offers/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '0',\n 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql',\n 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTPS': 'off',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'zabclean.ru',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin',\n 'PATH_INFO': u'/offers/',\n 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '54.226.155.151',\n 'REMOTE_PORT': '31390',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_URI': '/offers/',\n 'SCRIPT_NAME': u'',\n 'SCRIPT_URL': '/offers/',\n 'SERVER_ADDR': '95.189.98.242',\n 'SERVER_NAME': 'zabclean.ru',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>',\n 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)',\n 'uwsgi.node': 'EuroGW',\n 'uwsgi.version': '0.9.8.6',\n 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x33de7f0>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
value | "<WSGIRequest\npath:/offers/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '0',\n 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql',\n 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTPS': 'off',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'zabclean.ru',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin',\n 'PATH_INFO': u'/offers/',\n 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '54.226.155.151',\n 'REMOTE_PORT': '31390',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_URI': '/offers/',\n 'SCRIPT_NAME': u'',\n 'SCRIPT_URL': '/offers/',\n 'SERVER_ADDR': '95.189.98.242',\n 'SERVER_NAME': 'zabclean.ru',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>',\n 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)',\n 'uwsgi.node': 'EuroGW',\n 'uwsgi.version': '0.9.8.6',\n 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x33de7f0>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
t | <django.template.base.Template object at 0x34e5210> |
key | 'request' |
kwargs | {} |
extra_context | {'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>} |
/usr/lib/python2.7/site-packages/django/template/base.py
in render
def _render(self, context):
return self.nodelist.render(context)
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)...
finally:
context.render_context.pop()
def compile_string(template_string, origin):
"Compiles template_string into NodeList ready for rendering"
if settings.TEMPLATE_DEBUG:
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x34e5210> |
context | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x34e5210> |
context | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_unicode(bit))
return mark_safe(u''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
bits | [] |
context | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
/usr/lib/python2.7/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception, e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
e | DatabaseError(1, "Can't create/write to file '/tmp/#sql_3b9_0.MYI' (Errcode: 13)") |
context | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
/usr/lib/python2.7/site-packages/django/template/loader_tags.py
in render
blocks = dict([(n.name, n) for n in
compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
return compiled_parent._render(context)...
class BaseIncludeNode(Node):
def __init__(self, *args, **kwargs):
self.extra_context = kwargs.pop('extra_context', {})
self.isolated_context = kwargs.pop('isolated_context', False)
super(BaseIncludeNode, self).__init__(*args, **kwargs)
Variable | Value |
---|---|
node | <django.template.defaulttags.LoadNode object at 0x3478890> |
blocks | {u'META_description': <Block Node: META_description. Contents: [<Variable Node: meta.description>]>, u'META_keywords': <Block Node: META_keywords. Contents: [<Variable Node: meta.keywords>]>, u'left': <Block Node: left. Contents: []>, u'main': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>, u'right': <Block Node: right. Contents: []>} |
block_context | <django.template.loader_tags.BlockContext object at 0x34e51d0> |
n | <Block Node: right. Contents: []> |
context | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
compiled_parent | <django.template.base.Template object at 0x34e5d10> |
self | <ExtendsNode: extends "base.html"> |
/usr/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x34e5d10> |
context | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_unicode(bit))
return mark_safe(u''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]> |
bit | u'\n\t</div>\n <!--/HEADER-->\n\n\n <!--MAIN-->\n\t<div class="main">\n ' |
bits | [u'', u'\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\n<head>\n <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n <meta name="description" content="', u'', u'"/>\n <meta name="keywords" content="', u'', u'"/>\n <link href="/static/css/style.css" rel="stylesheet" type="text/css" />\n <link href="/static/js/fancybox/jquery.fancybox.css" rel="stylesheet" type="text/css" />\n <link href="/static/js/fancybox/helpers/jquery.fancybox-thumbs.css" rel="stylesheet" type="text/css" />\n <!--[if lte IE 8]><link rel="stylesheet" type="text/css" media="screen" href="/static/css/ie.css" /><![endif]-->\n <script type="text/javascript" src="/static/js/jquery.js"></script>\n <script type="text/javascript" src="/static/js/fancybox/jquery.fancybox.pack.js"></script>\n <script type="text/javascript" src="/static/js/fancybox/helpers/jquery.fancybox-thumbs.js"></script>\n <script type="text/javascript" src="/static/js/script.js"></script>\n <title>', u'\u0415\u0432\u0440\u043e\u0447\u0438\u0441\u0442\u043a\u0430', u'</title>\n</head>\n\n<body>\n<div class="wrapper">\n\n<!--PAGE-->\n<div class="page">\n\n <!--HEADER-->\n\t<div class="header">\n\t\t<a id="logo_box" href="/" title="\u0415\u0432\u0440\u043e\u0447\u0438\u0441\u0442\u043a\u0430"><img id="logo" src="/static/img/logo.png" alt="\u0415\u0432\u0440\u043e\u0447\u0438\u0441\u0442\u043a\u0430" width="370" height="45" /></a>\n\n\t\t', u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->', u'\n\n\t\t', u'\n <div class="menu">\n <ul>\n \n <li ><a href="/equipment/">\u041e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435</a></li>\n \n <li class="current"><a href="/offers/">\u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f</a></li>\n \n <li ><a href="/services/">\u0423\u0441\u043b\u0443\u0433\u0438 \u0438 \u0446\u0435\u043d\u044b</a></li>\n \n <li ><a href="/faq/">\u0421\u043e\u0432\u0435\u0442\u044b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u0430</a></li>\n \n <li ><a href="/partners/">\u041f\u0430\u0440\u0442\u043d\u0435\u0440\u0430\u043c</a></li>\n \n <li ><a href="/bonus/">\u0411\u043e\u043d\u0443\u0441\u044b</a></li>\n \n <li ><a href="/points/">\u041f\u0443\u043d\u043a\u0442\u044b \u043f\u0440\u0438\u0451\u043c\u0430</a></li>\n \n </ul>\n </div><!--/menu-->\n', u'\n\t</div>\n <!--/HEADER-->\n\n\n <!--MAIN-->\n\t<div class="main">\n '] |
self | Error in formatting: 'ascii' codec can't encode characters in position 36-45: ordinal not in range(128) |
context | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
/usr/lib/python2.7/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception, e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]> |
self | Error in formatting: 'ascii' codec can't encode characters in position 36-45: ordinal not in range(128) |
e | DatabaseError(1, "Can't create/write to file '/tmp/#sql_3b9_0.MYI' (Errcode: 13)") |
context | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
/usr/lib/python2.7/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = BlockNode(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
context.pop()
return result
def super(self):
Variable | Value |
---|---|
push | <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x34e51d0> |
context | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
block | <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]> |
self | <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]> |
/usr/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_unicode(bit))
return mark_safe(u''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Block Node: right. Contents: []> |
bit | u'\n\t\t</div><!--/left-->\n\n\t\t<div class="right">\n ' |
bits | [u'\n\n\t\t<div class="left">\n ', u'\n\t<div class="services2">\n\t\t\n\t\t\t<div class="service2">\n\t\t\t\t\t<div class="service2_img col">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<img src="/static/cache/4e/98/4e986a0000a6cad1a25a7e8f53d79e9f.jpg" width="156" height="82" />\n\t\t\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="service2_des col">\n\t\t\t\t\t\t<h2><a href="/offers/1/">\u0427\u0438\u0441\u0442\u043a\u0430 \u043f\u0443\u0445\u043e\u0432\u0438\u043a\u043e\u0432, \u043a\u0443\u0440\u0442\u043e\u043a \u0438 \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u043e\u0434\u0435\u0436\u0434\u044b</a></h2>\n\t\t\t\t\t\t\r\n\r\n<p><span>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u0430\u043a \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0447\u0438\u0441\u0442\u043a\u0430, \u043a\u0430\u043a\u043e\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438 \u043a\u0430\u043a\u0438\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f. \u041a \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0444\u043e\u0442\u043e\u0440\u0430\u0444\u0438\u0439 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0447\u0438\u0441\u0442\u043a\u0438 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \xab\u0414\u043e-\u041f\u043e\u0441\u043b\u0435\xbb, \u0442\u0430\u043a \u043a\u0430\u0436\u0434\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0441\u0445\u043e\u0434\u0443 \u0441\u043c\u043e\u0436\u0435\u0442 \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u043e\u0442\u0441\u0442\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0435\u0433\u043e \u043f\u044f\u0442\u043d\u043e \u0438\u043b\u0438 \u043d\u0435\u0442.</span></p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\n\t</div>\n', u'\n\t\t</div><!--/left-->\n\n\t\t<div class="right">\n '] |
self | [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>] |
context | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
/usr/lib/python2.7/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception, e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Block Node: right. Contents: []> |
self | [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>] |
e | DatabaseError(1, "Can't create/write to file '/tmp/#sql_3b9_0.MYI' (Errcode: 13)") |
context | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
/usr/lib/python2.7/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = BlockNode(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
context.pop()
return result
def super(self):
Variable | Value |
---|---|
push | <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x34e51d0> |
context | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
block | <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]> |
self | <Block Node: right. Contents: []> |
/usr/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_unicode(bit))
return mark_safe(u''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <django.template.base.InclusionNode object at 0x3462e90> |
bit | u'\n\n\t' |
bits | [u'\n\t', u'<div class="bonus_teaser">\n <h3><a href="/bonus/">\u0411\u043e\u043d\u0443\u0441\u044b \u0438 \u0441\u043a\u0438\u0434\u043a\u0438</a></h3>\n <p>\u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c</p>\n</div>', u'\n\n\t'] |
self | [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>] |
context | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
/usr/lib/python2.7/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception, e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <django.template.base.InclusionNode object at 0x3462e90> |
self | [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>] |
e | DatabaseError(1, "Can't create/write to file '/tmp/#sql_3b9_0.MYI' (Errcode: 13)") |
context | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
/usr/lib/python2.7/site-packages/django/template/base.py
in render
def dec(func):
params, varargs, varkw, defaults = getargspec(func)
class InclusionNode(TagHelperNode):
def render(self, context):
resolved_args, resolved_kwargs = self.get_resolved_arguments(context)
_dict = func(*resolved_args, **resolved_kwargs)...
if not getattr(self, 'nodelist', False):
from django.template.loader import get_template, select_template
if isinstance(file_name, Template):
t = file_name
elif not isinstance(file_name, basestring) and is_iterable(file_name):
Variable | Value |
---|---|
context | [{'items': [<Offers: Чистка пуховиков, курток и любой другой верхней одежды>], 'params': {}, 'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x34e5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x34e5850>, 'user': <django.utils.functional.SimpleLazyObject object at 0x34e5c50>}, {'request': <WSGIRequest path:/offers/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '0', 'CSRF_COOKIE': 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql', 'DOCUMENT_ROOT': '/var/www/cherokee/evrochistka', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'off', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zabclean.ru', 'HTTP_USER_AGENT': 'claudebot', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'PATH_INFO': u'/offers/', 'PATH_TRANSLATED': '/var/www/cherokee/evrochistka/offers/', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.226.155.151', 'REMOTE_PORT': '31390', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/offers/', 'SCRIPT_NAME': u'', 'SCRIPT_URL': '/offers/', 'SERVER_ADDR': '95.189.98.242', 'SERVER_NAME': 'zabclean.ru', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Cherokee Web Server</address>', 'SERVER_SOFTWARE': 'Cherokee/1.2.101 (UNIX)', 'uwsgi.node': 'EuroGW', 'uwsgi.version': '0.9.8.6', 'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x2f6af60>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x33de7f0>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'meta': False, 'contacts': u'<div class="contacts">\r\n\t\t\t<div class="contacts_note">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u0435\u043c \u0437\u0430\u043a\u0430\u0437\u043e\u0432</div>\r\n\t\t\t<div class="tel">99-69-99</div>\r\n\t\t</div><!--/contacts-->'}, {'block': <Block Node: main. Contents: [<Text Node: ' <div class="left"> '>, <Block Node: left. Contents: []>, <Text Node: ' </div><!--/left--> '>, <Block Node: right. Contents: []>, <Text Node: ' </div><!--/right--> '>]>}, {'block': <Block Node: right. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x3462a10>, <Text Node: ' '>, <django.template.base.InclusionNode object at 0x3462e90>, <Text Node: ' '>]>}] |
resolved_kwargs | {} |
self | <django.template.base.InclusionNode object at 0x3462e90> |
file_name | 'faq/block_faq_last.html' |
func | <function block_faq_last at 0x345e500> |
resolved_args | [] |
context_class | <class 'django.template.context.Context'> |
/var/www/cherokee/evrochistka/apps/faq/templatetags/faq_extras.py
in block_faq_last
next = 1
faqs = faqs[0]
return {'faq': faqs, 'next': next}
@register.inclusion_tag("faq/block_faq_last.html")
def block_faq_last():
faqs = Faq.objects.published().order_by('?')[:1]
if faqs:...
faqs = faqs[0]
else:
faqs = False
return {'faq': faqs}
Variable | Value |
---|---|
faqs | [] |
/usr/lib/python2.7/site-packages/django/db/models/query.py
in __nonzero__
# in one go. To minimize code duplication, we use the __len__
# code path which also forces this, and also does the prefetch
len(self)
if self._result_cache is not None:
return bool(self._result_cache)
try:
iter(self).next()...
except StopIteration:
return False
return True
def __contains__(self, val):
# The 'in' operator works without this method, due to __iter__. This
Variable | Value |
---|---|
self | [] |
/usr/lib/python2.7/site-packages/django/db/models/query.py
in _result_iter
upper = len(self._result_cache)
while pos < upper:
yield self._result_cache[pos]
pos = pos + 1
if not self._iter:
raise StopIteration
if len(self._result_cache) <= pos:
self._fill_cache()...
def __nonzero__(self):
if self._prefetch_related_lookups and not self._prefetch_done:
# We need all the results in order to be able to do the prefetch
# in one go. To minimize code duplication, we use the __len__
# code path which also forces this, and also does the prefetch
Variable | Value |
---|---|
upper | 0 |
self | [] |
pos | 0 |
/usr/lib/python2.7/site-packages/django/db/models/query.py
in _fill_cache
"""
Fills the result cache with 'num' more entries (or until the results
iterator is exhausted).
"""
if self._iter:
try:
for i in range(num or ITER_CHUNK_SIZE):
self._result_cache.append(self._iter.next())...
except StopIteration:
self._iter = None
def _next_is_sticky(self):
"""
Indicates that the next filter call and the one following that should
Variable | Value |
---|---|
i | 0 |
self | [] |
num | None |
/usr/lib/python2.7/site-packages/django/db/models/query.py
in iterator
# Cache db and model outside the loop
db = self.db
model = self.model
compiler = self.query.get_compiler(using=db)
if fill_cache:
klass_info = get_klass_info(model, max_depth=max_depth,
requested=requested, only_load=only_load)
for row in compiler.results_iter():...
if fill_cache:
obj, _ = get_cached_row(row, index_start, db, klass_info,
offset=len(aggregate_select))
else:
if skip:
row_data = row[index_start:aggregate_start]
Variable | Value |
---|---|
requested | None |
fill_cache | False |
aggregate_select | [] |
fields | [<django.db.models.fields.AutoField: id>, <django.db.models.fields.related.ForeignKey: category>, <django.db.models.fields.related.ForeignKey: service>, <django.db.models.fields.EmailField: email>, <django.db.models.fields.TextField: question>, <django.db.models.fields.TextField: short_answer>, <django.db.models.fields.TextField: answer>, <django.db.models.fields.DateTimeField: date_create>, <django.db.models.fields.DateTimeField: date_answer>, <django.db.models.fields.BooleanField: is_published>, <django.db.models.fields.BooleanField: notification>] |
skip | None |
self | [] |
load_fields | [] |
db | 'default' |
index_start | 0 |
extra_select | [] |
aggregate_start | 11 |
model | <class 'apps.faq.models.Faq'> |
only_load | {} |
max_depth | 5 |
compiler | <django.db.backends.mysql.compiler.SQLCompiler object at 0x34789d0> |
/usr/lib/python2.7/site-packages/django/db/models/sql/compiler.py
in results_iter
fields = None
has_aggregate_select = bool(self.query.aggregate_select)
# Set transaction dirty if we're using SELECT FOR UPDATE to ensure
# a subsequent commit/rollback is executed, so any database locks
# are released.
if self.query.select_for_update and transaction.is_managed(self.using):
transaction.set_dirty(self.using)
for rows in self.execute_sql(MULTI):...
for row in rows:
if resolve_columns:
if fields is None:
# We only set this up here because
# related_select_fields isn't populated until
# execute_sql() has been called.
Variable | Value |
---|---|
fields | None |
self | <django.db.backends.mysql.compiler.SQLCompiler object at 0x34789d0> |
has_aggregate_select | False |
resolve_columns | True |
/usr/lib/python2.7/site-packages/django/db/models/sql/compiler.py
in execute_sql
except EmptyResultSet:
if result_type == MULTI:
return empty_iter()
else:
return
cursor = self.connection.cursor()
cursor.execute(sql, params)...
if not result_type:
return cursor
if result_type == SINGLE:
if self.query.ordering_aliases:
return cursor.fetchone()[:-len(self.query.ordering_aliases)]
Variable | Value |
---|---|
cursor | <django.db.backends.util.CursorDebugWrapper object at 0x34f7d90> |
self | <django.db.backends.mysql.compiler.SQLCompiler object at 0x34789d0> |
params | (True,) |
result_type | 'multi' |
sql | 'SELECT `faq_faq`.`id`, `faq_faq`.`category_id`, `faq_faq`.`service_id`, `faq_faq`.`email`, `faq_faq`.`question`, `faq_faq`.`short_answer`, `faq_faq`.`answer`, `faq_faq`.`date_create`, `faq_faq`.`date_answer`, `faq_faq`.`is_published`, `faq_faq`.`notification` FROM `faq_faq` WHERE `faq_faq`.`is_published` = %s ORDER BY RAND() LIMIT 1' |
/usr/lib/python2.7/site-packages/django/db/backends/util.py
in execute
class CursorDebugWrapper(CursorWrapper):
def execute(self, sql, params=()):
self.set_dirty()
start = time()
try:
return self.cursor.execute(sql, params)...
finally:
stop = time()
duration = stop - start
sql = self.db.ops.last_executed_query(self.cursor, sql, params)
self.db.queries.append({
'sql': sql,
Variable | Value |
---|---|
self | <django.db.backends.util.CursorDebugWrapper object at 0x34f7d90> |
stop | 1711695213.00647 |
start | 1711695213.005801 |
params | (True,) |
sql | 'SELECT `faq_faq`.`id`, `faq_faq`.`category_id`, `faq_faq`.`service_id`, `faq_faq`.`email`, `faq_faq`.`question`, `faq_faq`.`short_answer`, `faq_faq`.`answer`, `faq_faq`.`date_create`, `faq_faq`.`date_answer`, `faq_faq`.`is_published`, `faq_faq`.`notification` FROM `faq_faq` WHERE `faq_faq`.`is_published` = 1 ORDER BY RAND() LIMIT 1' |
duration | 0.0006690025329589844 |
/usr/lib/python2.7/site-packages/django/db/backends/mysql/base.py
in execute
codes_for_integrityerror = (1048,)
def __init__(self, cursor):
self.cursor = cursor
def execute(self, query, args=None):
try:
return self.cursor.execute(query, args)...
except Database.IntegrityError, e:
raise utils.IntegrityError, utils.IntegrityError(*tuple(e)), sys.exc_info()[2]
except Database.OperationalError, e:
# Map some error codes to IntegrityError, since they seem to be
# misclassified and Django would prefer the more logical place.
if e[0] in self.codes_for_integrityerror:
Variable | Value |
---|---|
query | 'SELECT `faq_faq`.`id`, `faq_faq`.`category_id`, `faq_faq`.`service_id`, `faq_faq`.`email`, `faq_faq`.`question`, `faq_faq`.`short_answer`, `faq_faq`.`answer`, `faq_faq`.`date_create`, `faq_faq`.`date_answer`, `faq_faq`.`is_published`, `faq_faq`.`notification` FROM `faq_faq` WHERE `faq_faq`.`is_published` = %s ORDER BY RAND() LIMIT 1' |
self | <django.db.backends.mysql.base.CursorWrapper object at 0x34f7450> |
args | (True,) |
e | InternalError(1, "Can't create/write to file '/tmp/#sql_3b9_0.MYI' (Errcode: 13)") |
/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py
in execute
else:
self.messages.append((TypeError, m))
self.errorhandler(self, TypeError, m)
except:
exc, value, tb = sys.exc_info()
del tb
self.messages.append((exc, value))
self.errorhandler(self, exc, value)...
self._executed = query
if not self._defer_warnings: self._warning_check()
return r
def executemany(self, query, args):
Variable | Value |
---|---|
charset | 'utf8' |
exc | <class '_mysql_exceptions.InternalError'> |
self | <MySQLdb.cursors.Cursor object at 0x34f7e90> |
args | (True,) |
db | <weakproxy at 0x35fcf70 to Connection at 0x35438d0> |
value | InternalError(1, "Can't create/write to file '/tmp/#sql_3b9_0.MYI' (Errcode: 13)") |
query | 'SELECT `faq_faq`.`id`, `faq_faq`.`category_id`, `faq_faq`.`service_id`, `faq_faq`.`email`, `faq_faq`.`question`, `faq_faq`.`short_answer`, `faq_faq`.`answer`, `faq_faq`.`date_create`, `faq_faq`.`date_answer`, `faq_faq`.`is_published`, `faq_faq`.`notification` FROM `faq_faq` WHERE `faq_faq`.`is_published` = 1 ORDER BY RAND() LIMIT 1' |
/usr/lib64/python2.7/site-packages/MySQLdb/connections.py
in defaulterrorhandler
error = errorclass, errorvalue
if cursor:
cursor.messages.append(error)
else:
connection.messages.append(error)
del cursor
del connection
raise errorclass, errorvalue...
re_numeric_part = re.compile(r"^(\d+)")
def numeric_part(s):
"""Returns the leading numeric part of a string.
Variable | Value |
---|---|
errorclass | <class '_mysql_exceptions.InternalError'> |
errorvalue | InternalError(1, "Can't create/write to file '/tmp/#sql_3b9_0.MYI' (Errcode: 13)") |
error | (<class '_mysql_exceptions.InternalError'>, InternalError(1, "Can't create/write to file '/tmp/#sql_3b9_0.MYI' (Errcode: 13)")) |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
wsgi.multiprocess | False |
SERVER_SOFTWARE | 'Cherokee/1.2.101 (UNIX)' |
SCRIPT_NAME | u'' |
SERVER_SIGNATURE | '<address>Cherokee Web Server</address>' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/offers/' |
SERVER_PROTOCOL | 'HTTP/1.1' |
QUERY_STRING | '' |
PATH | '/sbin:/usr/sbin:/bin:/usr/bin' |
CONTENT_LENGTH | '0' |
HTTP_USER_AGENT | 'claudebot' |
SERVER_NAME | 'zabclean.ru' |
REMOTE_PORT | '31390' |
wsgi.url_scheme | 'http' |
PATH_TRANSLATED | '/var/www/cherokee/evrochistka/offers/' |
SERVER_PORT | '80' |
uwsgi.node | 'EuroGW' |
SERVER_ADDR | '95.189.98.242' |
DOCUMENT_ROOT | '/var/www/cherokee/evrochistka' |
wsgi.input | <uwsgi._Input object at 0x33de7f0> |
HTTP_HOST | 'zabclean.ru' |
SCRIPT_URL | '/offers/' |
HTTPS | 'off' |
wsgi.multithread | False |
REQUEST_URI | '/offers/' |
HTTP_ACCEPT | '*/*' |
wsgi.version | (1, 0) |
GATEWAY_INTERFACE | 'CGI/1.1' |
wsgi.run_once | False |
wsgi.errors | <open file 'wsgi_input', mode 'w' at 0x2f6af60> |
REMOTE_ADDR | '54.226.155.151' |
uwsgi.version | '0.9.8.6' |
wsgi.file_wrapper | '' |
CSRF_COOKIE | 'Y7Yg73WNKTFQjMbspMNZ7mozhYmdF1ql' |
settings
Setting | Value |
---|---|
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'ru-RU' |
ROOT_URLCONF | 'urls' |
MANAGERS | () |
DEFAULT_CHARSET | 'utf-8' |
THUMBNAIL_UPSCALE | True |
STATIC_ROOT | '' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
FILE_UPLOAD_PERMISSIONS | None |
ADMIN_TOOLS_APP_INDEX_DASHBOARD | 'dashboard.CustomAppIndexDashboard' |
URL_VALIDATOR_USER_AGENT | 'Django/1.4.3 (https://www.djangoproject.com)' |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
ADMIN_FOR | () |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M') |
DATABASES | {'default': {'ENGINE': 'django.db.backends.mysql', 'HOST': '', 'NAME': 'evrochistka', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'Asia/Yakutsk', 'USER': 'root'}} |
SERVER_EMAIL | 'root@localhost' |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DEFAULT_CONTENT_TYPE | 'text/html' |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | [] |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION': ''}} |
THUMBNAIL_STORAGE | 'django.core.files.storage.FileSystemStorage' |
SESSION_COOKIE_PATH | '/' |
THUMBNAIL_REDIS_DB | 0 |
USE_X_FORWARDED_HOST | False |
THUMBNAIL_PREFIX | 'cache/' |
MIDDLEWARE_CLASSES | ('django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'apps.pages.middleware.PageFallbackMiddleware', 'pagination.middleware.PaginationMiddleware') |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
THUMBNAIL_DUMMY | False |
FILE_UPLOAD_TEMP_DIR | None |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'django.utils.log.dictConfig' |
SEND_BROKEN_LINK_EMAILS | False |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
THUMBNAIL_IDENTIFY | 'identify' |
WSGI_APPLICATION | None |
TEMPLATE_DEBUG | True |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
FORCE_SCRIPT_NAME | None |
CACHE_BACKEND | 'locmem://' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
THUMBNAIL_ENGINE | 'sorl.thumbnail.engines.pil_engine.Engine' |
THUMBNAIL_REDIS_PORT | 6379 |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
SESSION_FILE_PATH | None |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | ('admin_tools', 'admin_tools.theming', 'admin_tools.menu', 'admin_tools.dashboard', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'apps.siteblocks', 'apps.pages', 'apps.equipment', 'apps.faq', 'apps.services', 'pagination', 'sorl.thumbnail') |
LANGUAGES | (('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')) |
DATABASE_ENGINE | 'django.db.backends.mysql' |
STATICFILES_DIRS | () |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
THUMBNAIL_BACKEND | 'sorl.thumbnail.base.ThumbnailBackend' |
MONTH_DAY_FORMAT | 'F j' |
LOGIN_URL | '/accounts/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
TIME_FORMAT | 'P' |
THUMBNAIL_REDIS_PASSWORD | u'********************' |
DATE_INPUT_FORMATS | ('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y') |
CSRF_COOKIE_NAME | 'csrftoken' |
EMAIL_HOST_PASSWORD | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
CACHE_MIDDLEWARE_ALIAS | 'default' |
ROOT_PATH | '/var/www/cherokee/evrochistka' |
SESSION_SAVE_EVERY_REQUEST | False |
ADMIN_MEDIA_PREFIX | '/media/' |
NUMBER_GROUPING | 0 |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGGING | {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} |
THUMBNAIL_CONVERT | 'convert' |
IGNORABLE_404_URLS | () |
LOCALE_PATHS | () |
THUMBNAIL_COLORSPACE | 'RGB' |
TEMPLATE_STRING_IF_INVALID | '' |
COMMENTS_ALLOW_PROFANITIES | False |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
FIXTURE_DIRS | () |
EMAIL_HOST | 'localhost' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '/var/www/cherokee/evrochistka/static/' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | () |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
THUMBNAIL_REDIS_HOST | 'localhost' |
MEDIA_URL | '/static/' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | ('/var/www/cherokee/evrochistka/templates',) |
SITE_ID | 1 |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
STATIC_DOC_ROOT | '/var/www/cherokee/evrochistka/static/' |
DECIMAL_SEPARATOR | '.' |
THUMBNAIL_KEY_PREFIX | u'********************' |
SHORT_DATE_FORMAT | 'm/d/Y' |
THUMBNAIL_KVSTORE | 'sorl.thumbnail.kvstores.cached_db_kvstore.KVStore' |
THUMBNAIL_DUMMY_RATIO | 1.5 |
THUMBNAIL_QUALITY | 95 |
PROJECT_NAME | 'evrochistka' |
TEST_RUNNER | 'django.test.simple.DjangoTestSuiteRunner' |
THUMBNAIL_DUMMY_SOURCE | 'http://placekitten.com/%(width)s/%(height)s' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
TIME_ZONE | 'Asia/Yakutsk' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
ADMIN_TOOLS_INDEX_DASHBOARD | 'dashboard.CustomIndexDashboard' |
DEFAULT_TABLESPACE | '' |
TEMPLATE_CONTEXT_PROCESSORS | ('django.contrib.auth.context_processors.auth', 'django.core.context_processors.request', 'apps.utils.context_processors.custom_proc') |
THUMBNAIL_DEBUG | False |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'settings' |
USE_ETAGS | False |
LANGUAGES_BIDI | ('he', 'ar', 'fa') |
DEFAULT_INDEX_TABLESPACE | '' |
INTERNAL_IPS | () |
STATIC_URL | None |
EMAIL_PORT | 1025 |
USE_TZ | False |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
THUMBNAIL_CACHE_TIMEOUT | 315360000 |
CACHE_MIDDLEWARE_SECONDS | 600 |
THUMBNAIL_FORMAT | 'JPEG' |
DATETIME_INPUT_FORMATS | ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y') |
ADMIN_MEDIA_ROOT | '/var/www/cherokee/evrochistka/media/' |
EMAIL_HOST_USER | '' |
PROFANITIES_LIST | u'********************' |
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.