'content'
Request Method: | GET |
---|---|
Request URL: | https://otpedia.esolr.me/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/ |
Django Version: | 2.2.3 |
Exception Type: | KeyError |
Exception Value: | 'content' |
Exception Location: | /var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/wagtail/core/fields.py in __get__, line 34 |
Python Executable: | /var/www/otpedia_esolr_me/virtualenv/bin/python |
Python Version: | 3.8.10 |
Python Path: | ['/var/www/otpedia_esolr_me/virtualenv/bin', '/var/www/otpedia_esolr_me/otpedia', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages'] |
Server time: | P, 29 Már 2024 11:25:55 +0100 |
In template /var/www/otpedia_esolr_me/otpedia/otpedia/templates/skeleton.html
, error at line 0
1 | {% load static wagtailuserbar wagtailcore_tags wagtailimages_tags %} |
---|---|
2 | |
3 | <!DOCTYPE html> |
4 | <html lang="{{ LANGUAGE_CODE }}"> |
5 | <head> |
6 | <meta charset="utf-8"> |
7 | <title> |
8 | {% block title %} |
9 | {{ self.title }} |
10 | {% endblock %} |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/django/template/base.py
in _resolve_lookup
detail and shouldn't be called by external code. Use Variable.resolve()
instead.
"""
current = context
try: # catch-all for silent variable failures
for bit in self.lookups:
try: # dictionary lookup
current = current[bit]…
# ValueError/IndexError are for numpy.array lookup on
# numpy < 1.9 and 1.9+ respectively
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(type(current), bit):
Variable | Value |
---|---|
bit | 'actual_reading_time' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
current | <ArticlePage: A papírpénz szerelmesei a digitalizáció ellenére még kitartanak> |
self | <Variable: 'item.specific.actual_reading_time'> |
template_name | 'content/article_page.html' |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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)
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 | KeyError('content') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f71b64a8f10>> |
request | <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/django/core/handlers/base.py
in _get_response
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()
except Exception as e:
response = self.process_exception_by_middleware(e, request)…
return response
def process_exception_by_middleware(self, exception, request):
"""
Pass the exception to the exception middleware. If no middleware
Variable | Value |
---|---|
callback | <function serve at 0x7f71b5c89e50> |
callback_args | ('melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/',) |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f71b64c2c70>> |
request | <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'> |
resolver | <URLResolver 'otpedia.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=wagtail.core.views.serve, args=('melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/',), kwargs={}, url_name=wagtail_serve, app_names=[], namespaces=[], route=^((?:[\w\-]+/)*)$) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f71b64a8f10> |
wrapped_callback | <function serve at 0x7f71b5c89e50> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/django/core/handlers/base.py
in _get_response
raise ValueError(
"%s.process_template_response didn't return an "
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
return response
def process_exception_by_middleware(self, exception, request):
Variable | Value |
---|---|
callback | <function serve at 0x7f71b5c89e50> |
callback_args | ('melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/',) |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f71b64c2c70>> |
request | <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'> |
resolver | <URLResolver 'otpedia.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=wagtail.core.views.serve, args=('melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/',), kwargs={}, url_name=wagtail_serve, app_names=[], namespaces=[], route=^((?:[\w\-]+/)*)$) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f71b64a8f10> |
wrapped_callback | <function serve at 0x7f71b5c89e50> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Return 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 |
---|---|
retval | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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, self._request)…
return content
def add_post_render_callback(self, callback):
"""Add a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
context | {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7f71b53af9a0> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
request | <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'> |
self | <django.template.backends.django.Template object at 0x7f71b53af9a0> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
self | <django.template.base.Template object at 0x7f71b5387310> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/django/template/base.py
in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
self | <django.template.base.Template object at 0x7f71b5387310> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
self | <ExtendsNode: extends "base.html"> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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, extra_context=None, isolated_context=False, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f71b53afa00> |
compiled_parent | <django.template.base.Template object at 0x7f71b53af4c0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
node | <ExtendsNode: extends 'skeleton.html'> |
self | <ExtendsNode: extends "base.html"> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/django/template/base.py
in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
self | <django.template.base.Template object at 0x7f71b53af4c0> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
node | <ExtendsNode: extends 'skeleton.html'> |
self | [<ExtendsNode: extends 'skeleton.html'>] |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
self | <ExtendsNode: extends 'skeleton.html'> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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, extra_context=None, isolated_context=False, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f71b53afa00> |
blocks | {'article_header_sticky': <Block Node: article_header_sticky. Contents: []>, 'body': <Block Node: body. Contents: []>, 'body_class': <Block Node: body_class. Contents: []>, 'extra_css': <Block Node: extra_css. Contents: []>, 'extra_js': <Block Node: extra_js. Contents: [<TextNode: '\n\t'>, <TextNode: '\n'>]>, 'json_ld': <Block Node: json_ld. Contents: []>, 'title': <Block Node: title. Contents: [<TextNode: '\n\t\t\t'>, <Variable Node: self.title>, <TextNode: '\n\t\t'>]>, 'title_suffix': <Block Node: title_suffix. Contents: [<TextNode: '\n\t\t\t'>, <WithNode>, <TextNode: '\n\t\t'>]>} |
compiled_parent | <django.template.base.Template object at 0x7f71b5453910> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
node | <django.template.defaulttags.LoadNode object at 0x7f71b5456fd0> |
self | <ExtendsNode: extends 'skeleton.html'> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/django/template/base.py
in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
self | <django.template.base.Template object at 0x7f71b5453910> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '">\n\n' |
bits | ['', '\n\n<!DOCTYPE html>\n<html lang="', 'hu', '">\n<head>\n\t<meta charset="utf-8">\n\t<title>\n\t\t', '\n\t\t\tA bankjegy, ami miatt bírósághoz fordultak Kenyában\n\t\t', '\n\t\t', '\n\t\t\t\n\t\t\t\t - otpedia\n\t\t\t\n\t\t', '\n\t</title>\n', '\n', '\n\t<meta name="description" content="', '', '">\n' '\t<meta name="viewport" content="width=device-width, initial-scale=1">\n' '\n' '\t<link rel="home" href="', 'http://otpedia.esolr.me', '">\n\n', '\n', '\n\n', '\n\t<meta property="og:site_name" content="', 'OTPédia', '"/>\n\t<meta property="og:url" content="', 'https://otpedia.esolr.me/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/', '">\n\t<meta property="og:type" content="', 'website', '">\n\t<meta property="og:title" content="', 'A bankjegy, ami miatt bírósághoz fordultak Kenyában', ' - otpedia', '">\n\t<meta property="og:description" content="', '', '">\n\n\t', '', '\n\n', '', '\n\n', '\n\t<meta property="og:image" content="', 'https://', 'otpedia.esolr.me', '/media/images/kenya_500_schilling_hero.2e16d0ba.fill-1200x628.png', '">\n' '\t<meta property="og:image:width" content="1200"/>\n' '\t<meta property="og:image:height" content="628"/>\n' '\t<meta property="fb:app_id" content="581696825983027"/>\n' '\n' '\t', '\n\t<link href="', '/static/default/dist/css/inline.css', '?ver=1.0.0" media="screen" rel="stylesheet" type="text/css"/>\n', '\n\t<link rel="stylesheet" href="', '/static/default/dist/css/screen.css', '" media="tty" onload="this.media=\'all\';">\n\t<link href="', '/static/default/dist/css/print.css', '?ver=1.0.0" media="none" rel="stylesheet" type="text/css" ' 'onload="if(media!==\'print\')media=\'print\'"/>\n' '\t<noscript>\n' '\t\t<link href="', '/static/default/dist/css/screen.css', '?ver=1.0.0" media="screen" rel="stylesheet" type="text/css"/>\n' '\t\t<link href="', '/static/default/dist/css/print.css', '?ver=1.0.0" media="print" rel="stylesheet" type="text/css"/>\n' '\t</noscript>\n' '\n' '\t', '\n\t', '\n' ' <script ' 'src="https://cdn.jsdelivr.net/npm/chart.js@2.9.3/dist/Chart.min.js"></script>\n' '\t<script>\n' '\n' "\t\tfunction ready(fn) { if (document.readyState !== 'loading') fn(); else " "document.addEventListener('DOMContentLoaded', fn); }\n" '\t\tfunction getScript(u, i, f, e) {\n' "\t\t\tvar s = document.createElement('script');\n" "\t\t\ts.type = 'text/javascript';\n" '\t\t\ts.src = u;\n' "\t\t\ts.id = i || 'id_script_' + new Date().getTime();\n" '\t\t\tif (!document.getElementById(i)) {\n' "\t\t\t\tdocument.getElementsByTagName('head')[0].appendChild(s);\n" '\t\t\t}\n' '\t\t\tif (!!f) {\n' "\t\t\t\ts.addEventListener('load', function () {\n" '\t\t\t\t\tf(s);\n' '\t\t\t\t});\n' '\t\t\t}\n' '\t\t}\n' '\n' '\t\tfunction ajaxGET(u, s, e, f, g) {var xhr = new ' 'XMLHttpRequest();xhr.open("GET", u, true);if (g !== undefined) {for (var key ' 'in g) {if (g.hasOwnProperty(key)) {xhr.setRequestHeader(key, ' 'g[key])}}}xhr.onload = function () {if (this.status >= 200 && this.status < ' '400) {if (s) s(this.response);} else { if (e) ' 'e(this.response);}};xhr.onerror = function () {if (f) ' 'f(this.response);};xhr.send();}\n' '\t\t', '\n' '\t\tfunction storageAvailable(type) {try {var storage = window[type], x = ' "'__storage_test__';storage.setItem(x, x);storage.removeItem(x);return true;} " 'catch (e) {return e instanceof DOMException && (e.code === 22 || e.code === ' "1014 || e.name === 'QuotaExceededError' || e.name === " "'NS_ERROR_DOM_QUOTA_REACHED') && storage.length !== 0;}}\n" "\t\tfunction getCookie(name) {var v = document.cookie.match('(^|;) ?' + name " "+ '=([^;]*)(;|$)');return v ? v[2] : null;}\n" '\t\tfunction setCookie(name, value, days) {var d = new ' 'Date;d.setTime(d.getTime() + 24*60*60*1000*days);document.cookie = name + ' '"=" + value + ";path=/;expires=" + d.toGMTString();}\n' "\t\tfunction deleteCookie(name) { setCookie(name, '', -1); }\n" '\n' '\t\t', '\n\t\t', '\n' '\t\tfunction copyText(i) {i.select();i.setSelectionRange(0, ' '99999);doc… <trimmed 12068 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
node | <Block Node: body. Contents: []> |
self | [<django.template.defaulttags.LoadNode object at 0x7f71b5456fd0>, <TextNode: '\n\n<!DOCTYPE html>\n<html l'>, <Variable Node: LANGUAGE_CODE>, <TextNode: '">\n<head>\n\t<meta charset='>, <Block Node: title. Contents: [<TextNode: '\n\t\t\t'>, <Variable Node: self.title>, <TextNode: '\n\t\t'>]>, <TextNode: '\n\t\t'>, <Block Node: title_suffix. Contents: [<TextNode: '\n\t\t\t'>, <WithNode>, <TextNode: '\n\t\t'>]>, <TextNode: '\n\t</title>\n'>, <TextNode: '\n'>, <TextNode: '\n\t<meta name="description'>, <IfNode>, <TextNode: '">\n\t<meta name="viewport"'>, <Variable Node: request.site.root_url>, <TextNode: '">\n\n'>, <TextNode: '\n'>, <TextNode: '\n\n'>, <TextNode: '\n\t<meta property="og:site'>, <IfNode>, <TextNode: '"/>\n\t<meta property="og:u'>, <Variable Node: request.build_absolute_uri>, <TextNode: '">\n\t<meta property="og:ty'>, <IfNode>, <TextNode: '">\n\t<meta property="og:ti'>, <Variable Node: self.title>, <WithNode>, <TextNode: '">\n\t<meta property="og:de'>, <IfNode>, <TextNode: '">\n\n\t'>, <django.template.defaulttags.CommentNode object at 0x7f71b546a850>, <TextNode: '\n\n'>, <django.template.defaulttags.CommentNode object at 0x7f71b546a9d0>, <TextNode: '\n\n'>, <TextNode: '\n\t<meta property="og:imag'>, <IfNode>, <Variable Node: request.get_host>, <IfNode>, <TextNode: '">\n\t<meta property="og:im'>, <TextNode: '\n\t<link href="'>, <django.templatetags.static.StaticNode object at 0x7f71b52aa910>, <TextNode: '?ver=1.0.0" media="screen'>, <TextNode: '\n\t<link rel="stylesheet" '>, <django.templatetags.static.StaticNode object at 0x7f71b52aaa30>, <TextNode: '" media="tty" onload="thi'>, <django.templatetags.static.StaticNode object at 0x7f71b52aab50>, <TextNode: '?ver=1.0.0" media="none" '>, <django.templatetags.static.StaticNode object at 0x7f71b52aac70>, <TextNode: '?ver=1.0.0" media="screen'>, <django.templatetags.static.StaticNode object at 0x7f71b52aad90>, <TextNode: '?ver=1.0.0" media="print"'>, <TextNode: '\n\t'>, <TextNode: '\n <script src="https:/'>, <TextNode: '\n\t\tfunction storageAvaila'>, <TextNode: '\n\t\t'>, <TextNode: '\n\t\tfunction copyText(i) {'>, <Variable Node: LANGUAGE_CODE>, <TextNode: "',\n\t\t\turl: {\n\t\t\t\tajaxStar">, <TextNode: "\n\t\t\t\tstarred: 'starred_pa">, <IfNode>, <TextNode: '\n\t\t\t\t'>, <IfNode>, <TextNode: "\n\t\t\t\ttitle: '">, <Variable Node: page.title>, <TextNode: "'\n\t\t\t},\n\t\t\tGTAG: {\n\t\t\t\t">, <TextNode: '\n\t\t\t\tlexiconDetailsBtnCli'>, <TextNode: '\n\t\t\t\trichtextLinkClick: f'>, <TextNode: '\n\t\t\t\tcopyCurrentDateClick'>, <TextNode: '\n\t\t\t\tlexiconDetailsRelate'>, <IfNode>, <TextNode: ";\n\t\tvar STATIC_HASH = '1.">, <django.template.defaulttags.CommentNode object at 0x7f71b547b790>, <TextNode: '\n\t\t!function () {\n\t\t\tvar '>, <Variable Node: self.title>, <WithNode>, <TextNode: "', 'non_interaction': tru">, <Variable Node: self.title>, <WithNode>, <TextNode: "', 'non_interaction': tru">, <Variable Node: self.title>, <WithNode>, <TextNode: "', 'non_interaction': tru">, <Variable Node: self.title>, <WithNode>, <TextNode: "', 'non_interaction': tru">, <TextNode: '\n\t\t\t\tpositions.forEach(fu'>, <TextNode: '\n'>, <TextNode: '\n\n\t<link rel="apple-touch'>, <django.templatetags.static.StaticNode object at 0x7f71b52afbe0>, <TextNode: '">\n\t<link rel="icon" type'>, <django.templatetags.static.StaticNode object at 0x7f71b52afd30>, <TextNode: '">\n\t<link rel="icon" type'>, <django.templatetags.static.StaticNode object at 0x7f71b52afe80>, <TextNode: '">\n'>, <TextNode: '\n\t<link rel="mask-icon" h'>, <django.templatetags.static.StaticNode object at 0x7f71b52affd0>, <TextNode: '" color="#016438">\n\t<meta'>, <Block Node: json_ld. Contents: []>, <TextNode: '\n\n\t'>, <Block Node: extra_css. Contents: []>, <TextNode: '\n\n</head>\n\n'>, <django.template.defaulttags.CommentNode object at 0x7f71b547ddc0>, <TextNode: '\n\n<body class="'>, <Block Node: body_class. Contents: []>, <TextNode: ' '>, <Variable Node: page.specific.get_top_theme>, <TextNode: '… <trimmed 5526 bytes string> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
self | <Block Node: body. Contents: []> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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: body. Contents: [<TextNode: '\n\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n\t<header class="header">'>, <Variable Node: settings.core.OtpSettings.logo_text|default:"">, <TextNode: '</a></h1>\n\t\t\t<div class="'>, <django.template.defaulttags.URLNode object at 0x7f71b5453f40>, <TextNode: '">\n\t\t\t\t\t<div class="field'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5455040>, <TextNode: '</label>\n\t\t\t\t\t\t\t<input id'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b54551c0>, <TextNode: '">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<bu'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5455310>, <TextNode: '</button>\n\t\t\t\t\t</div>\n\t\t\t'>, <django.template.library.SimpleNode object at 0x7f71b5455400>, <TextNode: '\n\t\t\t</nav>\n\t\t\t'>, <IfNode>, <TextNode: '\n\t\t</div>\n\t</header>\n\n\t<m'>, <Block Node: content. Contents: []>, <TextNode: '\n\t</main>\n\n\t<footer class'>, <django.template.library.SimpleNode object at 0x7f71b5474bb0>, <TextNode: '</nav>\n\t\t\t<p class="foote'>, <django.template.defaulttags.NowNode object at 0x7f71b5474f40>, <TextNode: '. OTP Bank</p>\n\t\t</div>\n\t'>, <TextNode: '\n\t<div data-mobile-menu c'>, <django.template.library.SimpleNode object at 0x7f71b5474fd0>, <TextNode: '\n\t\t</nav>\n\n\t\t'>, <django.template.defaulttags.CommentNode object at 0x7f71b5453a00>, <TextNode: '\n\t</div>\n\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f71b53afa00> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
push | <Block Node: body. Contents: [<TextNode: '\n\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n\t<header class="header">'>, <Variable Node: settings.core.OtpSettings.logo_text|default:"">, <TextNode: '</a></h1>\n\t\t\t<div class="'>, <django.template.defaulttags.URLNode object at 0x7f71b5453f40>, <TextNode: '">\n\t\t\t\t\t<div class="field'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5455040>, <TextNode: '</label>\n\t\t\t\t\t\t\t<input id'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b54551c0>, <TextNode: '">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<bu'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5455310>, <TextNode: '</button>\n\t\t\t\t\t</div>\n\t\t\t'>, <django.template.library.SimpleNode object at 0x7f71b5455400>, <TextNode: '\n\t\t\t</nav>\n\t\t\t'>, <IfNode>, <TextNode: '\n\t\t</div>\n\t</header>\n\n\t<m'>, <Block Node: content. Contents: []>, <TextNode: '\n\t</main>\n\n\t<footer class'>, <django.template.library.SimpleNode object at 0x7f71b5474bb0>, <TextNode: '</nav>\n\t\t\t<p class="foote'>, <django.template.defaulttags.NowNode object at 0x7f71b5474f40>, <TextNode: '. OTP Bank</p>\n\t\t</div>\n\t'>, <TextNode: '\n\t<div data-mobile-menu c'>, <django.template.library.SimpleNode object at 0x7f71b5474fd0>, <TextNode: '\n\t\t</nav>\n\n\t\t'>, <django.template.defaulttags.CommentNode object at 0x7f71b5453a00>, <TextNode: '\n\t</div>\n\n'>]> |
self | <Block Node: body. Contents: []> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n\t\t</div>\n\t</header>\n\n\t<main class="main">\n\t\t' |
bits | ['\n\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n' '\t<header class="header">\n' '\t\t<div class="header__content">\n' '\t\t\t<h1 class="header__logo"><a href="/" onclick="gtag(\'event\', \'Logóra ' "kattint', {'event_label': 'OTPédia', 'event_category': " '\'Header\'});">', 'A-tól Pénzig', '</a></h1>\n' '\t\t\t<div class="header__search">\n' '\t\t\t\t<form class="" action="', '/kereses/', '">\n' '\t\t\t\t\t<div class="fieldset">\n' '\t\t\t\t\t\t<div class="form-item">\n' '\t\t\t\t\t\t\t<label for="id_header_search">', 'Keresés', '</label>\n' '\t\t\t\t\t\t\t<input id="id_header_search" name="q" type="search" ' 'placeholder="', 'Keresés…', '">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<button>', 'Keresés', '</button>\n' '\t\t\t\t\t</div>\n' '\t\t\t\t</form>\n' '\t\t\t</div>\n' '\t\t\t<nav class="header__nav nav-mainmenu">\n' '\t\t\t\t', '\n' '<ul data-menu="1">\n' '\t\n' '\t\t<li data-menu-item="1" class=" has-handle theme1">\n' '\t\t\t\n' '\t\t\t\t<a data-menu-link="1" class="" ' 'href="/egyszer-volt/ki-vagy-inkabb-tucsok-vagy-hangya/" data-submenu="70" ' 'data-content-type="seriespage"\n' '\t\t\t\t aria-haspopup="false" aria-expanded="false"\n' '\t\t\t\t onclick="gtag(\'event\', \'Menüpont kattintása\', ' "{'event_label': 'Takarékosságra fel!', 'event_category': " '\'Menü\'});">\n' '\t\t\t\t\tTakarékosságra fel!\n' '\t\n' '\t\t\t\t\t\n' '\t\t\t\t\t\t<span class="handle">Aktuális téma</span>\n' '\t\t\t\t\t\n' '\t\t\t\t</a>\n' '\t\t\t\n' '\n' '\n' '\t\t\t\n' '\t\t</li>\n' '\t\n' '\t\n' '\t\t<li data-menu-item="1" class=" theme1">\n' '\t\t\t\n' '\t\t\t\t<a data-menu-link="1" class="" href="/egyszer-volt/" ' 'data-submenu="4" data-content-type="seriescollectionpage"\n' '\t\t\t\t aria-haspopup="false" aria-expanded="false"\n' '\t\t\t\t onclick="gtag(\'event\', \'Menüpont kattintása\', ' '{\'event_label\': \'Egyszer volt\', \'event_category\': \'Menü\'});">\n' '\t\t\t\t\tEgyszer volt\n' '\t\n' '\t\t\t\t\t\n' '\t\t\t\t</a>\n' '\t\t\t\n' '\n' '\n' '\t\t\t\n' '\t\t</li>\n' '\t\n' '\t\n' '\t\t<li data-menu-item="1" class="ancestor theme3">\n' '\t\t\t\n' '\t\t\t\t<a data-menu-link="1" class="ancestor" href="/melyviz/" ' 'data-submenu="8" data-content-type="seriescollectionpage"\n' '\t\t\t\t aria-haspopup="false" aria-expanded="false"\n' '\t\t\t\t onclick="gtag(\'event\', \'Menüpont kattintása\', ' '{\'event_label\': \'Mélyvíz\', \'event_category\': \'Menü\'});">\n' '\t\t\t\t\tMélyvíz\n' '\t\n' '\t\t\t\t\t\n' '\t\t\t\t</a>\n' '\t\t\t\n' '\n' '\n' '\t\t\t\n' '\t\t</li>\n' '\t\n' '\t\n' '\t\t<li data-menu-item="1" class=" dropdown theme5">\n' '\t\t\t\n' '\t\t\t\t<span style="cursor: default" data-menu-link="1" class="" ' 'href="/lexikon/" data-submenu="11" data-content-type="lexiconpage" ' 'aria-haspopup="true" aria-expanded="false">\n' '\t\t\t\t\tLexikon\n' '\t\n' '\t\t\t\t\t\n' '\t\t\t\t</span>\n' '\t\t\t\n' '\n' '\n' '\t\t\t\n' '\t\t\t\t<div data-menu="2">\n' '\t\t\t\t\t<div data-menu-wrap="2">\n' '\n' '\t\t\t\t\t\t\n' '\t\t\t\t\t\t\n' '\n' '\t<ul data-menu-list="2" data-submenu-id="11" ' 'aria-labelledby="ddtoggle_11">\n' '\t\t\n' '\t\t\t<li data-menu-item="2" class="">\n' '\t\t\t\t\n' '\t\t\t\t<a data-menu-link="2" href="/lexikon/arckepek/" ' 'onclick="gtag(\'event\', \'Menüpont kattintása\', {\'event_label\': ' '\'Arcképek\', \'event_category\': \'Menü\'});">\n' '\t\t\t\t\tArcképek\n' '\n' '\t\t\t\t</a>\n' '\t\t\t</li>\n' '\t\t\n' '\t\t\t<li data-menu-item="2" class="">\n' '\t\t\t\t\n' '\t\t\t\t<a data-menu-link="2" href="/lexikon/helyek/" ' 'onclick="gtag(\'event\', \'Menüpont kattintása\', {\'event_label\': ' '\'Helyek\', \'event_category\': \'Menü\'});">\n' '\t\t\t\t\tHelyek\n' '\n' '\t\t\t\t</a>\n' '\t\t\t</li>\n' '\t\t\n' '\t\t\t<li data-menu-item="2" class="">\n' '\t\t\t\t\n' '\t\t\t\t<a data-menu-link="2" href="/lexikon/fogalmak/" ' 'onclick="gtag(\'event\', \'Menüpont kattintása\', {\'event_label\': ' '\'Fogalmak\', \'event_category\': \'Menü\'});">\n' '\t\… <trimmed 5727 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
node | <Block Node: content. Contents: []> |
self | [<TextNode: '\n\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n\t<header class="header">'>, <Variable Node: settings.core.OtpSettings.logo_text|default:"">, <TextNode: '</a></h1>\n\t\t\t<div class="'>, <django.template.defaulttags.URLNode object at 0x7f71b5453f40>, <TextNode: '">\n\t\t\t\t\t<div class="field'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5455040>, <TextNode: '</label>\n\t\t\t\t\t\t\t<input id'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b54551c0>, <TextNode: '">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<bu'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5455310>, <TextNode: '</button>\n\t\t\t\t\t</div>\n\t\t\t'>, <django.template.library.SimpleNode object at 0x7f71b5455400>, <TextNode: '\n\t\t\t</nav>\n\t\t\t'>, <IfNode>, <TextNode: '\n\t\t</div>\n\t</header>\n\n\t<m'>, <Block Node: content. Contents: []>, <TextNode: '\n\t</main>\n\n\t<footer class'>, <django.template.library.SimpleNode object at 0x7f71b5474bb0>, <TextNode: '</nav>\n\t\t\t<p class="foote'>, <django.template.defaulttags.NowNode object at 0x7f71b5474f40>, <TextNode: '. OTP Bank</p>\n\t\t</div>\n\t'>, <TextNode: '\n\t<div data-mobile-menu c'>, <django.template.library.SimpleNode object at 0x7f71b5474fd0>, <TextNode: '\n\t\t</nav>\n\n\t\t'>, <django.template.defaulttags.CommentNode object at 0x7f71b5453a00>, <TextNode: '\n\t</div>\n\n'>] |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
self | <Block Node: content. Contents: []> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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\n\t<article class="articl'>, <IfNode>, <TextNode: '\n\t\t\t\t<div class="block__h'>, <django.template.defaulttags.CommentNode object at 0x7f71b543e6d0>, <TextNode: '\n\t\t\t\t\t<h1 class="block__t'>, <IfNode>, <TextNode: '">'>, <Variable Node: page.title>, <TextNode: '</h1>\n\t\t\t\t</div>\n\t\t\t\t<div'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5485b80>, <TextNode: ' – '>, <Variable Node: page.first_published_at|date:'SHORT_DATE_FORMAT'>, <TextNode: '</span>\n\t\t\t\t\t\t<span class'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5485dc0>, <TextNode: ' – <strong class="minute"'>, <Variable Node: page.actual_reading_time>, <TextNode: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5495040>, <TextNode: '</strong></span>\n\t\t\t\t\t</d'>, <TextNode: '\n'>, <TextNode: '\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t<'>, <TextNode: '\n\n'>, <TextNode: '\n\n\t\t\t<div class="article_'>, <django.template.defaulttags.CommentNode object at 0x7f71b5434310>, <TextNode: '\n\n'>, <TextNode: '\n\t\t\t\t<div class="drop" da'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5495190>, <TextNode: "', {'event_label': '', 'e">, <Variable Node: page.title>, <TextNode: '\'});">\n\t\t\t\t\t<button class'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5495460>, <TextNode: '</button>\n\t\t\t\t\t<div class'>, <Variable Node: request.build_absolute_uri>, <TextNode: "','', 'menubar=no,toolbar">, <Variable Node: request.build_absolute_uri>, <TextNode: "') + '&app_id=' + encodeU">, <Variable Node: self.title>, <TextNode: '&body='>, <Variable Node: request.build_absolute_uri>, <TextNode: '">e-mail</a>\n\t\t\t\t\t\t<a hre'>, <Variable Node: request.build_absolute_uri>, <TextNode: ' '>, <Variable Node: self.title>, <TextNode: '" target="_blank">twitter'>, <TextNode: '\n\t\t\t\t\t\t<a href="#" onmous'>, <IfNode>, <TextNode: '&description='>, <Variable Node: self.title>, <TextNode: "','', 'menubar=no,toolbar">, <TextNode: '\n\t\t\t\t\t\t<a href="https://a'>, <Variable Node: self.title|urlencode>, <TextNode: '">whatsup</a>\n\t\t\t\t\t</div>'>, <TextNode: '\n\t\t\t\t<a href="#" class="s'>, <Variable Node: page.id>, <TextNode: '" onclick="gtag(\'event\', '>, <Variable Node: page.title>, <TextNode: '\'});">0</a>\n\t\t\t</div>\n\n\t\t'>, <ForNode: for block in page.content, tail_len: 3>, <TextNode: '\n\t\t\t</div>\n\n'>, <TextNode: '\n\n\t\t\t<div class="article_'>, <Variable Node: page.id>, <TextNode: '" onclick="gtag(\'event\', '>, <Variable Node: page.title>, <TextNode: '\'});">0</a>\n\t\t\t</div>\n\n\t\t'>, <TextNode: '\n\t\t\t'>, <TextNode: '\n\n\t\t\t<div class="article_'>, <IfNode>, <TextNode: '\n\t\t\t\t</div>\n\t\t\t\t<div clas'>, <IfNode>, <TextNode: '\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t'>, <Variable Node: page.author>, <TextNode: '</div>\n\t\t\t<div class="blo'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b54be760>, <TextNode: ' – '>, <Variable Node: page.first_published_at|date:'SHORT_DATE_FORMAT'>, <TextNode: '\n\t\t\t</div>\n\t\t</footer>\n\n\n'>, <IfNode>, <TextNode: '\n\n\t</article>\n\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f71b53afa00> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
push | <Block Node: content. Contents: [<TextNode: '\n\n\t<article class="articl'>, <IfNode>, <TextNode: '\n\t\t\t\t<div class="block__h'>, <django.template.defaulttags.CommentNode object at 0x7f71b543e6d0>, <TextNode: '\n\t\t\t\t\t<h1 class="block__t'>, <IfNode>, <TextNode: '">'>, <Variable Node: page.title>, <TextNode: '</h1>\n\t\t\t\t</div>\n\t\t\t\t<div'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5485b80>, <TextNode: ' – '>, <Variable Node: page.first_published_at|date:'SHORT_DATE_FORMAT'>, <TextNode: '</span>\n\t\t\t\t\t\t<span class'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5485dc0>, <TextNode: ' – <strong class="minute"'>, <Variable Node: page.actual_reading_time>, <TextNode: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5495040>, <TextNode: '</strong></span>\n\t\t\t\t\t</d'>, <TextNode: '\n'>, <TextNode: '\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t<'>, <TextNode: '\n\n'>, <TextNode: '\n\n\t\t\t<div class="article_'>, <django.template.defaulttags.CommentNode object at 0x7f71b5434310>, <TextNode: '\n\n'>, <TextNode: '\n\t\t\t\t<div class="drop" da'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5495190>, <TextNode: "', {'event_label': '', 'e">, <Variable Node: page.title>, <TextNode: '\'});">\n\t\t\t\t\t<button class'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5495460>, <TextNode: '</button>\n\t\t\t\t\t<div class'>, <Variable Node: request.build_absolute_uri>, <TextNode: "','', 'menubar=no,toolbar">, <Variable Node: request.build_absolute_uri>, <TextNode: "') + '&app_id=' + encodeU">, <Variable Node: self.title>, <TextNode: '&body='>, <Variable Node: request.build_absolute_uri>, <TextNode: '">e-mail</a>\n\t\t\t\t\t\t<a hre'>, <Variable Node: request.build_absolute_uri>, <TextNode: ' '>, <Variable Node: self.title>, <TextNode: '" target="_blank">twitter'>, <TextNode: '\n\t\t\t\t\t\t<a href="#" onmous'>, <IfNode>, <TextNode: '&description='>, <Variable Node: self.title>, <TextNode: "','', 'menubar=no,toolbar">, <TextNode: '\n\t\t\t\t\t\t<a href="https://a'>, <Variable Node: self.title|urlencode>, <TextNode: '">whatsup</a>\n\t\t\t\t\t</div>'>, <TextNode: '\n\t\t\t\t<a href="#" class="s'>, <Variable Node: page.id>, <TextNode: '" onclick="gtag(\'event\', '>, <Variable Node: page.title>, <TextNode: '\'});">0</a>\n\t\t\t</div>\n\n\t\t'>, <ForNode: for block in page.content, tail_len: 3>, <TextNode: '\n\t\t\t</div>\n\n'>, <TextNode: '\n\n\t\t\t<div class="article_'>, <Variable Node: page.id>, <TextNode: '" onclick="gtag(\'event\', '>, <Variable Node: page.title>, <TextNode: '\'});">0</a>\n\t\t\t</div>\n\n\t\t'>, <TextNode: '\n\t\t\t'>, <TextNode: '\n\n\t\t\t<div class="article_'>, <IfNode>, <TextNode: '\n\t\t\t\t</div>\n\t\t\t\t<div clas'>, <IfNode>, <TextNode: '\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t'>, <Variable Node: page.author>, <TextNode: '</div>\n\t\t\t<div class="blo'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b54be760>, <TextNode: ' – '>, <Variable Node: page.first_published_at|date:'SHORT_DATE_FORMAT'>, <TextNode: '\n\t\t\t</div>\n\t\t</footer>\n\n\n'>, <IfNode>, <TextNode: '\n\n\t</article>\n\n'>]> |
self | <Block Node: content. Contents: []> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n\t\t\t</div>\n\t\t</footer>\n\n\n\t\t' |
bits | ['\n' '\n' '\t<article class="article" itemscope itemtype="http://schema.org/Article">\n' '\n' '\t\t<header class="block block--article-header">\n' '\t\t\t<div class="block__content">\n' '\t\t\t\t', '\n' '\t\t\t\t\t<figure class="block__media">\n' '\t\t\t\t\t\t\n' '\t\t\t\t\t\t\n' '\t\t\t\t\t\t\n' '\t\t\t\t\t\t\n' '\t\t\t\t\t\t<img class="block__img" ' 'src="/media/images/kenya_500_schilling_hero.2e16d0ba.fill-490x520.png" ' 'srcset="/media/images/kenya_500_schilling_hero.2e16d0ba.fill-490x520.png 1x, ' '/media/images/kenya_500_schilling_hero.2e16d0ba.fill-980x1040.png 2x" ' 'alt="Cikk illusztráció">\n' '\t\t\t\t\t</figure>\n' '\t\t\t\t', '\n\t\t\t\t<div class="block__header">\n\t\t\t\t\t', '', '\n\t\t\t\t\t<h1 class="block__title', ' longer', '">', 'A bankjegy, ami miatt bírósághoz fordultak Kenyában', '</h1>\n' '\t\t\t\t</div>\n' '\t\t\t\t<div class="block__body">\n' '\t\t\t\t\t<div class="block__meta">\n' '\t\t\t\t\t\t<span class="block__date">', 'Publikálva', ' – ', '2020.10.13.', '</span>\n\t\t\t\t\t\t<span class="block__reading-time reading-time">', 'Olvasási idő', ' – <strong class="minute">', '4', ' ', 'perc', '</strong></span>\n\t\t\t\t\t</div>\n', '\n', '\n' '\t\t\t\t</div>\n' '\t\t\t</div>\n' '\t\t</header>\n' '\n' '\n' '\t\t<div class="article__body" itemprop="articleBody">\n' '\n', '\n\n', '\n\n\t\t\t<div class="article__fn">\n\n\t\t\t\t', '', '\n\n', '\n\t\t\t\t<div class="drop" data-drop="0" onclick="gtag(\'event\', \'', 'Cikk megosztása', "', {'event_label': '', 'event_category': 'Cikk végoldal - ", 'A bankjegy, ami miatt bírósághoz fordultak Kenyában', '\'});">\n\t\t\t\t\t<button class="drop__btn btn btn_share">', 'Cikk megosztása', '</button>\n' '\t\t\t\t\t<div class="drop__list" data-drop-list>\n' '\t\t\t\t\t\t<a href="#" ' 'onmousedown="window.open(\'https://www.facebook.com/sharer/sharer.php?u=', 'https://otpedia.esolr.me/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/', "','', " "'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=500');return " 'false;">facebook</a>\n' '\t\t\t\t\t\t<a href="#" ' 'onmousedown="location.assign(\'viber://forward?text=\' + ' 'encodeURIComponent(\'OTPédia \') + window.location.href);">viber</a>\n' '\t\t\t\t\t\t<a href="#" ' 'onmousedown="window.open(\'fb-messenger://share?link=\' + ' "encodeURIComponent('", 'https://otpedia.esolr.me/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/', "') + '&app_id=' + " 'encodeURIComponent(\'581696825983027\'));">messenger</a>\n' '\t\t\t\t\t\t<a href="mailto:?subject=OTPédia – ', 'A bankjegy, ami miatt bírósághoz fordultak Kenyában', '&body=', 'https://otpedia.esolr.me/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/', '">e-mail</a>\n\t\t\t\t\t\t<a href="https://twitter.com/home?status=', 'https://otpedia.esolr.me/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/', ' ', 'A bankjegy, ami miatt bírósághoz fordultak Kenyában', '" target="_blank">twitter</a>\n', '\n' '\t\t\t\t\t\t<a href="#" ' 'onmousedown="window.open(\'https://pinterest.com/pin/create/button/?media=', 'https://otpedia.esolr.me/static/default/asset/img/social/default-facebook-share.jpg', '&description=', 'A bankjegy, ami miatt bírósághoz fordultak Kenyában', "','', " "'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return " 'false;">pinterest</a>\n', '\n\t\t\t\t\t\t<a href="https://api.whatsapp.com/send?text=Link%20', 'A%20bankjegy%2C%20ami%20miatt%20b%C3%ADr%C3%B3s%C3%A1ghoz%20fordultak%20Keny%C3%A1ban', '">whatsup</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n', '\n\t\t\t\t<a href="#" class="star" data-link="star" data-star-id="', '210', '" onclick="gtag(\'event\', \'Cikket értékel\', {\'event_label\': \'\', ' "'event_category': 'Cikk végoldal - ", 'A bankjegy, ami miatt bírósághoz fordultak Kenyában', '\'});">0</a>\n\t\t\t</div>\n\n\t\t\t<div class="article__stream">\n\t\t\t\t', '\n' '\t\t\t\t\t\n' '\t\t\t\t\t\t<section class="section se… <trimmed 13605 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
node | <IfNode> |
self | [<TextNode: '\n\n\t<article class="articl'>, <IfNode>, <TextNode: '\n\t\t\t\t<div class="block__h'>, <django.template.defaulttags.CommentNode object at 0x7f71b543e6d0>, <TextNode: '\n\t\t\t\t\t<h1 class="block__t'>, <IfNode>, <TextNode: '">'>, <Variable Node: page.title>, <TextNode: '</h1>\n\t\t\t\t</div>\n\t\t\t\t<div'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5485b80>, <TextNode: ' – '>, <Variable Node: page.first_published_at|date:'SHORT_DATE_FORMAT'>, <TextNode: '</span>\n\t\t\t\t\t\t<span class'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5485dc0>, <TextNode: ' – <strong class="minute"'>, <Variable Node: page.actual_reading_time>, <TextNode: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5495040>, <TextNode: '</strong></span>\n\t\t\t\t\t</d'>, <TextNode: '\n'>, <TextNode: '\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t<'>, <TextNode: '\n\n'>, <TextNode: '\n\n\t\t\t<div class="article_'>, <django.template.defaulttags.CommentNode object at 0x7f71b5434310>, <TextNode: '\n\n'>, <TextNode: '\n\t\t\t\t<div class="drop" da'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5495190>, <TextNode: "', {'event_label': '', 'e">, <Variable Node: page.title>, <TextNode: '\'});">\n\t\t\t\t\t<button class'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5495460>, <TextNode: '</button>\n\t\t\t\t\t<div class'>, <Variable Node: request.build_absolute_uri>, <TextNode: "','', 'menubar=no,toolbar">, <Variable Node: request.build_absolute_uri>, <TextNode: "') + '&app_id=' + encodeU">, <Variable Node: self.title>, <TextNode: '&body='>, <Variable Node: request.build_absolute_uri>, <TextNode: '">e-mail</a>\n\t\t\t\t\t\t<a hre'>, <Variable Node: request.build_absolute_uri>, <TextNode: ' '>, <Variable Node: self.title>, <TextNode: '" target="_blank">twitter'>, <TextNode: '\n\t\t\t\t\t\t<a href="#" onmous'>, <IfNode>, <TextNode: '&description='>, <Variable Node: self.title>, <TextNode: "','', 'menubar=no,toolbar">, <TextNode: '\n\t\t\t\t\t\t<a href="https://a'>, <Variable Node: self.title|urlencode>, <TextNode: '">whatsup</a>\n\t\t\t\t\t</div>'>, <TextNode: '\n\t\t\t\t<a href="#" class="s'>, <Variable Node: page.id>, <TextNode: '" onclick="gtag(\'event\', '>, <Variable Node: page.title>, <TextNode: '\'});">0</a>\n\t\t\t</div>\n\n\t\t'>, <ForNode: for block in page.content, tail_len: 3>, <TextNode: '\n\t\t\t</div>\n\n'>, <TextNode: '\n\n\t\t\t<div class="article_'>, <Variable Node: page.id>, <TextNode: '" onclick="gtag(\'event\', '>, <Variable Node: page.title>, <TextNode: '\'});">0</a>\n\t\t\t</div>\n\n\t\t'>, <TextNode: '\n\t\t\t'>, <TextNode: '\n\n\t\t\t<div class="article_'>, <IfNode>, <TextNode: '\n\t\t\t\t</div>\n\t\t\t\t<div clas'>, <IfNode>, <TextNode: '\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t'>, <Variable Node: page.author>, <TextNode: '</div>\n\t\t\t<div class="blo'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b54be760>, <TextNode: ' – '>, <Variable Node: page.first_published_at|date:'SHORT_DATE_FORMAT'>, <TextNode: '\n\t\t\t</div>\n\t\t</footer>\n\n\n'>, <IfNode>, <TextNode: '\n\n\t</article>\n\n'>] |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
self | <IfNode> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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 0x7f71b54bef10>) |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
match | True |
nodelist | [<TextNode: '\n\t\t\t<section class="block'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b54be9a0>, <TextNode: '</h1>\n\t\t\t\t\t<div class="bl'>, <ForNode: for item in page.get_recommended_articles, tail_len: 20>, <TextNode: '\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t'>] |
self | <IfNode> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '</h1>\n\t\t\t\t\t<div class="block__body">\n\t\t\t\t\t\t' |
bits | ['\n' '\t\t\t<section class="block block--related">\n' '\t\t\t\t<div class="block__content">\n' '\t\t\t\t\t<h1 class="block__title">', 'Neked ajánljuk', '</h1>\n\t\t\t\t\t<div class="block__body">\n\t\t\t\t\t\t'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
node | <ForNode: for item in page.get_recommended_articles, tail_len: 20> |
self | [<TextNode: '\n\t\t\t<section class="block'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b54be9a0>, <TextNode: '</h1>\n\t\t\t\t\t<div class="bl'>, <ForNode: for item in page.get_recommended_articles, tail_len: 20>, <TextNode: '\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t'>] |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
self | <ForNode: for item in page.get_recommended_articles, tail_len: 20> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/django/template/defaulttags.py
in render
unpacked_vars = dict(zip(self.loopvars, item))
pop_context = True
context.update(unpacked_vars)
else:
context[self.loopvars[0]] = item
for node in self.nodelist_loop:
nodelist.append(node.render_annotated(context))…
if pop_context:
# Pop the loop variables pushed on to the context to avoid
# the context ending up in an inconsistent state when other
# tags (e.g., include and with) push data to context.
context.pop()
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
i | 1 |
item | <ArticlePage: A papírpénz szerelmesei a digitalizáció ellenére még kitartanak> |
len_values | 3 |
loop_dict | {'counter': 2, 'counter0': 1, 'first': False, 'last': False, 'parentloop': {}, 'revcounter': 2, 'revcounter0': 1} |
node | <IfNode> |
nodelist | ['\n\t\t\t\t\t\t\t<article class="post">\n\t\t\t\t\t\t\t\t', '\n' '\t\t\t\t\t\t\t\t\t<figure class="post__media">\n' '\t\t\t\t\t\t\t\t\t\t<img alt="comoro hero.png" class="post__img" ' 'height="400" src="/media/images/comoro_hero.2e16d0ba.fill-700x400.png" ' 'width="700">\n' '\t\n' '\t\t\t\t\t\t\t\t\t\t<a class="post__media-link" ' 'href="/melyviz/penz-portre/ahol-muveszette-valtoztattak-penznyomtatast/"\n' '\t\t\t\t\t\t\t\t\t\t\t onclick="gtag(\'event\', \'Neked ajánljuk\', ' "{'event_label': 'Az örökké elátkozott szigetek, amelyek művészetté " "változtatták a pénznyomtatást', 'event_category': 'Cikk végoldal - A " 'bankjegy, ami miatt bírósághoz fordultak Kenyában\'});"></a>\n' '\t\t\t\t\t\t\t\t\t\t<a href="#" data-link="star" data-star-id="157" ' 'class="post__star">0</a>\n' '\t\t\t\t\t\t\t\t\t</figure>\n' '\t\t\t\t\t\t\t\t', '\n\t\t\t\t\t\t\t\t<div class="post__header">\n', '\n\t\t\t\t\t\t\t\t\t<a href="', '/melyviz/penz-portre/', '" class="post__series">\n\t\t\t\t\t\t\t\t\t\t', 'Pénz-portré', '</a>\n' '\t\t\t\t\t\t\t\t\t<h1 class="post__title">\n' '\t\t\t\t\t\t\t\t\t\t<a class="post__title-link" href="', '/melyviz/penz-portre/ahol-muveszette-valtoztattak-penznyomtatast/', '" onclick="gtag(\'event\', \'Neked ajánljuk\', {\'event_label\': \'', 'Az örökké elátkozott szigetek, amelyek művészetté változtatták a ' 'pénznyomtatást', "', 'event_category': 'Cikk végoldal - ", 'A bankjegy, ami miatt bírósághoz fordultak Kenyában', '\'});">\n\t\t\t\t\t\t\t\t\t\t\t', 'Az örökké elátkozott szigetek, amelyek művészetté változtatták a ' 'pénznyomtatást', '\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t\t\t', '\n' '\t\t\t\t\t\t\t\t\t\t<div class="post__reading-time">Olvasási idő – 7 ' 'perc</div>\n' '\t\t\t\t\t\t\t\t\t', '\n\t\t\t\t\t\t\t\t\t', '', '\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</article>\n\t\t\t\t\t\t', '\n\t\t\t\t\t\t\t<article class="post">\n\t\t\t\t\t\t\t\t', '\n' '\t\t\t\t\t\t\t\t\t<figure class="post__media">\n' '\t\t\t\t\t\t\t\t\t\t<img alt="bankjegy hero2.jfif" class="post__img" ' 'height="400" ' 'src="/media/images/bankjegy_hero_hEfbI2D.e8466316.fill-700x400_bAKSlxz.jpg" ' 'width="700">\n' '\t\n' '\t\t\t\t\t\t\t\t\t\t<a class="post__media-link" ' 'href="/melyviz/penz-portre/papirpenz-szerelmesei-digitalizacio-ellenere-meg-kitartanak_3/"\n' '\t\t\t\t\t\t\t\t\t\t\t onclick="gtag(\'event\', \'Neked ajánljuk\', ' "{'event_label': 'A papírpénz szerelmesei a digitalizáció ellenére még " "kitartanak', 'event_category': 'Cikk végoldal - A bankjegy, ami miatt " 'bírósághoz fordultak Kenyában\'});"></a>\n' '\t\t\t\t\t\t\t\t\t\t<a href="#" data-link="star" data-star-id="247" ' 'class="post__star">0</a>\n' '\t\t\t\t\t\t\t\t\t</figure>\n' '\t\t\t\t\t\t\t\t', '\n\t\t\t\t\t\t\t\t<div class="post__header">\n', '\n\t\t\t\t\t\t\t\t\t<a href="', '/melyviz/penz-portre/', '" class="post__series">\n\t\t\t\t\t\t\t\t\t\t', 'Pénz-portré', '</a>\n' '\t\t\t\t\t\t\t\t\t<h1 class="post__title">\n' '\t\t\t\t\t\t\t\t\t\t<a class="post__title-link" href="', '/melyviz/penz-portre/papirpenz-szerelmesei-digitalizacio-ellenere-meg-kitartanak_3/', '" onclick="gtag(\'event\', \'Neked ajánljuk\', {\'event_label\': \'', 'A papírpénz szerelmesei a digitalizáció ellenére még kitartanak', "', 'event_category': 'Cikk végoldal - ", 'A bankjegy, ami miatt bírósághoz fordultak Kenyában', '\'});">\n\t\t\t\t\t\t\t\t\t\t\t', 'A papírpénz szerelmesei a digitalizáció ellenére még kitartanak', '\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t\t\t'] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <ForNode: for item in page.get_recommended_articles, tail_len: 20> |
unpack | False |
values | [<ArticlePage: Az örökké elátkozott szigetek, amelyek művészetté változtatták a pénznyomtatást>, <ArticlePage: A papírpénz szerelmesei a digitalizáció ellenére még kitartanak>, <ArticlePage: A Karácsony-szigeten is hódít a majdnem halálra ítélt brit feminista ikon>] |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
self | <IfNode> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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 0x7f71b5496b80>) (literal <django.template.base.FilterExpression object at 0x7f71b5496c70>)) |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
match | True |
nodelist | [<TextNode: '\n\t\t\t\t\t\t\t\t\t\t<div class="po'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5496dc0>, <TextNode: ' – '>, <Variable Node: item.specific.actual_reading_time>, <TextNode: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7f71b54a7160>, <TextNode: '</div>\n\t\t\t\t\t\t\t\t\t'>] |
self | <IfNode> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ' – ' |
bits | ['\n\t\t\t\t\t\t\t\t\t\t<div class="post__reading-time">', 'Olvasási idő', ' – '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
node | <Variable Node: item.specific.actual_reading_time> |
self | [<TextNode: '\n\t\t\t\t\t\t\t\t\t\t<div class="po'>, <django.templatetags.i18n.TranslateNode object at 0x7f71b5496dc0>, <TextNode: ' – '>, <Variable Node: item.specific.actual_reading_time>, <TextNode: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7f71b54a7160>, <TextNode: '</div>\n\t\t\t\t\t\t\t\t\t'>] |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
self | <Variable Node: item.specific.actual_reading_time> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/django/template/base.py
in render
self.filter_expression = filter_expression
def __repr__(self):
return "<Variable Node: %s>" % self.filter_expression
def render(self, context):
try:
output = self.filter_expression.resolve(context)…
except UnicodeDecodeError:
# Unicode conversion can fail sometimes for reasons out of our
# control (e.g. exception rendering). In that case, we fail
# quietly.
return ''
return render_value_in_context(output, context)
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
self | <Variable Node: item.specific.actual_reading_time> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/django/template/base.py
in resolve
self.filters = filters
self.var = var_obj
def resolve(self, context, ignore_failures=False):
if isinstance(self.var, Variable):
try:
obj = self.var.resolve(context)…
except VariableDoesNotExist:
if ignore_failures:
obj = None
else:
string_if_invalid = context.template.engine.string_if_invalid
if string_if_invalid:
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
ignore_failures | False |
self | <django.template.base.FilterExpression object at 0x7f71b5496f40> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/django/template/base.py
in resolve
var)
self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR))
def resolve(self, context):
"""Resolve this variable against a given context."""
if self.lookups is not None:
# We're dealing with a variable that needs to be resolved
value = self._resolve_lookup(context)…
else:
# We're dealing with a literal, so it's already been "resolved"
value = self.literal
if self.translate:
is_safe = isinstance(value, SafeData)
msgid = value.replace('%', '%%')
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
self | <Variable: 'item.specific.actual_reading_time'> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/django/template/base.py
in _resolve_lookup
# ValueError/IndexError are for numpy.array lookup on
# numpy < 1.9 and 1.9+ respectively
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(type(current), bit):
raise AttributeError
current = getattr(current, bit)…
except (TypeError, AttributeError):
# Reraise if the exception was raised by a @property
if not isinstance(current, BaseContext) and bit in dir(current):
raise
try: # list-index lookup
current = current[int(bit)]
Variable | Value |
---|---|
bit | 'actual_reading_time' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'self': <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában>, 'request': <WSGIRequest: GET '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/'>, 'page_teaser': <OtpRendition: OtpRendition object (4203)>}] |
current | <ArticlePage: A papírpénz szerelmesei a digitalizáció ellenére még kitartanak> |
self | <Variable: 'item.specific.actual_reading_time'> |
template_name | 'content/article_page.html' |
/var/www/otpedia_esolr_me/otpedia/content/models.py
in actual_reading_time
@property
def actual_reading_time(self):
if self.reading_time and self.reading_time > 0:
return self.reading_time
if self.computed_reading_time:
return self.computed_reading_time
return self.determine_reading_time(save=True)…
def save_revision(self, *args, **kwargs):
self.computed_reading_time = self.determine_reading_time(save=False)
return super(ArticlePage, self).save_revision(*args, **kwargs)
def content_as_page(self):
Variable | Value |
---|---|
self | <ArticlePage: A papírpénz szerelmesei a digitalizáció ellenére még kitartanak> |
/var/www/otpedia_esolr_me/otpedia/content/models.py
in determine_reading_time
html_version = render_to_string(template_name="content/_readtime.html", context=self.get_context(request=None))
result = readtime.of_html(html_version, wpm=settings.READING_TIME_WPM)
minutes = ceil(result.seconds / 60) if (result and result.seconds) else None
except Exception:
minutes = 7
if save:
self.computed_reading_time = minutes
self.save()…
return minutes
@property
def actual_reading_time(self):
if self.reading_time and self.reading_time > 0:
Variable | Value |
---|---|
minutes | 7 |
readtime | <module 'readtime' from '/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/readtime/__init__.py'> |
save | True |
self | <ArticlePage: A papírpénz szerelmesei a digitalizáció ellenére még kitartanak> |
/usr/lib/python3.8/contextlib.py
in inner
"""
return self
def __call__(self, func):
@wraps(func)
def inner(*args, **kwds):
with self._recreate_cm():
return func(*args, **kwds)…
return inner
class _GeneratorContextManagerBase:
"""Shared functionality for @contextmanager and @asynccontextmanager."""
Variable | Value |
---|---|
args | (<ArticlePage: A papírpénz szerelmesei a digitalizáció ellenére még kitartanak>,) |
func | <function Page.save at 0x7f71bdc12310> |
kwds | {} |
self | <django.db.transaction.Atomic object at 0x7f71bdc11400> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/wagtail/core/models.py
in save
super().clean()
if not Page._slug_is_available(self.slug, self.get_parent(), self):
raise ValidationError({'slug': _("This slug is already in use")})
@transaction.atomic
# ensure that changes are only committed when we have updated all descendant URL paths, to preserve consistency
def save(self, *args, **kwargs):
self.full_clean()…
update_descendant_url_paths = False
is_new = self.id is None
if is_new:
# we are creating a record. If we're doing things properly, this should happen
Variable | Value |
---|---|
__class__ | <class 'wagtail.core.models.Page'> |
args | () |
kwargs | {} |
self | <ArticlePage: A papírpénz szerelmesei a digitalizáció ellenére még kitartanak> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/wagtail/core/models.py
in full_clean
# only proceed if we get a non-empty base slug back from slugify
if base_slug:
self.slug = self._get_autogenerated_slug(base_slug)
if not self.draft_title:
self.draft_title = self.title
super().full_clean(*args, **kwargs)…
def clean(self):
super().clean()
if not Page._slug_is_available(self.slug, self.get_parent(), self):
raise ValidationError({'slug': _("This slug is already in use")})
Variable | Value |
---|---|
__class__ | <class 'wagtail.core.models.Page'> |
args | () |
kwargs | {} |
self | <ArticlePage: A papírpénz szerelmesei a digitalizáció ellenére még kitartanak> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/django/db/models/base.py
in full_clean
errors = {}
if exclude is None:
exclude = []
else:
exclude = list(exclude)
try:
self.clean_fields(exclude=exclude)…
except ValidationError as e:
errors = e.update_error_dict(errors)
# Form.clean() is run even if other validation fails, so do the
# same with Model.clean() for consistency.
try:
Variable | Value |
---|---|
errors | {} |
exclude | [] |
self | <ArticlePage: A papírpénz szerelmesei a digitalizáció ellenére még kitartanak> |
validate_unique | True |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/django/db/models/base.py
in clean_fields
errors = {}
for f in self._meta.fields:
if f.name in exclude:
continue
# Skip validation for empty fields with blank=True. The developer
# is responsible for making sure they have a valid value.
raw_value = getattr(self, f.attname)…
if f.blank and raw_value in f.empty_values:
continue
try:
setattr(self, f.attname, f.clean(raw_value, self))
except ValidationError as e:
errors[f.name] = e.error_list
Variable | Value |
---|---|
errors | {} |
exclude | [] |
f | <wagtail.core.fields.StreamField: content> |
raw_value | ('Eljön a nap, amikor már csak a gyűjtők számára lesz értéke a papírpénznek. ' 'De amíg a készpénz eltűnik a forgalomból, addig évente megválasztják a ' 'legszebb bankjegyet. De kik döntenek erről?') |
self | <ArticlePage: A papírpénz szerelmesei a digitalizáció ellenére még kitartanak> |
/var/www/otpedia_esolr_me/virtualenv/lib/python3.8/site-packages/wagtail/core/fields.py
in __get__
"""
def __init__(self, field):
self.field = field
def __get__(self, obj, type=None):
if obj is None:
return self
return obj.__dict__[self.field.name]…
def __set__(self, obj, value):
obj.__dict__[self.field.name] = self.field.to_python(value)
class StreamField(models.Field):
Variable | Value |
---|---|
obj | <ArticlePage: A papírpénz szerelmesei a digitalizáció ellenére még kitartanak> |
self | <wagtail.core.fields.Creator object at 0x7f71b665f8e0> |
type | <class 'content.models.ArticlePage'> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'otpedia.esolr.me' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '44.222.87.38' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REAL_IP | '44.222.87.38' |
PATH_INFO | '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/' |
QUERY_STRING | '' |
RAW_URI | '/melyviz/penz-portre/bankjegy-ami-miatt-birosaghoz-fordultak-kenyaban_2/' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'otpedia.esolr.me' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'gunicorn/20.1.0' |
WAGTAILMENUS_CURRENT_PAGE | <ArticlePage: A bankjegy, ami miatt bírósághoz fordultak Kenyában> |
WAGTAILMENUS_CURRENT_SECTION_ROOT | <SeriesCollectionPage: Mélyvíz> |
gunicorn.socket | <socket.socket fd=9, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/run/gunicorn/otpedia.esolr.me.socket> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f71bf95b2e0> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f71bf95b280> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
otpedia.settings.dev
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/var/www/otpedia_esolr_me/otpedia' |
BASE_URL | '127.0.0.1:8000' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CELERY_ACCEPT_CONTENT | ['json'] |
CELERY_BROKER_URL | 'redis://127.0.0.1:6379/0' |
CELERY_RESULT_BACKEND | 'django-db' |
CELERY_TASK_SERIALIZER | 'json' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
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': '127.0.0.1', 'NAME': 'otpedia_test', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'otpedia_test'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
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 | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.console.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
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 |
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' |
GOOGLE_MAPS_V3_APIKEY | '********************' |
HOMEPAGE_BLOCKS_DEFAULT_CLOSED | True |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['wagtail_react_streamfield', 'wagtail.contrib.forms', 'wagtail.contrib.redirects', 'wagtail.contrib.modeladmin', 'wagtail.contrib.postgres_search', 'wagtail.contrib.table_block', 'wagtail.contrib.settings', 'wagtail.contrib.styleguide', 'wagtail.contrib.routable_page', 'wagtail.embeds', 'wagtail.sites', 'wagtail.users', 'wagtail.snippets', 'wagtail.documents', 'wagtail.images', 'wagtail.search', 'wagtail.admin', 'wagtail.core', 'wagtailmenus', 'wagtailgeowidget', 'modelcluster', 'taggit', 'el_pagination', 'rest_framework', 'formtools', 'home', 'search', 'core', 'content', 'lexicon', 'django_celery_results', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sitemaps'] |
INTERNAL_IPS | [] |
LANGUAGES | (('hu', 'Magyar'),) |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'hu' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/var/www/otpedia_esolr_me/otpedia/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware', 'wagtail.core.middleware.SiteMiddleware', 'wagtail.contrib.redirects.middleware.RedirectMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
NUMBER_OF_RELATED_ITEMS | 3 |
PAGE_THEMES | {('', 'Alapértelmezett'), ('theme1', 'Múlt / narancs'), ('theme2', 'Jövő / májva'), ('theme3', 'Alapok / sötétkék'), ('theme4', '7 percben / ibolya'), ('theme5', 'Lexikon / kék'), ('theme6', 'Kincsek / sárga')} |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
PROJECT_DIR | '/var/www/otpedia_esolr_me/otpedia/otpedia' |
READING_TIME_WPM | 200 |
RICH_TEXT_ELEMENTS | ['h2', 'h3', 'bold', 'italic', 'underline', 'hr', 'link', 'ol', 'ul', 'document-link', 'button', 'image', 'embed', 'superscript', 'subscript', 'blockquote'] |
ROOT_URLCONF | 'otpedia.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_SAMESITE | 'Lax' |
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 | 'otpedia.settings.dev' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STAR_COOKIE_NAME | 'starred_pages' |
STATICFILES_DIRS | ['/var/www/otpedia_esolr_me/otpedia/otpedia/static'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage' |
STATIC_ROOT | '/var/www/otpedia_esolr_me/otpedia/static' |
STATIC_URL | '/static/' |
STREAMPAGE_BLOCKS_DEFAULT_CLOSED | False |
TAGGIT_CASE_INSENSITIVE | True |
TAG_SPACES_ALLOWED | True |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/otpedia_esolr_me/otpedia/otpedia/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.contrib.messages.context_processors.messages', 'wagtail.contrib.settings.context_processors.settings', 'wagtailmenus.context_processors.wagtailmenus']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'CET' |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | False |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WAGTAILDOCS_SERVE_METHOD | 'redirect' |
WAGTAILEMBEDS_FINDERS | [{'class': 'wagtail.embeds.finders.oembed', 'options': {'color': '#000000', 'show_comments': False}, 'providers': [{'endpoint': 'https://soundcloud.com/oembed', 'urls': ['^https://soundcloud\\.com/.+$']}]}, {'class': 'wagtail.embeds.finders.oembed'}] |
WAGTAILIMAGES_IMAGE_MODEL | 'core.OtpImage' |
WAGTAILIMAGES_MAX_UPLOAD_SIZE | 20971520 |
WAGTAILSEARCH_BACKENDS | {'default': {'BACKEND': 'wagtail.contrib.postgres_search.backend'}} |
WAGTAIL_ALLOW_UNICODE_SLUGS | False |
WAGTAIL_DATETIME_FORMAT | '%Y.%m.%d. %H:%M' |
WAGTAIL_DATE_FORMAT | '%Y.%m.%d.' |
WAGTAIL_SITE_NAME | 'OTPedia' |
WSGI_APPLICATION | 'otpedia.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
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.