float() argument must be a string or a number
Request Method: | GET |
---|---|
Request URL: | http://yogagimalai.com/center/contacts/ |
Django Version: | 1.5.4 |
Exception Type: | TypeError |
Exception Value: | float() argument must be a string or a number |
Exception Location: | /www/.envs/yogagimalai/src/django-orginfo/orginfo/backends/api_2gis.py in get_map_url, line 23 |
Python Executable: | /www/.envs/yogagimalai/bin/python |
Python Version: | 2.7.6 |
Python Path: | ['/www/apps/yogagimalai.com/yogagimalai', '/www/.envs/yogagimalai/bin', '/www/.envs/yogagimalai/src/johnny-cache', '/www/.envs/yogagimalai/src/django-orginfo', '/www/.envs/yogagimalai/lib/python2.7', '/www/.envs/yogagimalai/lib/python2.7/plat-x86_64-linux-gnu', '/www/.envs/yogagimalai/lib/python2.7/lib-tk', '/www/.envs/yogagimalai/lib/python2.7/lib-old', '/www/.envs/yogagimalai/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/www/.envs/yogagimalai/local/lib/python2.7/site-packages'] |
Server time: | Втр, 19 Мар 2024 06:38:29 +0500 |
In template /www/apps/yogagimalai.com/yogagimalai/yogagimalai/templates/orginfo/include/office_list_item.html
, error at line 5
1 | {% load orginfo_tags %} |
---|---|
2 | <div class="office-list-item list-item clearfix {{ cls }}"> |
3 | <div class="list-item-image image image_style_border"> |
4 | <a class="image__link" href="{{ office.get_absolute_url }}" title="{{ office.name }}"> |
5 | <img class="image__img" src="{% map_url_2gis office 15 map_width map_height %}" alt="{{ office.name }}"/> |
6 | </a> |
7 | </div> |
8 | |
9 | <div class="list-item-body_with_image office-list-item__body"> |
10 | {% include 'orginfo/include/vcard.html' %} |
11 | </div> |
12 | |
13 | <div class="list-item-bottom"> |
14 | <a class="list-item-btn btn" href="{{ office.get_absolute_url }}" title="{{ office.name }}">Подробнее <i class="btn__icon">☛</i></a> |
15 | </div> |
/www/.envs/yogagimalai/local/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
raise ValueError("The view %s.%s didn't return an HttpResponse object." % (callback.__module__, view_name))
# If the response supports deferred rendering, apply template
# response middleware and the render the response
if hasattr(response, 'render') and callable(response.render):
for middleware_method in self._template_response_middleware:
response = middleware_method(request, response)
response = response.render()...
except http.Http404 as e:
logger.warning('Not Found: %s', request.path,
extra={
'status_code': 404,
'request': request
Variable | Value |
---|---|
callback_args | () |
resolver_match | ResolverMatch(func=<function OfficeListView at 0x7f183fd4f668>, args=(), kwargs={}, url_name='office_list', app_name='None', namespace='') |
middleware_method | <bound method ToolbarMiddleware.process_view of <cms.middleware.toolbar.ToolbarMiddleware object at 0x7f1840623cd0>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f18458ae090> |
request | "<WSGIRequest\npath:/center/contacts/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_HOST': 'yogagimalai.com',\n 'HTTP_REMOTE_HOST': '54.224.52.210',\n 'HTTP_USER_AGENT': 'claudebot',\n 'HTTP_X_FORWARDED_FOR': '54.224.52.210',\n 'HTTP_X_FORWARDED_PROTOCOL': 'http',\n 'HTTP_X_REAL_IP': '54.224.52.210',\n 'PATH_INFO': u'/center/contacts/',\n 'QUERY_STRING': '',\n 'RAW_URI': '/center/contacts/',\n 'REMOTE_ADDR': '54.224.52.210',\n 'REMOTE_PORT': '80',\n 'REQUEST_METHOD': 'GET',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'yogagimalai.com',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SOFTWARE': 'gunicorn/18.0',\n 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>,\n 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>,\n 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>,\n 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
callback | <function OfficeListView at 0x7f183fd4f668> |
resolver | <RegexURLResolver 'yogagimalai.urls' (None:None) ^/> |
callback_kwargs | {} |
response | <django.template.response.TemplateResponse object at 0x7f183f085050> |
urlconf | 'yogagimalai.urls' |
/www/.envs/yogagimalai/local/lib/python2.7/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Returns the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content...
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
self | <django.template.response.TemplateResponse object at 0x7f183f085050> |
retval | <django.template.response.TemplateResponse object at 0x7f183f085050> |
/www/.envs/yogagimalai/local/lib/python2.7/site-packages/django/template/response.py
in rendered_content
This *does not* set the final content of the response. To set the
response content, you must either call render(), or set the
content explicitly using the value of this property.
"""
template = self.resolve_template(self.template_name)
context = self.resolve_context(self.context_data)
content = template.render(context)...
return content
def add_post_render_callback(self, callback):
"""Adds a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
self | <django.template.response.TemplateResponse object at 0x7f183f085050> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
template | <django.template.base.Template object at 0x7f183f085750> |
/www/.envs/yogagimalai/local/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 0x7f183f085750> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 0x7f183f085750> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <ExtendsNode: extends "orginfo/base.html"> |
self | [<ExtendsNode: extends "orginfo/base.html">] |
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <ExtendsNode: extends "orginfo/base.html"> |
self | [<ExtendsNode: extends "orginfo/base.html">] |
e | TypeError('float() argument must be a string or a number',) |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 | <ExtendsNode: extends 'page.html'> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f183fa92f10> |
compiled_parent | <django.template.base.Template object at 0x7f183f1fdd10> |
self | <ExtendsNode: extends "orginfo/base.html"> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 0x7f183f1fdd10> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <ExtendsNode: extends 'page.html'> |
self | [<ExtendsNode: extends 'page.html'>] |
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <ExtendsNode: extends 'page.html'> |
self | [<ExtendsNode: extends 'page.html'>] |
e | TypeError('float() argument must be a string or a number',) |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 | <ExtendsNode: extends "page_full.html"> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f183fa92f10> |
compiled_parent | <django.template.base.Template object at 0x7f183f129a90> |
self | <ExtendsNode: extends 'page.html'> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 0x7f183f129a90> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <ExtendsNode: extends "page_full.html"> |
self | [<ExtendsNode: extends "page_full.html">] |
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <ExtendsNode: extends "page_full.html"> |
self | [<ExtendsNode: extends "page_full.html">] |
e | TypeError('float() argument must be a string or a number',) |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 | <ExtendsNode: extends "base_site.html"> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f183fa92f10> |
compiled_parent | <django.template.base.Template object at 0x7f183f9ae710> |
self | <ExtendsNode: extends "page_full.html"> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 0x7f183f9ae710> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <ExtendsNode: extends "base_site.html"> |
self | [<ExtendsNode: extends "base_site.html">] |
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <ExtendsNode: extends "base_site.html"> |
self | [<ExtendsNode: extends "base_site.html">] |
e | TypeError('float() argument must be a string or a number',) |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 | <ExtendsNode: extends 'base.html'> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f183fa92f10> |
compiled_parent | <django.template.base.Template object at 0x7f183f47c0d0> |
self | <ExtendsNode: extends "base_site.html"> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 0x7f183f47c0d0> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <ExtendsNode: extends 'base.html'> |
self | [<ExtendsNode: extends 'base.html'>] |
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 as 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 | TypeError('float() argument must be a string or a number',) |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 0x7f183f5af990> |
blocks | {u'body': <Block Node: body. Contents: []>, u'body_cls': <Block Node: body_cls. Contents: []>, u'link': <Block Node: link. Contents: []>, u'meta': <Block Node: meta. Contents: []>, u'title': <Block Node: title. Contents: [<Tag: page_attribute>]>} |
block_context | <django.template.loader_tags.BlockContext object at 0x7f183fa92f10> |
n | <Block Node: body. Contents: []> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
compiled_parent | <django.template.base.Template object at 0x7f183f1e2bd0> |
self | <ExtendsNode: extends 'base.html'> |
/www/.envs/yogagimalai/local/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 0x7f183f1e2bd0> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Tag: render_block> |
bit | u'\n \n ' |
bits | [u'', u'\n', u'', u'\n<!DOCTYPE html>\n<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="ru"> <![endif]-->\n<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="ru"> <![endif]-->\n<!--[if IE 8]> <html class="no-js lt-ie9" lang="ru"> <![endif]-->\n<!--[if gt IE 8]><!--> <html class="no-js" lang="ru"> <!--<![endif]-->\n<head>\n <meta charset="utf-8">\n <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">\n <title>', u'\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f', u'</title>\n <meta name="description" content="', u'', u'" />\n <meta name="keywords" content="', u'', u'" />\n <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0, width=device-width" />\n\t\n\t\n ', u'', u'\n\n <link rel="shortcut icon" type="image/x-icon" href="', u'/st/', u'img/favicon.ico" />\n\n ', u'\n <link href="/st/css/style.css?40a11666" rel="stylesheet"/>\n ', u'\n\n ', u'', u'\n \n '] |
self | [<django.template.defaulttags.LoadNode object at 0x7f183f5af990>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f183f5af690>, <Text Node: ' <!DOCTYPE html> <!--[if '>, <Block Node: title. Contents: [<Tag: page_attribute>]>, <Text Node: '</title> <meta name="'>, <Tag: page_attribute>, <Text Node: '" /> <meta name="keyw'>, <Tag: page_attribute>, <Text Node: '" /> <meta name="view'>, <Block Node: meta. Contents: []>, <Text Node: ' <link rel="shortcut'>, <Variable Node: STATIC_URL>, <Text Node: 'img/favicon.ico" /> '>, <django_assets.templatetags.assets.AssetsNode object at 0x7f183f3026d0>, <Text Node: ' '>, <Block Node: link. Contents: []>, <Text Node: ' '>, <Tag: render_block>] |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Tag: render_block> |
self | [<django.template.defaulttags.LoadNode object at 0x7f183f5af990>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f183f5af690>, <Text Node: ' <!DOCTYPE html> <!--[if '>, <Block Node: title. Contents: [<Tag: page_attribute>]>, <Text Node: '</title> <meta name="'>, <Tag: page_attribute>, <Text Node: '" /> <meta name="keyw'>, <Tag: page_attribute>, <Text Node: '" /> <meta name="view'>, <Block Node: meta. Contents: []>, <Text Node: ' <link rel="shortcut'>, <Variable Node: STATIC_URL>, <Text Node: 'img/favicon.ico" /> '>, <django_assets.templatetags.assets.AssetsNode object at 0x7f183f3026d0>, <Text Node: ' '>, <Block Node: link. Contents: []>, <Text Node: ' '>, <Tag: render_block>] |
e | TypeError('float() argument must be a string or a number',) |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/lib/python2.7/site-packages/classytags/core.py
in render
"""
INTERNAL method to prepare rendering
Usually you should not override this method, but rather use render_tag.
"""
items = self.kwargs.items()
kwargs = dict([(key, value.resolve(context)) for key, value in items])
kwargs.update(self.blocks)
return self.render_tag(context, **kwargs)...
def render_tag(self, context, **kwargs):
"""
The method you should override in your custom tags
"""
raise NotImplementedError
Variable | Value |
---|---|
key | 'postprocessor' |
items | [('name', <classytags.values.StringValue object at 0x7f183f5af250>), ('postprocessor', <TemplateConstant: None>)] |
self | <Tag: render_block> |
value | <TemplateConstant: None> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
kwargs | {'name': u'css', 'nodelist': [<Text Node: ' <script src="'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f183f14ff10>, <Text Node: '"></script> '>, <IfNode>, <Text Node: ' <!-- Google Tag Manager'>, <IfNode>, <Text Node: ' '>, <Block Node: body_cls. Contents: []>, <Text Node: '"> '>, <Block Node: body. Contents: []>, <Text Node: ' '>, <Tag: render_block>], 'postprocessor': None} |
/www/.envs/yogagimalai/local/lib/python2.7/site-packages/sekizai/templatetags/sekizai_tags.py
in render_tag
Argument('postprocessor', required=False, default=None, resolve=False),
parser_class=SekizaiParser,
)
def render_tag(self, context, name, postprocessor, nodelist):
if not validate_context(context):
return nodelist.render(context)
rendered_contents = nodelist.render(context)...
varname = get_varname()
data = '\n'.join(context[varname][name])
if postprocessor:
func = import_processor(postprocessor)
data = func(context, data, name)
return '%s\n%s' % (data, rendered_contents)
Variable | Value |
---|---|
self | <Tag: render_block> |
nodelist | [<Text Node: ' <script src="'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f183f14ff10>, <Text Node: '"></script> '>, <IfNode>, <Text Node: ' <!-- Google Tag Manager'>, <IfNode>, <Text Node: ' '>, <Block Node: body_cls. Contents: []>, <Text Node: '"> '>, <Block Node: body. Contents: []>, <Text Node: ' '>, <Tag: render_block>] |
name | u'css' |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
postprocessor | None |
/www/.envs/yogagimalai/local/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_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Block Node: body. Contents: []> |
bit | u'">\n ' |
bits | [u'\n <script src="', u'/st/js/libs/modernizr.js', u'"></script>\n\n ', u'\n <!--script>\n var _gaq = _gaq || [];\n _gaq.push([\'_setAccount\', \'UA-5510980-19\']);\n _gaq.push([\'_trackPageview\']);\n\n (function() {\n var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;\n ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';\n var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);\n })();\n </script-->\n\t\t\n\t\t<!-- Yandex.Metrika counter -->\n<!--script type="text/javascript">\n (function (d, w, c) {\n (w[c] = w[c] || []).push(function() {\n try {\n w.yaCounter43184179 = new Ya.Metrika({\n id:43184179,\n clickmap:true,\n trackLinks:true,\n accurateTrackBounce:true\n });\n } catch(e) { }\n });\n\n var n = d.getElementsByTagName("script")[0],\n s = d.createElement("script"),\n f = function () { n.parentNode.insertBefore(s, n); };\n s.type = "text/javascript";\n s.async = true;\n s.src = "https://mc.yandex.ru/metrika/watch.js";\n\n if (w.opera == "[object Opera]") {\n d.addEventListener("DOMContentLoaded", f, false);\n } else { f(); }\n })(document, window, "yandex_metrika_callbacks");\n</script-->\n<!-- /Yandex.Metrika counter -->\n\n ', u'\n\t<!-- Google Tag Manager -->\n<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':\nnew Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],\nj=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=\n\'https://www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);\n})(window,document,\'script\',\'dataLayer\',\'GTM-MMV5R94\');</script>\n<!-- End Google Tag Manager -->\n</head>\n<body class="', u'', u' ', u'', u'">\n '] |
self | [<Text Node: ' <script src="'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f183f14ff10>, <Text Node: '"></script> '>, <IfNode>, <Text Node: ' <!-- Google Tag Manager'>, <IfNode>, <Text Node: ' '>, <Block Node: body_cls. Contents: []>, <Text Node: '"> '>, <Block Node: body. Contents: []>, <Text Node: ' '>, <Tag: render_block>] |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Block Node: body. Contents: []> |
self | [<Text Node: ' <script src="'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f183f14ff10>, <Text Node: '"></script> '>, <IfNode>, <Text Node: ' <!-- Google Tag Manager'>, <IfNode>, <Text Node: ' '>, <Block Node: body_cls. Contents: []>, <Text Node: '"> '>, <Block Node: body. Contents: []>, <Text Node: ' '>, <Tag: render_block>] |
e | TypeError('float() argument must be a string or a number',) |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f183fa92f10> |
block | <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
self | <Block Node: body. Contents: []> |
/www/.envs/yogagimalai/local/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_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Block Node: page. Contents: []> |
bit | u'\n <div class="breakline">\n <i class="breakline__img"></i>\n </div>\n </div>\n\n\t\t\n <div class="page__main">\n\t\t\t\t\n ' |
bits | [u'\n ', u'', u'\n\n <div class="page-background" style="background-image:url(', u'/st/', u'img/bg/bg_big.jpg)">\n <i></i>\n </div>\n\n <div class="header">\n ', u'\n <a class="logo" href="/" title="\u0426\u0435\u043d\u0442\u0440 \u043f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0438 \u0438 \u0439\u043e\u0433\u0438 \u0413\u0438\u043c\u0430\u043b\u0430\u0438">\n <img class="logo__img" src="/st/img/yogagimalai.png" alt="\u0426\u0435\u043d\u0442\u0440 \u043f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0438 \u0438 \u0439\u043e\u0433\u0438 \u0413\u0438\u043c\u0430\u043b\u0430\u0438"/>\n </a>\n\n <div class="header__top clearfix">\n <div class="header__top-left">\n <div class="header-masters">\n <a class="header-master1" href="/center/masters/svami-parmanand/" title="\u0421\u0432\u0430\u043c\u0438 \u041f\u0430\u0440\u043c\u0430\u043d\u0430\u043d\u0434 \u0414\u0436\u0438 \u041c\u0430\u0445\u0430\u0440\u0430\u0434\u0436"> </a>\n <a class="header-master2" href="/center/masters/surya-kant/" title="\u0421\u0443\u0440\u044c\u044f \u041a\u0430\u043d\u0442 \u041f\u0430\u0440\u043c\u0430\u043d\u0430\u043d\u0434 \u0414\u0436\u0438"> </a>\n <img class="header-masters__bg" src="/st/img/masters_new.png"/>\n</div>\n </div>\n\n <div class="header__top-right">\n <div class="top__links"></div>\n\n <div class=\'vcard\'><div class=\'fn org\'><span class=\'value-title\' title=\'\u0426\u0435\u043d\u0442\u0440 \u043f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0438 \u0438 \u0439\u043e\u0433\u0438 \xab\u0413\u0438\u043c\u0430\u043b\u0430\u0438\xbb (\u0432\u0441\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u044b \u0446\u0435\u043d\u0442\u0440\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435)\'></span></div><div class=\'tel\'><span class=\'value-title\' title=\'+7 (347) 242-33-36\'><a class=\'tel__link\' href=\'tel:+7-347-242-33-36\' title=\'+7 (347) 242-33-36 \'><span class=\'region-code \'>(347)</span> 242-33-36\n \n </a></span><span class=\'value-title\' title=\'+7 (917) 791-48-61\'><a class=\'tel__link\' href=\'tel:+7-917-791-48-61\' title=\'+7 (917) 791-48-61 \'><span class=\'country-code\'>+7</span> <span class=\'region-code region-code-normal\'>(917)</span> 791-48-61\n \n </a></span></div><div class=\'adr\'><span class=\'locality\'>\u0433. \u0423\u0444\u0430</span>, \n <span class=\'street-address\'>\u0443\u043b. \u041c\u0438\u0440\u0430, 22</span></div><span class=\'geo\'><span class=\'latitude\'><span class=\'value-title\' title=\'54,81723\'></span></span><span class=\'longitude\'><span class=\'value-title\' title=\'56,069597\'></span></span></span><div class=\'email-list\'><span class="email-item"><a class=\'email\' href=\'mailto:info@yogagimalai.com\' title=\'info@yogagimalai.com \'>\n info@yogagimalai.com\n </a></span></div></div>\n\n <div class="search">\n\n <form class="search__form" action=\'\' method=\'GET\'>\n <input class="search__input" type="text" name="q" id="id_q" maxlength="80" placeholder="\u041f\u043e\u0438\u0441\u043a" value="" />\n <input class="search__button" type="submit" value="\u041d\u0430\u0439\u0442\u0438" />\n </form>\n </div>\n\t\t\t\t\t\n\n </div>\n </div>\n ', u'\n </div>\n\t<div id="menu_icon" style="background-image:url(', u'/st/', u'img/icons/menu.png)"></div>\n <nav class="nav" role="navigation">\n\t<span class="close nav__item-link"></span>\n\t', u'\n\n <ul class="nav_layout_normal">\n \n <li class="nav__item nav__item_num_7 nav__item_pos_1 nav__item_state_current">\n <a class="nav__item-link" href="/center/about/" title="\u0426\u0435\u043d\u0442\u0440">\n <span class="nav__item-link-span">\u0426\u0435\u043d\u0442\u0440 <span class="nav__item-link-subtitle">\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e \u043d\u0430\u0448\u0435\u043c \u0446\u0435\u043d\u0442\u0440\u0435</span></span>\n </a>\n </li>\n \n <li class="nav__item nav__item_num_7 nav__item_pos_2 ">\n <a class="nav__item-link" href="/schedule/" title="\u0420\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435 ">\n <span class="nav__item-link-span">\u0420\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435 <span class="nav__item-link-subtitle">\u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0439\u043e\u0433\u0430-\u0437\u0430\u043d\u044f\u0442\u0438\u0439 \u0432 "\u0413\u0438\u043c\u0430\u043b\u0430\u044f\u0445" \u0438 \u043f\u043e \u0433\u043e\u0440\u043e\u0434\u0443</span></span>\n </a>\n </li>\n \n <li class="nav__item nav__item_num_7 nav__item_pos_3 ">\n <a class="nav__item-link" href="/yoga/about/" title="\u0419\u043e\u0433\u0430">\n <span class="nav__item-link-span">\u0419\u043e\u0433\u0430 <span class="nav__item-link-subtitle">\u0432\u0441\u0451 \u043e \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0439\u043e\u0433\u0438 \u0432 \u043d\u0430\u0448\u0435\u043c \u0446\u0435\u043d\u0442\u0440\u0435</span></span>\n </a>\n </li>\n \n <li class="nav__item nav__item_num_7 nav__item_pos_4 ">\n <a class="nav__item-link" href="/psychology/about/" title="\u041f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u044f">\n <span class="nav__item-link-span">\u041f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u044f <span class="nav__item-link-subtitle">\u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u044f \u043f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0430, \u0442\u0440\u0435\u043d\u0438\u043d\u0433\u0438</span></span>\n </a>\n </li>\n \n <li class="nav__item nav__item_num_7 nav__item_pos_5 ">\n <a class="nav__item-link" href="/store/" title="\u041f\u0440\u043e\u0434\u0443\u043a\u0446\u0438\u044f">\n <span class="nav__item-link-span">\u041f\u0440\u043e\u0434\u0443\u043a\u0446\u0438\u044f <span class="nav__item-link-subtitle">\u043f\u0440\u043e\u0434\u0443\u043a\u0446\u0438\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430</span></span>\n </a>\n </li>\n \n <li class="nav__item nav__item_num_7 nav__item_pos_6 ">\n <a class="nav__item-link" href="http://yogagimalai.wordpress.com" title="\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435 \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435">\n <span class="nav__item-link-span">\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435 \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 <span class="nav__item-link-subtitle"></span></span>\n </a>\n </li>\n \n <li class="nav__item nav__item_num_7 nav__item_pos_7 ">\n <a class="nav__item-link" href="/federation/about/" title="\u0424\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044f \u0439\u043e\u0433\u0438 \u0420\u0411">\n <span class="nav__item-link-span">\u0424\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044f \u0439\u043e\u0433\u0438 \u0420\u0411 <span class="nav__item-link-subtitle"></span></span>\n </a>\n </li>\n \n </ul>\n\n', u'</nav>\n\n <div class="page">\n <div class="page__top">\n ', u'\n <header class="page__header">\n <div class="breadcrumbs">\n \n <a class="breadcrumbs__link" href="/">\u0413\u043b\u0430\u0432\u043d\u0430\u044f</a> / \n \n <a class="breadcrumbs__link" href="/center/">\u0426\u0435\u043d\u0442\u0440</a> / \n \n \n \n</div>\n\n <h1 class="page__title">\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f</h1>\n\n\n <nav class="subnav" role="navigation">\n\n <ul class="subnav_layout_simple">\n \n <li class="subnav__item ">\n <a class="subnav__item-link" href="/center/about/" title="\u041e \u043d\u0430\u0448\u0435\u043c \u0446\u0435\u043d\u0442\u0440\u0435">\n <span class="subnav__item-link-span">\u041e \u043d\u0430\u0448\u0435\u043c \u0446\u0435\u043d\u0442\u0440\u0435</span>\n </a>\n </li>\n \n <li class="subnav__item ">\n <a class="subnav__item-link" href="/center/history/" title="\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0446\u0435\u043d\u0442\u0440\u0430">\n <span class="subnav__item-link-span">\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0446\u0435\u043d\u0442\u0440\u0430</span>\n </a>\n </li>\n \n <li class="subnav__item ">\n <a class="subnav__item-link" href="/center/events/" title="\u041d\u0430\u0448\u0430 \u0436\u0438\u0437\u043d\u044c">\n <span class="subnav__item-link-span">\u041d\u0430\u0448\u0430 \u0436\u0438\u0437\u043d\u044c</span>\n </a>\n </li>\n \n <li class="subnav__item ">\n <a class="subnav__item-link" href="/center/masters/" title="\u041d\u0430\u0448\u0438 \u0423\u0447\u0438\u0442\u0435\u043b\u044f">\n <span class="subnav__item-link-span">\u041d\u0430\u0448\u0438 \u0423\u0447\u0438\u0442\u0435\u043b\u044f</span>\n </a>\n </li>\n \n <li class="subnav__item ">\n <a class="subnav__item-link" href="/center/team/" title="\u041d\u0430\u0448\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430">\n <span class="subnav__item-link-span">\u041d\u0430\u0448\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430</span>\n </a>\n </li>\n \n <li class="subnav__item ">\n <a class="subnav__item-link" href="/center/reviews/" title="\u041e\u0442\u0437\u044b\u0432\u044b \u0438 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438">\n <span class="subnav__item-link-span">\u041e\u0442\u0437\u044b\u0432\u044b \u0438 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438</span>\n </a>\n </li>\n \n <li class="subnav__item ">\n <a class="subnav__item-link" href="/center/press/" title="\u0421\u041c\u0418 \u043e \u043d\u0430\u0441">\n <span class="subnav__item-link-span">\u0421\u041c\u0418 \u043e \u043d\u0430\u0441</span>\n </a>\n </li>\n \n <li class="subnav__item subnav__item_state_current">\n <a class="subnav__item-link" href="/center/contacts/" title="\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f">\n <span class="subnav__item-link-span">\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f</span>\n </a>\n </li>\n \n <li class="subnav__item ">\n <a class="subnav__item-link" href="/center/gift/" title="\u041f\u043e\u0434\u0430\u0440\u043e\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b">\n <span class="subnav__item-link-span">\u041f\u043e\u0434\u0430\u0440\u043e\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b</span>\n </a>\n </li>\n \n </ul>\n\n</nav>\n </header>\n', u'\n <div class="breakline">\n <i class="breakline__img"></i>\n </div>\n </div>\n\n\t\t\n <div class="page__main">\n\t\t\t\t\n '] |
self | [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>] |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Block Node: page. Contents: []> |
self | [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>] |
e | TypeError('float() argument must be a string or a number',) |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f183fa92f10> |
block | <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
self | <Block Node: page. Contents: []> |
/www/.envs/yogagimalai/local/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_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]> |
bit | u'\n <div class="clearfix">\n <section class="page__content">\n ' |
bits | [u'\n <div class="clearfix">\n <section class="page__content">\n '] |
self | [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>] |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]> |
self | [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>] |
e | TypeError('float() argument must be a string or a number',) |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f183fa92f10> |
block | <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
self | <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]> |
/www/.envs/yogagimalai/local/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_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <For Node: for office in office_list, tail_len: 3> |
bit | u'\n\n ' |
bits | [u'\n <div class="office-list list">\n ', u'\n<div class="office-list-item list-item clearfix office-list-item__type_main">\n <div class="list-item-image image image_style_border">\n <a class="image__link" href="/center/contacts/1/" title="">\n <img class="image__img" src="http://static.maps.api.2gis.ru/1.0?markers=56.0695970,54.8172300&size=480,335&zoom=15" alt=""/>\n </a>\n </div>\n\n <div class="list-item-body_with_image office-list-item__body">\n <div class=\'vcard\'><div class=\'fn org\'><a class=\'value\' href=\'/center/contacts/1/\' title=\'\u0426\u0435\u043d\u0442\u0440 \u043f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0438 \u0438 \u0439\u043e\u0433\u0438 \xab\u0413\u0438\u043c\u0430\u043b\u0430\u0438\xbb (\u0432\u0441\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u044b \u0446\u0435\u043d\u0442\u0440\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435)\'>\u0426\u0435\u043d\u0442\u0440 \u043f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0438 \u0438 \u0439\u043e\u0433\u0438 \xab\u0413\u0438\u043c\u0430\u043b\u0430\u0438\xbb (\u0432\u0441\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u044b \u0446\u0435\u043d\u0442\u0440\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435)</a></div><div class=\'adr\'><span class=\'locality\'>\u0433. \u0423\u0444\u0430</span>, \n <span class=\'street-address\'>\u0443\u043b. \u041c\u0438\u0440\u0430, 22</span></div><span class=\'geo\'><span class=\'latitude\'><span class=\'value-title\' title=\'54,81723\'></span></span><span class=\'longitude\'><span class=\'value-title\' title=\'56,069597\'></span></span></span><div class=\'workhours\'><p>\u043f\u043d-\u043f\u0442 09:00-21:30; \u0441\u0431 09:00-16:00</p></div><div class=\'tel\'><span class=\'value-title\' title=\'+7 (347) 242-33-36\'><a class=\'tel__link\' href=\'tel:+7-347-242-33-36\' title=\'+7 (347) 242-33-36 \'><span class=\'region-code \'>(347)</span> 242-33-36\n \n </a></span><span class=\'value-title\' title=\'+7 (917) 791-48-61\'><a class=\'tel__link\' href=\'tel:+7-917-791-48-61\' title=\'+7 (917) 791-48-61 \'><span class=\'country-code\'>+7</span> <span class=\'region-code region-code-normal\'>(917)</span> 791-48-61\n \n </a></span></div><div class=\'email-list\'><span class="email-item"><a class=\'email\' href=\'mailto:info@yogagimalai.com\' title=\'info@yogagimalai.com \'>\n info@yogagimalai.com\n </a></span></div></div>\n </div>\n\n <div class="list-item-bottom">\n <a class="list-item-btn btn" href="/center/contacts/1/" title="">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 <i class="btn__icon">\u261b</i></a>\n </div>\n</div>', u'\n\n '] |
self | [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>] |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <For Node: for office in office_list, tail_len: 3> |
self | [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>] |
e | TypeError('float() argument must be a string or a number',) |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/lib/python2.7/site-packages/django/template/defaulttags.py
in render
else:
context[self.loopvars[0]] = item
# In TEMPLATE_DEBUG mode provide source of the node which
# actually raised the exception
if settings.TEMPLATE_DEBUG:
for node in self.nodelist_loop:
try:
nodelist.append(node.render(context))...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
else:
for node in self.nodelist_loop:
Variable | Value |
---|---|
node | <django.template.loader_tags.ConstantIncludeNode object at 0x7f183f0d3550> |
len_values | 2 |
pop_context | False |
e | TypeError('float() argument must be a string or a number',) |
item | <Office: Йога в Сипайлово (спортклуб "Катана")> |
loop_dict | {u'counter': 2, u'counter0': 1, u'first': False, u'last': True, u'parentloop': {}, u'revcounter': 1, u'revcounter0': 0} |
self | <For Node: for office in office_list, tail_len: 3> |
parentloop | {} |
i | 1 |
values | [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>] |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
nodelist | [u'\n ', u'\n<div class="office-list-item list-item clearfix ">\n <div class="list-item-image image image_style_border">\n <a class="image__link" href="/center/contacts/14/" title="">\n <img class="image__img" src="http://static.maps.api.2gis.ru/1.0?markers=55.9995110,54.7066300&size=360,250&zoom=15" alt=""/>\n </a>\n </div>\n\n <div class="list-item-body_with_image office-list-item__body">\n <div class=\'vcard\'><div class=\'fn org\'><a class=\'value\' href=\'/center/contacts/14/\' title=\'\u0419\u043e\u0433\u0430 \u0432 \u0417\u0435\u043b\u0435\u043d\u043e\u0439 \u0420\u043e\u0449\u0435 ("\u0426\u0435\u043d\u0442\u0440 \u0434\u043e\u043a\u0442\u043e\u0440\u0430 \u0411\u0443\u0431\u043d\u043e\u0432\u0441\u043a\u043e\u0433\u043e")\'>\u0419\u043e\u0433\u0430 \u0432 \u0417\u0435\u043b\u0435\u043d\u043e\u0439 \u0420\u043e\u0449\u0435 ("\u0426\u0435\u043d\u0442\u0440 \u0434\u043e\u043a\u0442\u043e\u0440\u0430 \u0411\u0443\u0431\u043d\u043e\u0432\u0441\u043a\u043e\u0433\u043e")</a></div><div class=\'adr\'><span class=\'locality\'>\u0433. \u0423\u0444\u0430</span>, \n <span class=\'street-address\'>\u0443\u043b. \u0421\u0442. \u041a\u0443\u0432\u044b\u043a\u0438\u043d\u0430, 16/4</span></div><span class=\'geo\'><span class=\'latitude\'><span class=\'value-title\' title=\'54,70663\'></span></span><span class=\'longitude\'><span class=\'value-title\' title=\'55,999511\'></span></span></span><div class=\'workhours\'><p>\u0432\u0442, \u0447\u0442 20.15-21.30, \u0441\u0431 9.15-10.45</p></div><div class=\'tel\'><span class=\'value-title\' title=\'+7 (917)044-40-60\'><a class=\'tel__link\' href=\'tel:+7-917044-40-60\' title=\'+7 (917)044-40-60 \u0415\u0432\u0433\u0435\u043d\u0438\u0439\'><span class=\'country-code\'>+7</span> <span class=\'region-code region-code-normal\'>(917)</span> 044-40-60\n \n </a> \u0415\u0432\u0433\u0435\u043d\u0438\u0439\n </span><span class=\'value-title\' title=\'+7 (917)343-56-37\'><a class=\'tel__link\' href=\'tel:+7-917343-56-37\' title=\'+7 (917)343-56-37 \u042d\u043b\u044c\u0432\u0435\u0440\u0430\'><span class=\'country-code\'>+7</span> <span class=\'region-code region-code-normal\'>(917)</span> 343-56-37\n \n </a> \u042d\u043b\u044c\u0432\u0435\u0440\u0430\n </span></div><div class=\'email-list\'></div></div>\n </div>\n\n <div class="list-item-bottom">\n <a class="list-item-btn btn" href="/center/contacts/14/" title="">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 <i class="btn__icon">\u261b</i></a>\n </div>\n</div>', u'\n ', u'\n '] |
unpack | False |
/www/.envs/yogagimalai/local/lib/python2.7/site-packages/django/template/loader_tags.py
in render
if settings.TEMPLATE_DEBUG:
raise
self.template = None
def render(self, context):
if not self.template:
return ''
return self.render_template(self.template, context)...
class IncludeNode(BaseIncludeNode):
def __init__(self, template_name, *args, **kwargs):
super(IncludeNode, self).__init__(*args, **kwargs)
self.template_name = template_name
Variable | Value |
---|---|
self | <django.template.loader_tags.ConstantIncludeNode object at 0x7f183f0d3550> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/lib/python2.7/site-packages/django/template/loader_tags.py
in render_template
def render_template(self, template, context):
values = dict([(name, var.resolve(context)) for name, var
in six.iteritems(self.extra_context)])
if self.isolated_context:
return template.render(context.new(values))
context.update(values)
output = template.render(context)...
context.pop()
return output
class ConstantIncludeNode(BaseIncludeNode):
def __init__(self, template_path, *args, **kwargs):
super(ConstantIncludeNode, self).__init__(*args, **kwargs)
Variable | Value |
---|---|
name | u'show_org_link' |
self | <django.template.loader_tags.ConstantIncludeNode object at 0x7f183f0d3550> |
values | {u'map_height': 250, u'map_width': 360, u'show_org': 1, u'show_org_link': 1} |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
var | <django.template.base.FilterExpression object at 0x7f183fa92350> |
template | <django.template.base.Template object at 0x7f183f1fdf90> |
/www/.envs/yogagimalai/local/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 0x7f183f1fdf90> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 0x7f183f1fdf90> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <django.template.base.SimpleNode object at 0x7f183f1fd410> |
bit | u'">\n <img class="image__img" src="' |
bits | [u'', u'\n<div class="office-list-item list-item clearfix ', u'', u'">\n <div class="list-item-image image image_style_border">\n <a class="image__link" href="', u'/center/contacts/13/', u'" title="', u'', u'">\n <img class="image__img" src="'] |
self | [<django.template.defaulttags.LoadNode object at 0x7f183f1fd550>, <Text Node: ' <div class="office-list-'>, <Variable Node: cls>, <Text Node: '"> <div class="list-i'>, <Variable Node: office.get_absolute_url>, <Text Node: '" title="'>, <Variable Node: office.name>, <Text Node: '"> <img class'>, <django.template.base.SimpleNode object at 0x7f183f1fd410>, <Text Node: '" alt="'>, <Variable Node: office.name>, <Text Node: '"/> </a> </di'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183f1fd890>, <Text Node: ' </div> <div cla'>, <Variable Node: office.get_absolute_url>, <Text Node: '" title="'>, <Variable Node: office.name>, <Text Node: '">????????? <i class="btn'>] |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <django.template.base.SimpleNode object at 0x7f183f1fd410> |
self | [<django.template.defaulttags.LoadNode object at 0x7f183f1fd550>, <Text Node: ' <div class="office-list-'>, <Variable Node: cls>, <Text Node: '"> <div class="list-i'>, <Variable Node: office.get_absolute_url>, <Text Node: '" title="'>, <Variable Node: office.name>, <Text Node: '"> <img class'>, <django.template.base.SimpleNode object at 0x7f183f1fd410>, <Text Node: '" alt="'>, <Variable Node: office.name>, <Text Node: '"/> </a> </di'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183f1fd890>, <Text Node: ' </div> <div cla'>, <Variable Node: office.get_absolute_url>, <Text Node: '" title="'>, <Variable Node: office.name>, <Text Node: '">????????? <i class="btn'>] |
e | TypeError('float() argument must be a string or a number',) |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
/www/.envs/yogagimalai/local/lib/python2.7/site-packages/django/template/base.py
in render
def dec(func):
params, varargs, varkw, defaults = getargspec(func)
class SimpleNode(TagHelperNode):
def render(self, context):
resolved_args, resolved_kwargs = self.get_resolved_arguments(context)
return func(*resolved_args, **resolved_kwargs)...
function_name = (name or
getattr(func, '_decorated_function', func).__name__)
compile_func = partial(generic_tag_compiler,
params=params, varargs=varargs, varkw=varkw,
defaults=defaults, name=function_name,
Variable | Value |
---|---|
resolved_kwargs | {} |
self | <django.template.base.SimpleNode object at 0x7f183f1fd410> |
context | [{'False': False, 'None': None, 'True': True}, {u'paginator': None, u'office_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], 'main_office': <Office: Центр психологии и йоги «Гималаи» (все инструкторы центра взаимозаменяемые)>, u'object_list': [<Office: Йога в Зеленой Роще ("Центр доктора Бубновского")>, <Office: Йога в Сипайлово (спортклуб "Катана")>], u'page_obj': None, u'is_paginated': False, u'view': <orginfo.views.OfficeListView object at 0x7f183f27c090>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f183f085090>}, {u'request': <WSGIRequest path:/center/contacts/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{u'CSRF_COOKIE': u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'yogagimalai.com', 'HTTP_REMOTE_HOST': '54.224.52.210', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.224.52.210', 'HTTP_X_FORWARDED_PROTOCOL': 'http', 'HTTP_X_REAL_IP': '54.224.52.210', 'PATH_INFO': u'/center/contacts/', 'QUERY_STRING': '', 'RAW_URI': '/center/contacts/', 'REMOTE_ADDR': '54.224.52.210', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'yogagimalai.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/18.0', 'gunicorn.socket': <socket._socketobject object at 0x7f183f44a2f0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1847c191e0>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7f1845c9ec18>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f183f27cbd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {u'STATIC_URL': '/st/'}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f183f085c50>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f183f27c510>}, {}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {})}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' <div class="page-ba'>, <Variable Node: STATIC_URL>, <Text Node: 'img/bg/bg_big.jpg)"> '>, <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>, <Text Node: ' </div> <div id="men'>, <Variable Node: STATIC_URL>, <Text Node: 'img/icons/menu.png)"></di'>, <Tag: show_menu>, <Text Node: '</nav> <div class="p'>, <Block Node: page_top. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' <div class="'>, <Block Node: page. Contents: []>, <Text Node: ' </div> <'>, <Block Node: secondary. Contents: [<Text Node: ' <div class="secondar'>, <Tag: placeholder>, <Text Node: ' </div> '>]>, <Text Node: ' <footer class="foot'>, <django.template.defaulttags.NowNode object at 0x7f183f1e2110>, <Text Node: ' </div> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/akhandparamdham.png"/'>, <Variable Node: STATIC_URL>, <Text Node: 'img/paramyoga.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/valenciya.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogashafali.png"/> '>, <Variable Node: STATIC_URL>, <Text Node: 'img/lampstudio.png" alt="'>]>}, {'block': <Block Node: header. Contents: [<Text Node: ' <a class="lo'>, <Variable Node: STATIC_URL>, <Text Node: 'img/yogagimalai.png" alt='>, <django.template.base.InclusionNode object at 0x7f183f13f510>, <Text Node: ' </div> '>, <django.template.base.InclusionNode object at 0x7f183f1e2490>, <Text Node: ' <di'>, <Variable Node: query>, <Text Node: '" /> '>]>}, {'to_level': 3, 'extra_active': 1, 'namespace': None, 'from_level': 1, 'template': 'menu/menu.html', 'extra_inactive': 1, 'children': [<Navigation Node: Центр>, <Navigation Node: Расписание >, <Navigation Node: Йога>, <Navigation Node: Психология>, <Navigation Node: Продукция>, <Navigation Node: Полезное и интересное>, <Navigation Node: Федерация йоги РБ>]}, {'block': <Block Node: page_top. Contents: [<Text Node: ' <header class="page_'>, <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>, <Text Node: '</div> <h1 class'>, <Block Node: page_title. Contents: [<Tag: page_attribute>]>, <Text Node: '</h1> <nav clas'>, <Tag: show_menu>, <Text Node: '</nav> </header> '>]>}, {'block': <Block Node: breadcrumbs. Contents: [<Tag: show_breadcrumb>]>}, {'block': <Block Node: page. Contents: [<Text Node: ' <div class="clearfix'>, <Block Node: content. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </section> '>, <Block Node: subnav. Contents: [<Text Node: ' '>, <Tag: show_menu>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: sidebar. Contents: [<Text Node: ' '>, <Tag: placeholder>, <Text Node: ' '>]>, <Text Node: ' </aside> </d'>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="office-l'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f183fa929d0>, <Text Node: ' '>, <For Node: for office in office_list, tail_len: 3>, <Text Node: ' </div> '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'office': <Office: Йога в Сипайлово (спортклуб "Катана")>}, {u'show_org': 1, u'show_org_link': 1, u'map_width': 360, u'map_height': 250}] |
func | <function map_url_2gis at 0x7f183fa8c410> |
resolved_args | [<Office: Йога в Сипайлово (спортклуб "Катана")>, 15, 360, 250] |
/www/.envs/yogagimalai/src/django-orginfo/orginfo/templatetags/orginfo_tags.py
in map_url_2gis
def map_url_2gis(office, zoom, width, height):
backend = Api2Gis()
return backend.get_map_url(
longtitude=office.geo_longtitude,
latitude=office.geo_latitude,
zoom=zoom,
width=width,
height=height...
)
@register.inclusion_tag('orginfo/include/map_gmaps.html', takes_context=True)
def map_gmap(context, office, zoom):
backend = ApiGmaps()
Variable | Value |
---|---|
width | 360 |
backend | <orginfo.backends.api_2gis.Api2Gis object at 0x7f183f17edd0> |
zoom | 15 |
office | <Office: Йога в Сипайлово (спортклуб "Катана")> |
height | 250 |
/www/.envs/yogagimalai/src/django-orginfo/orginfo/backends/api_2gis.py
in get_map_url
GEOCODE_URL = 'http://catalog.api.2gis.ru//geo/search/?'
WEB_API_VERSION = "1.3"
WEB_API_KEY = "rujrdp3400"
def get_map_url(self, longtitude, latitude, zoom, width, height):
''' returns URL of static yandex map '''
params = [
'markers=%0.7f,%0.7f' % (float(longtitude), float(latitude),),...
'size=%s,%s' % (width, height,),
'zoom=%s' % zoom
]
return self.STATIC_MAPS_URL + '&'.join(params)
def geocode(self, address, timeout=2):
Variable | Value |
---|---|
longtitude | None |
self | <orginfo.backends.api_2gis.Api2Gis object at 0x7f183f17edd0> |
zoom | 15 |
height | 250 |
width | 360 |
latitude | None |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
SERVER_NAME | 'yogagimalai.com' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/18.0' |
SCRIPT_NAME | u'' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f183f27cbd0> |
REQUEST_METHOD | 'GET' |
HTTP_HOST | 'yogagimalai.com' |
PATH_INFO | u'/center/contacts/' |
wsgi.multithread | False |
QUERY_STRING | '' |
HTTP_CONNECTION | 'close' |
HTTP_X_REAL_IP | '54.224.52.210' |
HTTP_ACCEPT | '*/*' |
HTTP_USER_AGENT | 'claudebot' |
wsgi.version | (1, 0) |
REMOTE_PORT | '80' |
RAW_URI | '/center/contacts/' |
REMOTE_ADDR | '54.224.52.210' |
wsgi.run_once | False |
wsgi.errors | <open file '<stderr>', mode 'w' at 0x7f1847c191e0> |
wsgi.multiprocess | True |
wsgi.url_scheme | 'http' |
gunicorn.socket | <socket._socketobject object at 0x7f183f44a2f0> |
HTTP_X_FORWARDED_PROTOCOL | 'http' |
SERVER_PORT | '80' |
HTTP_X_FORWARDED_FOR | '54.224.52.210' |
wsgi.file_wrapper | '' |
CSRF_COOKIE | u'AYNcnJk6N6YHbJcAEDlaOgtDc2rT2nPr' |
HTTP_REMOTE_HOST | '54.224.52.210' |
yogagimalai.settings
Setting | Value |
---|---|
YEAR_MONTH_FORMAT | 'F Y' |
EMAIL_USE_TLS | True |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
DJANGO_CONF | 'default' |
LANGUAGE_CODE | 'ru' |
ROOT_URLCONF | 'yogagimalai.urls' |
MANAGERS | (('Gizar Akhatov', 'admin@gizar.ru'),) |
AVANGARD_SHOP_SIGN | 'xdXeJAZpZSzyOkwWZvjv' |
THUMBNAIL_UPSCALE | True |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.PickleSerializer' |
STATIC_ROOT | '/www/apps/yogagimalai.com/yogagimalai/st' |
ALLOWED_HOSTS | ['.yogagimalai.com', '.yogagimalai.ru', 'yoga.lampstudio.ru'] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SEND_BROKEN_LINK_EMAILS | False |
ADMIN_TOOLS_APP_INDEX_DASHBOARD | 'yogagimalai.dashboard.CustomAppIndexDashboard' |
AWS_STORAGE_BUCKET_NAME_STATIC | 'st.yogagimalai.com' |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django_assets.finders.AssetsFinder') |
ASSETS_URL_EXPIRE | None |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
AWS_STORAGE_BUCKET_NAME | 'files.yogagimalai.com' |
ADMIN_FOR | () |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M') |
DATABASES | {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '', 'NAME': 'yogagimalai_com', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'Asia/Yekaterinburg', 'USER': 'yogagimalai'}} |
AVANGARD_SHOP_PASSWORD | u'********************' |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DEFAULT_CONTENT_TYPE | 'text/html' |
AVANGARD_ORDER_URL | 'https://www.avangard.ru/iacq/h2h/reg' |
ASSETS_MANIFEST | <webassets.version.CacheManifest object at 0x7f183fa9dbd0> |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | [] |
CMS_MENU_TITLE_OVERWRITE | True |
ASSETS_AUTO_BUILD | False |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'johnny.backends.memcached.MemcachedCache', 'JOHNNY_CACHE': True, 'KEY_PREFIX': u'********************', 'LOCATION': ['127.0.0.1:11211']}} |
PASSWORD_HASHERS | u'********************' |
SERVER_EMAIL | 'root@localhost' |
SESSION_COOKIE_PATH | '/' |
REDACTOR_UPLOAD | 'uploads/' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
THUMBNAIL_PREFIX | 'thumb/' |
DISABLED_APPS | [] |
CMS_TEMPLATES | (('page.html', u'\u0428\u0430\u0431\u043b\u043e\u043d \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441 \u043f\u0440\u0430\u0432\u044b\u043c \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u043e\u043c'), ('page_left.html', u'\u0428\u0430\u0431\u043b\u043e\u043d \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441 \u043b\u0435\u0432\u044b\u043c \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u043e\u043c'), ('page_full.html', u'\u0428\u0430\u0431\u043b\u043e\u043d \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0431\u0435\u0437 \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0430'), ('home.html', u'\u0428\u0430\u0431\u043b\u043e\u043d \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b')) |
MIDDLEWARE_CLASSES | ['johnny.middleware.LocalStoreClearMiddleware', 'johnny.middleware.QueryCacheMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware'] |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
CMS_LANGUAGES | {1: [{'code': 'ru', 'fallbacks': ['ru'], 'hide_untranslated': False, 'name': 'Russian', 'public': True, 'redirect_on_fallback': True}], <class cms.utils.conf.VERIFIED at 0x7f1840ab92c0>: True, 'default': {'fallbacks': ['ru'], 'hide_untranslated': False, 'public': False, 'redirect_on_fallback': True}} |
LANGUAGE_COOKIE_NAME | 'django_language' |
PICASA_USER | 'yogagimalai' |
DEFAULT_INDEX_TABLESPACE | '' |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'django.utils.log.dictConfig' |
ASSETS_DEBUG | False |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
CMS_REDIRECTS | True |
WSGI_APPLICATION | 'yogagimalai.wsgi.application' |
TEMPLATE_DEBUG | True |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
AWS_S3_SECURE_URLS | False |
USE_L10N | True |
DEFAULT_CHARSET | 'utf-8' |
SESSION_COOKIE_SECURE | False |
ASSETS_MODULES | ['yogagimalai.assets'] |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
SESSION_FILE_PATH | None |
AWS_ACCESS_KEY_ID | u'********************' |
AWS_CALLING_FORMAT | 2 |
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.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'south', 'django_assets', 'pytils', 'cms', 'mptt', 'menus', 'south', 'sekizai', 'storages', 'sorl.thumbnail', 'yogagimalai.apps.redactor', 'orginfo', 'yogagimalai.apps.notifications', 'yogagimalai.apps.pages', 'yogagimalai.apps.widgets', 'yogagimalai.apps.slider', 'yogagimalai.apps.photo_albums', 'yogagimalai.apps.masters', 'yogagimalai.apps.team', 'yogagimalai.apps.events', 'yogagimalai.apps.event_reports', 'yogagimalai.apps.requests', 'yogagimalai.apps.order', 'yogagimalai.apps.timetable', 'yogagimalai.apps.campaign', 'yogagimalai.apps.service', 'yogagimalai.apps.price', 'yogagimalai.apps.blog', 'yogagimalai.apps.psychology'] |
LANGUAGES_BIDI | ('he', 'ar', 'fa') |
ASSETS_VERSIONS | 'hash' |
COMMENTS_ALLOW_PROFANITIES | False |
STATICFILES_DIRS | ('/www/apps/yogagimalai.com/yogagimalai/static',) |
LOAD_PATH | [] |
SECURE_PROXY_SSL_HEADER | None |
SESSION_COOKIE_HTTPONLY | True |
AWS_SECRET_ACCESS_KEY | u'********************' |
DEBUG_PROPAGATE_EXCEPTIONS | False |
MEDIA_URL | '/media/' |
MONTH_DAY_FORMAT | 'F j' |
LOGIN_URL | '/accounts/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
TIME_FORMAT | 'P' |
REDACTOR_OPTIONS | {'fixed': True, 'lang': 'ru', 'plugins': ['fullscreen']} |
AVANGARD_SHOP_ID | '13882' |
AUTH_USER_MODEL | 'auth.User' |
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') |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
EMAIL_HOST_PASSWORD | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
ADMIN_MEDIA_PREFIX | '/st/admin/' |
NUMBER_GROUPING | 0 |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
DEFAULT_FILE_STORAGE | 'storages.backends.s3boto.S3BotoStorage' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
ADMIN_TOOLS_THEMING_CSS | 'css/admin.css' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
ASSETS_CACHE | <webassets.cache.FilesystemCache object at 0x7f183fa3d490> |
PROJECT_ROOT | '/www/apps/yogagimalai.com/yogagimalai/yogagimalai' |
DECIMAL_SEPARATOR | '.' |
CMS_SEO_FIELDS | True |
IGNORABLE_404_URLS | () |
LOCALE_PATHS | () |
JOHNNY_MIDDLEWARE_KEY_PREFIX | u'********************' |
TEMPLATE_STRING_IF_INVALID | '' |
LOGOUT_URL | '/accounts/logout/' |
AVANGARD_PAY_URL | 'https://www.avangard.ru/iacq/pay' |
FIXTURE_DIRS | () |
EMAIL_HOST | 'smtp.sendgrid.net' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '/www/apps/yogagimalai.com/yogagimalai/media' |
URL_MAPPING | {} |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | (('Gizar Akhatov', 'admin@gizar.ru'),) |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | '\xd0\xa6\xd0\xb5\xd0\xbd\xd1\x82\xd1\x80 \xd0\xbf\xd1\x81\xd0\xb8\xd1\x85\xd0\xbe\xd0\xbb\xd0\xbe\xd0\xb3\xd0\xb8\xd0\xb8 \xd0\xb8 \xd0\xb9\xd0\xbe\xd0\xb3\xd0\xb8 \xd0\x93\xd0\xb8\xd0\xbc\xd0\xb0\xd0\xbb\xd0\xb0\xd0\xb8 <site@yogagimalai.com>' |
AVANGARD_AV_SIGN | 'dIqdYGqSqaUcdbymVVVE' |
MAIN_ROOT | '/www/apps/yogagimalai.com/yogagimalai' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | ('/www/apps/yogagimalai.com/yogagimalai/yogagimalai/templates',) |
THUMBNAIL_KVSTORE | 'sorl.thumbnail.kvstores.redis_kvstore.KVStore' |
SITE_ID | 1 |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
LOGGING | {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'logfile': {'backupCount': 50, 'class': 'logging.handlers.RotatingFileHandler', 'filename': './logs/debug.log', 'maxBytes': 10485760}, 'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['logfile'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} |
PREPEND_WWW | False |
SHORT_DATE_FORMAT | 'm/d/Y' |
SECRET_KEY | u'********************' |
TEST_RUNNER | 'django.test.simple.DjangoTestSuiteRunner' |
ASSETS_UPDATER | 'timestamp' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
TIME_ZONE | 'Asia/Yekaterinburg' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
ADMIN_TOOLS_INDEX_DASHBOARD | 'yogagimalai.dashboard.CustomIndexDashboard' |
DEFAULT_TABLESPACE | '' |
TEMPLATE_CONTEXT_PROCESSORS | ['django.core.context_processors.request', 'django.core.context_processors.static', 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'cms.context_processors.media', 'sekizai.context_processors.sekizai'] |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'yogagimalai.settings' |
USE_ETAGS | False |
LANGUAGES | (('ru', 'Russian'),) |
FILE_UPLOAD_TEMP_DIR | None |
INTERNAL_IPS | () |
STATIC_URL | '/st/' |
EMAIL_PORT | 587 |
USE_TZ | False |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
CMS_PLACEHOLDER_CONF | {'content': {'plugins': ['TextPlugin', 'VideoPlugin', 'ServiceGroupPlugin', 'BlogEntryPlugin', 'PsychologyQuestionLatestPlugin']}, 'page_top': {'plugins': ['SliderPlugin']}, 'secondary': {'plugins': ['ReportAlbumLatestPlugin']}, 'sidebar': {'plugins': ['NewsLatestPlugin', 'SeminarEventForPagePlugin', 'MastersPlugin', 'WisdomPlugin', 'TimetablePlugin', 'ServicePlugin', 'ImageWidgetPlugin', 'VKGroupPlugin', 'ReportReviewPlugin', 'VideoPlugin', 'PsychologyQuestionButtonPlugin', 'TextPlugin']}} |
ABSOLUTE_URL_OVERRIDES | {} |
BLOG_RSS_URL | 'http://yogagimalai.wordpress.com/feed/' |
CACHE_MIDDLEWARE_SECONDS | 600 |
THUMBNAIL_FORMAT | 'PNG' |
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') |
EMAIL_HOST_USER | 'apikey' |
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.