The source file does not appear to be an image
Request Method: | GET |
---|---|
Request URL: | https://6422570.ru/agents/aleksej-fedorovich/ |
Django Version: | 1.11.8 |
Exception Type: | InvalidImageFormatError |
Exception Value: | The source file does not appear to be an image |
Exception Location: | /var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/easy_thumbnails/files.py in generate_thumbnail, line 388 |
Python Executable: | /usr/bin/uwsgi-core |
Python Version: | 3.5.3 |
Python Path: | ['.', '', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages', '/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/odf', '/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/odf', '/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/odf', '/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/odf', '/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/odf', '/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/odf', '/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/odf'] |
Server time: | Чт, 28 Мар 2024 12:04:01 +0300 |
In template /var/www/vhosts/6422570.ru/httpdocs/project/templates/index.html
, error at line 27
17 | <link rel="stylesheet" href="/static/css/post.css"> |
---|---|
18 | {% endblock %} |
19 | <link rel="canonical" href="{{request.path}}"/> |
20 | <link rel="stylesheet" href="/static/libs/css/libcss.min.css"> |
21 | <link rel="stylesheet" href="/static/css/main3.css"> |
22 | <link rel="stylesheet" href="/static/css/main.css"> |
23 | <link rel="stylesheet" href="/static/css/main.custom.css"> |
24 | |
25 | <link rel="stylesheet" href="/static/css/fixes.css"> |
26 | <link rel="stylesheet" href="/static/css/jquery.mCustomScrollbar.css"> |
27 | <link rel="shortcut icon" href="/static/img/favicon.png"> |
28 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" /> |
29 | <title>{% block seo_title %}{{object.get_seo_title}}{% endblock %}</title> |
30 | {% block meta_description %}<meta name="Description" content="{{object.get_meta_description}}">{% endblock %} |
31 | {% block meta_keywords %}<meta name="Keywords" content="{{object.get_meta_keywords}}">{% endblock %} |
32 | <meta name="yandex-verification" content="77601f55e31ec0ba" /> |
33 | <!--Удалить--><meta name="yandex-verification" content="8c43a36b9c1d4c82" /> |
34 | <!--<meta name="google-site-verification" content="zxgazxq4ewKC-TILslTnSfqn8Tk6EsmR6L-M1ZsPj3g" />--> |
35 | <meta name="google-site-verification" content="Q5SkJQT0vEPWshRidnv5nq_AG7w0sXx77kNuHQoZ5es" /> |
36 | <meta name="facebook-domain-verification" content="56fwdxp0ii13mt5a7kj9jn2ifokc4c" /> |
37 | {% block dop_meta %}{% endblock %} |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response, assigned=available_attrs(get_response))
def inner(request):
try:
response = get_response(request)...
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | InvalidImageFormatError('The source file does not appear to be an image',) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f41ee781be0>> |
request | <WSGIRequest: GET '/agents/aleksej-fedorovich/'> |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function get_agent at 0x7f41dfa3be18> |
callback_args | () |
callback_kwargs | {'slug': 'aleksej-fedorovich'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f41dfc108d0>> |
request | <WSGIRequest: GET '/agents/aleksej-fedorovich/'> |
resolver | <RegexURLResolver 'main.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=agents.views.get_agent, args=(), kwargs={'slug': 'aleksej-fedorovich'}, url_name=agent, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f41ee781be0> |
wrapped_callback | <function get_agent at 0x7f41dfa3be18> |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function get_agent at 0x7f41dfa3be18> |
callback_args | () |
callback_kwargs | {'slug': 'aleksej-fedorovich'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f41dfc108d0>> |
request | <WSGIRequest: GET '/agents/aleksej-fedorovich/'> |
resolver | <RegexURLResolver 'main.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=agents.views.get_agent, args=(), kwargs={'slug': 'aleksej-fedorovich'}, url_name=agent, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f41ee781be0> |
wrapped_callback | <function get_agent at 0x7f41dfa3be18> |
./agents/views.py
in get_agent
favorite = False
if str(prod.id) in str(prods):
favorite = True
objects_list.append(prod.render_product_item(favorite, False))
smi = agent.agents_pages.all()
return render(request, 'agents/agent.html', locals())...
def get_related_objects(request):
slug = request.GET.get('slug', False)
if slug:
agent = Agent.objects.get(slug=slug)
Variable | Value |
---|---|
agent | <Agent: Алексей Федорович> |
object | {'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. ' 'менеджер по продажам Алексей Федорович', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги ' 'агентства недвижимости, стоимость услуг агентства ' 'недвижимости в спб, купить квартиру через агентство, ' 'продажа квартиры через агентство недвижимости', 'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа ' 'недвижимости»', 'get_title': 'менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'} |
objects | <ProductQueryset []> |
objects_list | [] |
prods | '' |
request | <WSGIRequest: GET '/agents/aleksej-fedorovich/'> |
settings | <Settings: Настройки сайта> |
slug | 'aleksej-fedorovich' |
smi | <TreeQuerySet []> |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/django/shortcuts.py
in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Returns a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)...
return HttpResponse(content, content_type, status)
def redirect(to, *args, **kwargs):
"""
Returns an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'agent': <Agent: Алексей Федорович>, 'object': {'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите ' 'на сайте. менеджер по продажам Алексей ' 'Федорович', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, ' 'услуги агентства недвижимости, стоимость ' 'услуг агентства недвижимости в спб, купить ' 'квартиру через агентство, продажа квартиры ' 'через агентство недвижимости', 'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа ' 'недвижимости»', 'get_title': 'менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'objects': <ProductQueryset []>, 'objects_list': [], 'prods': '', 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'settings': <Settings: Настройки сайта>, 'slug': 'aleksej-fedorovich', 'smi': <TreeQuerySet []>} |
request | <WSGIRequest: GET '/agents/aleksej-fedorovich/'> |
status | None |
template_name | 'agents/agent.html' |
using | None |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/django/template/loader.py
in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)...
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'agent': <Agent: Алексей Федорович>, 'object': {'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите ' 'на сайте. менеджер по продажам Алексей ' 'Федорович', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, ' 'услуги агентства недвижимости, стоимость ' 'услуг агентства недвижимости в спб, купить ' 'квартиру через агентство, продажа квартиры ' 'через агентство недвижимости', 'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа ' 'недвижимости»', 'get_title': 'менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'objects': <ProductQueryset []>, 'objects_list': [], 'prods': '', 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'settings': <Settings: Настройки сайта>, 'slug': 'aleksej-fedorovich', 'smi': <TreeQuerySet []>} |
request | <WSGIRequest: GET '/agents/aleksej-fedorovich/'> |
template | <django.template.backends.django.Template object at 0x7f41df6b62b0> |
template_name | 'agents/agent.html' |
using | None |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/django/template/backends/django.py
in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)...
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
request | <WSGIRequest: GET '/agents/aleksej-fedorovich/'> |
self | <django.template.backends.django.Template object at 0x7f41df6b62b0> |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)...
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
self | <django.template.base.Template object at 0x7f41df48b6a0> |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/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"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
self | <django.template.base.Template object at 0x7f41df48b6a0> |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/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 = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ' ' |
bits | [' '] |
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
node | <ExtendsNode: extends "index.html"> |
self | [<TextNode: ' '>, <ExtendsNode: extends "index.html">] |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
self | <ExtendsNode: extends "index.html"> |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/django/template/loader_tags.py
in render
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.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)...
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f41df6bdf60> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n\t\t<main class="clearfix"'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'>, <For Node: for block in blocks, tail_len: 13>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div'>, <Variable Node: searсh_map>, <TextNode: '?&ymap=Y">Найти на карте<'>, <For Node: for cat in sale_cats, tail_len: 9>, <TextNode: '\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t'>, <Variable Node: sale_cats.0.get_absolute_url>, <TextNode: '" class="show_more">Смотр'>, <For Node: for cat in sale_cats, tail_len: 7>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</di'>, <For Node: for cat in lease_cats, tail_len: 9>, <TextNode: '\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t'>, <Variable Node: lease_cats.0.get_absolute_url>, <TextNode: '" class="show_more">Смотр'>, <For Node: for cat in lease_cats, tail_len: 7>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</di'>, <IfNode>, <TextNode: '\n\t\t</main>\n\t\t'>]>, 'css': <Block Node: css. Contents: [<TextNode: '\n\t\t\t<link rel="stylesheet'>]>, 'dop_form': <Block Node: dop_form. Contents: [<TextNode: '\n\t\t\t<div id="form_consult'>]>, 'dop_meta': <Block Node: dop_meta. Contents: []>, 'footer': <Block Node: footer. Contents: [<TextNode: '\n\t\t'>, <django.template.library.InclusionNode object at 0x7f41df87ea90>, <TextNode: '\n\t\t'>]>, 'header': <Block Node: header. Contents: [<TextNode: '\n\t\t'>, <django.template.library.InclusionNode object at 0x7f41df2e4240>, <TextNode: '\n\t\t'>]>, 'js': <Block Node: js. Contents: [<TextNode: '\n\t\t'>]>, 'main_js': <Block Node: main_js. Contents: [<TextNode: '\n\t\t<script defer src="/st'>]>, 'meta_description': <Block Node: meta_description. Contents: [<TextNode: '<meta name="Description" '>, <Variable Node: object.get_meta_description>, <TextNode: '">'>]>, 'meta_keywords': <Block Node: meta_keywords. Contents: [<TextNode: '<meta name="Keywords" con'>, <Variable Node: object.get_meta_keywords>, <TextNode: '">'>]>, 'seo_title': <Block Node: seo_title. Contents: [<Variable Node: object.get_seo_title>]>} |
compiled_parent | <django.template.base.Template object at 0x7f41df959438> |
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
node | <django.template.defaulttags.LoadNode object at 0x7f41df2e4ba8> |
self | <ExtendsNode: extends "index.html"> |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/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"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
self | <django.template.base.Template object at 0x7f41df959438> |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/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 = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n\t\t' |
bits | ['', '\n' '<!DOCTYPE html>\n' '<html lang="en" prefix="og: http://ogp.me/ns#">\n' '\t<head>\n' '\t\t<meta name="google-site-verification" ' 'content="EWtsc985-2e_skuSNdZeVHg78Ymacc5L4Ne17r8-g6g" />\n' '\t\t<meta charset="UTF-8">\n' '\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\n' '\t\t<meta http-equiv="X-UA-Compatible" content="ie=edge">\n' '\n' '\t\t<meta property="og:title" content="', 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', '" />\n' '\t\t<meta property="og:type" content="website" />\n' '\t\t<meta property="og:url" content="https://6422570.ru/" />\n' '\t\t<meta property="og:image" content="/static/img/og_logo.png" />\n' '\t\t<!-- og_logo.png -->\n' '\t\t', '\n' ' <link rel="stylesheet" ' 'href="/static/landings/ipoteka/css/style-page-product.css">\n' ' ', '\n\t\t<link rel="canonical" href="', '/agents/aleksej-fedorovich/', '"/>\n' '\t\t<link rel="stylesheet" href="/static/libs/css/libcss.min.css">\n' '\t\t<link rel="stylesheet" href="/static/css/main3.css">\n' '\t\t<link rel="stylesheet" href="/static/css/main.css">\n' '\t\t<link rel="stylesheet" href="/static/css/main.custom.css">\n' '\n' '\t\t<link rel="stylesheet" href="/static/css/fixes.css">\n' '\t\t<link rel="stylesheet" href="/static/css/jquery.mCustomScrollbar.css">\n' '\t\t<link rel="shortcut icon" href="/static/img/favicon.png">\n' '\t\t<link rel="stylesheet" ' 'href="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" ' '/>\n' '\t\t<title>', 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', '</title>\n\t\t', '<meta name="Description" content="">', '\n\t\t', '<meta name="Keywords" content="агентство недвижимости в санкт петербурге, ' 'услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, ' 'купить квартиру через агентство, продажа квартиры через агентство ' 'недвижимости">', '\n' '\t\t<meta name="yandex-verification" content="77601f55e31ec0ba" />\n' '\t\t<!--Удалить--><meta name="yandex-verification" ' 'content="8c43a36b9c1d4c82" />\n' '\t\t<!--<meta name="google-site-verification" ' 'content="zxgazxq4ewKC-TILslTnSfqn8Tk6EsmR6L-M1ZsPj3g" />-->\n' '\t\t<meta name="google-site-verification" ' 'content="Q5SkJQT0vEPWshRidnv5nq_AG7w0sXx77kNuHQoZ5es" />\n' '\t\t<meta name="facebook-domain-verification" ' 'content="56fwdxp0ii13mt5a7kj9jn2ifokc4c" />\n' '\t\t', '\n' ' <script src="//api-maps.yandex.ru/2.1/?lang=ru_RU" ' 'type="text/javascript"></script>\n' ' <!-- <script src="/static/libs/js/libjs.min.js"></script> -->\n' ' <script src="/static/js/jquery.lazy.min.js"></script>\n' ' \n' ' ', '\n' '\n' '\t\t<script defer ' 'src="https://www.googletagmanager.com/gtag/js?id=UA-114977046-1"></script>\n' '\t\t<script defer type="text/javascript"> \n' '\t\t\tsetTimeout(function(){\n' '\t\t\t\t(function (d, w, c) { (w[c] = w[c] || []).push(function() { try { ' 'w.yaCounter41310094 = new Ya.Metrika2({ id:41310094, clickmap:true, ' 'trackLinks:true, accurateTrackBounce:true, webvisor:true, trackHash:true }); ' '} catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = ' 'd.createElement("script"), f = function () { n.parentNode.insertBefore(s, ' 'n); }; s.type = "text/javascript"; s.async = true; s.src = ' '"https://mc.yandex.ru/metrika/tag.js"; if (w.opera == "[object Opera]") { ' 'd.addEventListener("DOMContentLoaded", f, false); } else { f(); } ' '})(document, window, "yandex_metrika_callbacks2");\n' '\t\t\t\t!function(){var ' 't=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://vk.com/js/api/openapi.js?159",t.onload=function(){VK.Retargeting.Init("VK-RTRG-306510-biZD2"),VK.Retargeting.Hit()},document.head.appendChild(t)}();\n' '\t\t\t\twindow.dataLayer = window.dataLayer || [];\n' '\t\t\t\tfunction gtag(){dataLayer.push(arguments);}\n' "\t\t\t\tgtag('js', new Date());\n" '\n' "\t\t\t\tgtag('config', 'UA-114977046-1');\n" '\t\t\t}, 5000)\n' '\t\t</script>\n' '\n' '\t\t<!-- Go... <trimmed 41814 bytes string> |
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
node | <Block Node: content. Contents: [<TextNode: '\n\t\t<main class="clearfix"'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'>, <For Node: for block in blocks, tail_len: 13>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div'>, <Variable Node: searсh_map>, <TextNode: '?&ymap=Y">Найти на карте<'>, <For Node: for cat in sale_cats, tail_len: 9>, <TextNode: '\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t'>, <Variable Node: sale_cats.0.get_absolute_url>, <TextNode: '" class="show_more">Смотр'>, <For Node: for cat in sale_cats, tail_len: 7>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</di'>, <For Node: for cat in lease_cats, tail_len: 9>, <TextNode: '\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t'>, <Variable Node: lease_cats.0.get_absolute_url>, <TextNode: '" class="show_more">Смотр'>, <For Node: for cat in lease_cats, tail_len: 7>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</di'>, <IfNode>, <TextNode: '\n\t\t</main>\n\t\t'>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f41df2e4ba8>, <TextNode: '\n<!DOCTYPE html>\n<html la'>, <Variable Node: object.get_seo_title>, <TextNode: '" />\n\t\t<meta property="og'>, <Block Node: css. Contents: [<TextNode: '\n\t\t\t<link rel="stylesheet'>]>, <TextNode: '\n\t\t<link rel="canonical" '>, <Variable Node: request.path>, <TextNode: '"/>\n\t\t<link rel="styleshe'>, <Block Node: seo_title. Contents: [<Variable Node: object.get_seo_title>]>, <TextNode: '</title>\n\t\t'>, <Block Node: meta_description. Contents: [<TextNode: '<meta name="Description" '>, <Variable Node: object.get_meta_description>, <TextNode: '">'>]>, <TextNode: '\n\t\t'>, <Block Node: meta_keywords. Contents: [<TextNode: '<meta name="Keywords" con'>, <Variable Node: object.get_meta_keywords>, <TextNode: '">'>]>, <TextNode: '\n\t\t<meta name="yandex-ver'>, <Block Node: dop_meta. Contents: []>, <TextNode: '\n\n\t\t<script defer src="ht'>, <Block Node: header. Contents: [<TextNode: '\n\t\t'>, <django.template.library.InclusionNode object at 0x7f41df2e4240>, <TextNode: '\n\t\t'>]>, <TextNode: '\n\t\t'>, <Block Node: content. Contents: [<TextNode: '\n\t\t<main class="clearfix"'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'>, <For Node: for block in blocks, tail_len: 13>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div'>, <Variable Node: searсh_map>, <TextNode: '?&ymap=Y">Найти на карте<'>, <For Node: for cat in sale_cats, tail_len: 9>, <TextNode: '\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t'>, <Variable Node: sale_cats.0.get_absolute_url>, <TextNode: '" class="show_more">Смотр'>, <For Node: for cat in sale_cats, tail_len: 7>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</di'>, <For Node: for cat in lease_cats, tail_len: 9>, <TextNode: '\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t'>, <Variable Node: lease_cats.0.get_absolute_url>, <TextNode: '" class="show_more">Смотр'>, <For Node: for cat in lease_cats, tail_len: 7>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</di'>, <IfNode>, <TextNode: '\n\t\t</main>\n\t\t'>]>, <TextNode: '\n\n\t\t'>, <Block Node: footer. Contents: [<TextNode: '\n\t\t'>, <django.template.library.InclusionNode object at 0x7f41df87ea90>, <TextNode: '\n\t\t'>]>, <TextNode: '\n\n\t\t<div class="modal_box'>, <django.template.defaulttags.CsrfTokenNode object at 0x7f41dfbc5780>, <TextNode: '\n\t\t\t\t\t\t\t<input type="chec'>, <django.template.defaulttags.CsrfTokenNode object at 0x7f41df45f4e0>, <TextNode: '\n\t\t\t\t\t\t\t<input type="chec'>, <django.template.defaulttags.CsrfTokenNode object at 0x7f41df45f7b8>, <TextNode: '\n\t\t\t\t\t\t\t<input type="chec'>, <django.template.defaulttags.CsrfTokenNode object at 0x7f41df45ff60>, <TextNode: '\n\t\t\t\t\t\t\t<input type="text'>, <Block Node: dop_form. Contents: [<TextNode: '\n\t\t\t<div id="form_consult'>]>, <TextNode: '\n\t\t</div>\n\t\t'>, <django.template.library.InclusionNode object at 0x7f41df45fac8>, <TextNode: '\n\t\t'>, <django.template.library.InclusionNode object at 0x7f41df45f128>, <TextNode: '\n\t\t<div class="modal_butt'>, <django.template.defaulttags.CsrfTokenNode object at 0x7f41df45f6d8>, <TextNode: '</div>\n\n\t\t'>, <django.template.defaulttags.CommentNode object at 0x7f41df2e4ac8>, <TextNode: '\n\n\t\t<script src="/static/'>, <Block Node: main_js. Contents: [<TextNode: '\n\t\t<script defer src="/st'>]>, <TextNode: '\n\t\t<!-- <script src="stat'>, <Block Node: js. Contents: [<TextNode: '\n\t\t'>]>, <TextNode: '\n\n\t\t<script defer src="/s'>] |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
self | <Block Node: content. Contents: [<TextNode: '\n\t\t<main class="clearfix"'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'>, <For Node: for block in blocks, tail_len: 13>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div'>, <Variable Node: searсh_map>, <TextNode: '?&ymap=Y">Найти на карте<'>, <For Node: for cat in sale_cats, tail_len: 9>, <TextNode: '\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t'>, <Variable Node: sale_cats.0.get_absolute_url>, <TextNode: '" class="show_more">Смотр'>, <For Node: for cat in sale_cats, tail_len: 7>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</di'>, <For Node: for cat in lease_cats, tail_len: 9>, <TextNode: '\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t'>, <Variable Node: lease_cats.0.get_absolute_url>, <TextNode: '" class="show_more">Смотр'>, <For Node: for cat in lease_cats, tail_len: 7>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</di'>, <IfNode>, <TextNode: '\n\t\t</main>\n\t\t'>]> |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/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 = type(self)(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)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: '\n <main class="cle'>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <Variable Node: agent.get_name>, <TextNode: '</h1>\n '>, <Variable Node: agent.get_post>, <TextNode: '</i>\n '>, <Variable Node: agent.get_objects_count>, <TextNode: '</i>\n '>, <Variable Node: agent.get_specialty>, <TextNode: '</i>\n '>, <Variable Node: agent.get_phone>, <TextNode: '</span>\n '>, <Variable Node: agent.phone>, <TextNode: '" class="button">\n '>, <Variable Node: agent.email>, <TextNode: '</span>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </di'>, <IfNode>, <TextNode: '\n \n\n '>, <IfNode>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f41df6bdf60> |
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
push | <Block Node: content. Contents: [<TextNode: '\n <main class="cle'>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <Variable Node: agent.get_name>, <TextNode: '</h1>\n '>, <Variable Node: agent.get_post>, <TextNode: '</i>\n '>, <Variable Node: agent.get_objects_count>, <TextNode: '</i>\n '>, <Variable Node: agent.get_specialty>, <TextNode: '</i>\n '>, <Variable Node: agent.get_phone>, <TextNode: '</span>\n '>, <Variable Node: agent.phone>, <TextNode: '" class="button">\n '>, <Variable Node: agent.email>, <TextNode: '</span>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </di'>, <IfNode>, <TextNode: '\n \n\n '>, <IfNode>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n '>]> |
self | <Block Node: content. Contents: [<TextNode: '\n\t\t<main class="clearfix"'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'>, <For Node: for block in blocks, tail_len: 13>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div'>, <Variable Node: searсh_map>, <TextNode: '?&ymap=Y">Найти на карте<'>, <For Node: for cat in sale_cats, tail_len: 9>, <TextNode: '\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t'>, <Variable Node: sale_cats.0.get_absolute_url>, <TextNode: '" class="show_more">Смотр'>, <For Node: for cat in sale_cats, tail_len: 7>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</di'>, <For Node: for cat in lease_cats, tail_len: 9>, <TextNode: '\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t'>, <Variable Node: lease_cats.0.get_absolute_url>, <TextNode: '" class="show_more">Смотр'>, <For Node: for cat in lease_cats, tail_len: 7>, <TextNode: '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</di'>, <IfNode>, <TextNode: '\n\t\t</main>\n\t\t'>]> |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/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 = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('\n' ' </div>\n' ' <div class="capt_block">\n' ' <div class="photo">\n' ' ') |
bits | ['\n' ' <main class="clearfix" id="page-about">\n' '\n' ' <div class="container">\n' ' <div class="row">\n' ' <div class="col-xs-12">\n' ' <div class="about_person_wrapper">\n' ' <div class="rating">\n' ' <img src="/static/img/rate_ico.png" alt="">\n' ' ', '\n' ' </div>\n' ' <div class="capt_block">\n' ' <div class="photo">\n' ' '] |
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
node | <IfNode> |
self | [<TextNode: '\n <main class="cle'>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <Variable Node: agent.get_name>, <TextNode: '</h1>\n '>, <Variable Node: agent.get_post>, <TextNode: '</i>\n '>, <Variable Node: agent.get_objects_count>, <TextNode: '</i>\n '>, <Variable Node: agent.get_specialty>, <TextNode: '</i>\n '>, <Variable Node: agent.get_phone>, <TextNode: '</span>\n '>, <Variable Node: agent.phone>, <TextNode: '" class="button">\n '>, <Variable Node: agent.email>, <TextNode: '</span>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </di'>, <IfNode>, <TextNode: '\n \n\n '>, <IfNode>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n '>] |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
self | <IfNode> |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | (literal <django.template.base.FilterExpression object at 0x7f41df4bc208>) |
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
match | <Image: /products/1570803265.jpg> |
nodelist | [<TextNode: '\n '>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f41df4bc978>, <TextNode: '" alt="">\n '>] |
self | <IfNode> |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/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 = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n <img class="" src="' |
bits | ['\n <img class="" src="'] |
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
node | <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f41df4bc978> |
self | [<TextNode: '\n '>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f41df4bc978>, <TextNode: '" alt="">\n '>] |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
self | <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f41df4bc978> |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/easy_thumbnails/templatetags/thumbnail.py
in render
if raise_errors:
raise TemplateSyntaxError(
"%r is an invalid subsampling level." %
opts['subsampling'])
return self.bail_out(context)
try:
thumbnail = get_thumbnailer(source).get_thumbnail(opts)...
except Exception:
if raise_errors:
raise
return self.bail_out(context)
# Return the thumbnail file url, or put the file on the context.
if self.context_name is None:
Variable | Value |
---|---|
context | [{'False': False, 'True': True, 'None': None}, {}, {}, {'settings': <Settings: Настройки сайта>, 'smi': <TreeQuerySet []>, 'prods': '', 'objects': <ProductQueryset []>, 'objects_list': [], 'object': {'get_seo_title': 'менеджер по продажам Алексей Федорович | «Школа недвижимости»', 'get_meta_keywords': 'агентство недвижимости в санкт петербурге, услуги агентства недвижимости, стоимость услуг агентства недвижимости в спб, купить квартиру через агентство, продажа квартиры через агентство недвижимости', 'get_title': 'менеджер по продажам Алексей Федорович', 'get_meta_decription': '«Школа недвижимости» - Подробнее смотрите на сайте. менеджер по продажам Алексей Федорович', 'title': 'менеджер по продажам Алексей Федорович'}, 'request': <WSGIRequest: GET '/agents/aleksej-fedorovich/'>, 'agent': <Agent: Алексей Федорович>, 'slug': 'aleksej-fedorovich'}] |
key | 'crop' |
m | <_sre.SRE_Match object; span=(0, 7), match='300x300'> |
opts | {'crop': 0, 'size': (300, 300)} |
raise_errors | True |
self | <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f41df4bc978> |
size | '300x300' |
source | <Image: /products/1570803265.jpg> |
value | 0 |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/easy_thumbnails/files.py
in get_thumbnail
generate = self.generate
thumbnail = self.get_existing_thumbnail(thumbnail_options)
if not thumbnail:
if generate:
thumbnail = self.generate_thumbnail(
thumbnail_options,
silent_template_exception=silent_template_exception)...
if save:
self.save_thumbnail(thumbnail)
else:
signals.thumbnail_missed.send(
sender=self, options=thumbnail_options,
high_resolution=False)
Variable | Value |
---|---|
generate | True |
save | True |
self | <FilerThumbnailer: filer_public/98/66/9866c218-40fb-441f-b995-954b14fabc9a/products1570803265.jpg> |
silent_template_exception | False |
thumbnail | None |
thumbnail_options | {'crop': 0, 'quality': 85, 'size': (300, 300), 'subsampling': 2} |
/var/www/vhosts/6422570.ru/conf/venv/lib/python3.5/site-packages/easy_thumbnails/files.py
in generate_thumbnail
if high_resolution:
thumbnail_options['size'] = (orig_size[0] * 2, orig_size[1] * 2)
image = engine.generate_source_image(
self, thumbnail_options, self.source_generators,
fail_silently=silent_template_exception)
if image is None:
raise exceptions.InvalidImageFormatError(
"The source file does not appear to be an image")...
thumbnail_image = engine.process_image(image, thumbnail_options,
self.thumbnail_processors)
if high_resolution:
thumbnail_options['size'] = orig_size # restore original size
Variable | Value |
---|---|
dim | 300 |
high_resolution | False |
image | None |
max_dim | 300 |
min_dim | 0 |
orig_size | (300, 300) |
self | <FilerThumbnailer: filer_public/98/66/9866c218-40fb-441f-b995-954b14fabc9a/products1570803265.jpg> |
silent_template_exception | False |
thumbnail_options | {'crop': 0, 'quality': 85, 'size': (300, 300), 'subsampling': 2} |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | '' |
DOCUMENT_ROOT | '/usr/share/nginx/html' |
HTTPS | 'on' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | '6422570.ru' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/agents/aleksej-fedorovich/' |
QUERY_STRING | '' |
REMOTE_ADDR | '34.204.196.206' |
REMOTE_PORT | '51956' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/agents/aleksej-fedorovich/' |
SCRIPT_NAME | '' |
SERVER_NAME | '6422570.ru' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/2.0' |
uwsgi.node | b'drv1' |
uwsgi.version | b'2.0.14-debian' |
wsgi.errors | <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <uwsgi._Input object at 0x7f41df45b2b8> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
main.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ADMIN_TOOLS_INDEX_DASHBOARD | 'admin_tools_settings.settings.MyDashboard' |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/var/www/vhosts/6422570.ru/httpdocs/project' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CKEDITOR_UPLOAD_PATH | 'uploads/' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '', 'NAME': 'a6422570_ru_cvt6', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'a6422570_ru_hld3'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 3000 |
DATETIME_FORMAT | 'N j, Y, P' |
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'] |
DATE_FORMAT | 'N j, Y' |
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'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | '6422570.ru@drv1.ps' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'm1.system.place-start.ru' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | False |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FILER_IMAGE_MODEL | 'filer.Image' |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['admin_tools', 'admin_tools.theming', 'admin_tools.menu', 'admin_tools.dashboard', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.postgres', 'catalog', 'index', 'mptt', 'ajaximage', 'ckeditor', 'ajax_select', 'ckeditor_uploader', 'interfaces', 'site_settings', 'utils', 'navigation', 'rest_framework', 'django_mptt_admin', 'news', 'locale', 'reviews', 'pages', 'sorl.thumbnail', 'mathfilters', 'service_catalog', 'import_export', 'filer', 'easy_thumbnails', 'vacancies', 'landings', 'chronographv2', 'emails', 'banks', 'agents', 'ads', 'search', 'mediaproxy', 'payment'] |
INTERNAL_IPS | [] |
LANGUAGES | (('ru', 'Russian'), ('en', 'English')) |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'ru' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {'disable_existing_loggers': False, 'handlers': {'console': {'class': 'logging.StreamHandler', 'level': 'DEBUG'}}, 'loggers': {'': {'handlers': ['console'], 'level': 'WARNING', 'propagate': False}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/var/www/vhosts/6422570.ru/httpdocs/project/../media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'main.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIDDLEWARE_CLASSES | ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
PROJECT_DIR | '/var/www/vhosts/6422570.ru/httpdocs/project/main' |
ROOT_URLCONF | 'main.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'main.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SMTP_SETTINGS | {'from': '6422570.ru@drv1.ps', 'host': 'm1.system.place-start.ru', 'password': '********************', 'port': 25, 'secure_tls': False, 'ssl': False, 'user': False} |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/www/vhosts/6422570.ru/httpdocs/project/../static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': False, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/vhosts/6422570.ru/httpdocs/project/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages'], 'loaders': ['django.template.loaders.app_directories.Loader', 'admin_tools.template_loaders.Loader', 'django.template.loaders.filesystem.Loader']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
THUMBNAIL_DEBUG | True |
THUMBNAIL_HIGH_RESOLUTION | True |
THUMBNAIL_PROCESSORS | ('easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', 'filer.thumbnail_processors.scale_and_crop_with_subject_location', 'easy_thumbnails.processors.filters') |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Europe/Moscow' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'main.wsgi.application' |
X_FRAME_OPTIONS | 'ALLOW-FROM https://webvisor.com/' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.