Failed lookup for key [score_b] in [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}]
Request Method: | GET |
---|---|
Request URL: | https://www.funkytool.pl/pl/pdf/taolu/results/2/22nd-polish-open-wushu-cup/ |
Django Version: | 4.2.11 |
Exception Type: | VariableDoesNotExist |
Exception Value: | Failed lookup for key [score_b] in [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
Exception Location: | /app/.heroku/python/lib/python3.11/site-packages/django/template/base.py, line 903, in _resolve_lookup |
Raised during: | competitions.views.pdf.views.TaoluResultPDFView |
Python Executable: | /app/.heroku/python/bin/python |
Python Version: | 3.11.4 |
Python Path: | ['/app', '.', '/app/.heroku/python/bin', '/app', '/app/.heroku/python/lib/python311.zip', '/app/.heroku/python/lib/python3.11', '/app/.heroku/python/lib/python3.11/lib-dynload', '/app/.heroku/python/lib/python3.11/site-packages'] |
Server time: | Thu, 28 Mar 2024 14:23:20 +0100 |
In template /app/templates/pdf/competition-taolu-results.html
, error at line 103
93 | <span class="deduction">{{ deduction.code }}</span> |
---|---|
94 | {% endfor %} |
95 | </td> |
96 | {% for score_b in entry.group_b_scores %} |
97 | <td class="partial-score">{{ entry|public_score:score_b|default:"-" }}</td> |
98 | {% endfor %} |
99 | <td class="final-score">{{ entry.public_score_A|default:"-" }}</td> |
100 | <td class="final-score">{{ entry.public_score_B|default:"-" }}</td> |
101 | {% elif competition.judging_method.id == 2 or competition.judging_method.id == 8 %} |
102 | {% for score_a in entry.group_a_scores %} |
103 | <td class="partial-score">{{ entry|public_score:score_b|default:"-" }}</td> |
104 | {% endfor %} |
105 | {% for score_b in entry.group_b_scores %} |
106 | <td class="partial-score">{{ entry|public_score:score_b|default:"-" }}</td> |
107 | {% endfor %} |
108 | <td class="final-score">{{ entry.public_score_A|default:"-" }}</td> |
109 | <td class="final-score">{{ entry.public_score_B|default:"-" }}</td> |
110 | {% elif competition.judging_method.id == 3 or competition.judging_method.id == 5 or competition.judging_method.id == 6 %} |
111 | {% for score_t in entry.group_t_scores %} |
112 | <td class="partial-score">{{ entry|public_score:score_t|default:"-" }}</td> |
113 | {% endfor %} |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 880, 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(
Variable | Value |
---|---|
bit | 'score_b' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
current | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <Variable: 'score_b'> |
template_name | 'pdf/competition-taolu-results.html' |
/app/.heroku/python/lib/python3.11/site-packages/django/template/context.py
, line 83, in __getitem__
context[key] = value
def __getitem__(self, key):
"Get a variable's value, starting at the current context and going upward"
for d in reversed(self.dicts):
if key in d:
return d[key]
raise KeyError(key) ^^^^^^^^^^^^^^^^^^^…
def __delitem__(self, key):
"Delete a variable from the current context"
del self.dicts[-1][key]
def __contains__(self, key):
Variable | Value |
---|---|
d | {'False': False, 'None': None, 'True': True} |
key | 'score_b' |
self | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 886, in _resolve_lookup
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
):
raise AttributeError
current = getattr(current, bit)
except (TypeError, AttributeError):
# Reraise if the exception was raised by a @property
Variable | Value |
---|---|
bit | 'score_b' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
current | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <Variable: 'score_b'> |
template_name | 'pdf/competition-taolu-results.html' |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 896, in _resolve_lookup
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)] ^^^^^^^^…
except (
IndexError, # list index out of range
ValueError, # invalid literal for int()
KeyError, # current is a dict without `int(bit)` key
TypeError,
): # unsubscriptable object
Variable | Value |
---|---|
bit | 'score_b' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
current | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <Variable: 'score_b'> |
template_name | 'pdf/competition-taolu-results.html' |
/app/.heroku/python/lib/python3.11/site-packages/django/core/handlers/exception.py
, line 42, in inner
can rely on getting a response instead of an exception.
"""
if iscoroutinefunction(get_response):
@wraps(get_response)
async def inner(request):
try:
response = await get_response(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^…
except Exception as exc:
response = await sync_to_async(
response_for_exception, thread_sensitive=False
)(request, exc)
return response
Variable | Value |
---|---|
exc | VariableDoesNotExist('Failed lookup for key [%s] in %r', ('score_b', [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}])) |
get_response | <bound method BaseHandler._get_response_async of <django.core.handlers.asgi.ASGIHandler object at 0x7fc4ee7cf950>> |
request | <ASGIRequest: GET '/pl/pdf/taolu/results/2/22nd-polish-open-wushu-cup/'> |
/app/.heroku/python/lib/python3.11/site-packages/django/core/handlers/base.py
, line 284, in _get_response_async
name="%s.process_template_response"
% (middleware_method.__self__.__class__.__name__,),
)
try:
if iscoroutinefunction(response.render):
response = await response.render()
else:
response = await sync_to_async(…
response.render, thread_sensitive=True
)()
except Exception as e:
response = await sync_to_async(
self.process_exception_by_middleware,
thread_sensitive=True,
Variable | Value |
---|---|
callback | <function View.as_view.<locals>.view at 0x7fc4e7ca5620> |
callback_args | () |
callback_kwargs | {'place': 2, 'slug': '22nd-polish-open-wushu-cup'} |
middleware_method | <asgiref.sync.SyncToAsync object at 0x7fc4ee68b4d0> |
request | <ASGIRequest: GET '/pl/pdf/taolu/results/2/22nd-polish-open-wushu-cup/'> |
response | None |
self | <django.core.handlers.asgi.ASGIHandler object at 0x7fc4ee7cf950> |
wrapped_callback | <asgiref.sync.SyncToAsync object at 0x7fc4e6137450> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/response.py
, line 114, 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 | <WeasyTemplateResponse status_code=200, "application/pdf"> |
self | <WeasyTemplateResponse status_code=200, "application/pdf"> |
/app/.heroku/python/lib/python3.11/site-packages/django_weasyprint/views.py
, line 101, in rendered_content
)
@property
def rendered_content(self):
"""
Returns rendered PDF pages.
"""
document = self.get_document() ^^^^^^^^^^^^^^^^^^^…
return document.write_pdf(**self._options)
class WeasyTemplateResponseMixin(TemplateResponseMixin):
"""
Mixin for a CBV creating a ``WeasyTemplateResponse`` using the configured template.
Variable | Value |
---|---|
self | <WeasyTemplateResponse status_code=200, "application/pdf"> |
/app/.heroku/python/lib/python3.11/site-packages/django_weasyprint/views.py
, line 81, in get_document
PDF file.
"""
base_url = self.get_base_url()
url_fetcher = self.get_url_fetcher()
font_config = self.get_font_config()
html = weasyprint.HTML(
string=super().rendered_content, ^^^^^^^^^^^^^^^^^^^^^^^^…
base_url=base_url,
url_fetcher=url_fetcher,
)
self._options.setdefault(
'stylesheets',
Variable | Value |
---|---|
__class__ | <class 'django_weasyprint.views.WeasyTemplateResponse'> |
base_url | 'https://www.funkytool.pl/' |
font_config | <weasyprint.text.fonts.FontConfiguration object at 0x7fc4e6135a90> |
self | <WeasyTemplateResponse status_code=200, "application/pdf"> |
url_fetcher | <function django_url_fetcher at 0x7fc4ec1dade0> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/response.py
, line 92, 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)
return template.render(context, self._request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
def add_post_render_callback(self, callback):
"""Add a new post-rendering callback.
If the response has already been rendered,
invoke the callback immediately.
Variable | Value |
---|---|
context | {'headline': 'Wyniki', 'place': 2, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'slug': '22nd-polish-open-wushu-cup', 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>} |
self | <WeasyTemplateResponse status_code=200, "application/pdf"> |
template | <django.template.backends.django.Template object at 0x7fc4e62c8250> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/backends/django.py
, line 61, in render
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}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
request | <ASGIRequest: GET '/pl/pdf/taolu/results/2/22nd-polish-open-wushu-cup/'> |
self | <django.template.backends.django.Template object at 0x7fc4e62c8250> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 175, 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}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <Template template_string="{% extends "pdf/pdf-..."> |
/app/.heroku/python/lib/python3.11/site-packages/django/test/utils.py
, line 112, in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal that can be
intercepted by the test Client.
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
class _TestState:
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <Template template_string="{% extends "pdf/pdf-..."> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | [<ExtendsNode: extends "pdf/pdf-template.html">] |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fc4e62f3dc0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
node | <ExtendsNode: extends "pdf/pdf-template.html"> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <ExtendsNode: extends "pdf/pdf-template.html"> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/loader_tags.py
, line 157, in render
}
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__(
Variable | Value |
---|---|
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'content': [<Block Node: content. Contents: [<TextNode: '\n '>]>], 'style_base': [<Block Node: style_base. Contents: [<TextNode: '\n <style>\n @p'>, <Block Node: extra_style. Contents: [<TextNode: '\n '>]>, <TextNode: '\n '>]>], 'extra_style': [<Block Node: extra_style. Contents: [<TextNode: '\n '>]>], 'page_header': [<Block Node: page_header. Contents: [<TextNode: '\n <header>\n '>, <Variable Node: headline>, <TextNode: '\n </td>\n '>, <Variable Node: tournament>, <TextNode: '\n </td>\n '>]>], 'page_foot': [<Block Node: page_foot. Contents: [<TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7fc4ed5b9050>, <TextNode: '\n '>]>]})> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n '>]>, 'extra_style': <Block Node: extra_style. Contents: [<TextNode: '\n '>]>, 'page_foot': <Block Node: page_foot. Contents: [<TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7fc4ed5b9050>, <TextNode: '\n '>]>, 'page_header': <Block Node: page_header. Contents: [<TextNode: '\n <header>\n '>, <Variable Node: headline>, <TextNode: '\n </td>\n '>, <Variable Node: tournament>, <TextNode: '\n </td>\n '>]>, 'style_base': <Block Node: style_base. Contents: [<TextNode: '\n <style>\n @p'>, <Block Node: extra_style. Contents: [<TextNode: '\n '>]>, <TextNode: '\n '>]>} |
compiled_parent | <Template template_string="{% load static %}<!..."> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
node | <django.template.defaulttags.LoadNode object at 0x7fc4ed5b80d0> |
self | <ExtendsNode: extends "pdf/pdf-template.html"> |
/app/.heroku/python/lib/python3.11/site-packages/django/test/utils.py
, line 112, in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal that can be
intercepted by the test Client.
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
class _TestState:
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <Template template_string="{% load static %}<!..."> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | [<django.template.defaulttags.LoadNode object at 0x7fc4ed5b80d0>, <TextNode: '\n<!DOCTYPE html>\n<html>\n '>, <Variable Node: title|default:"">, <TextNode: '</title>\n\n '>, <Block Node: style_base. Contents: [<TextNode: '\n <style>\n @p'>, <Block Node: extra_style. Contents: [<TextNode: '\n '>]>, <TextNode: '\n '>]>, <TextNode: '\n </head>\n <body>\n <'>, <Block Node: page_header. Contents: [<TextNode: '\n <header>\n '>, <Variable Node: headline>, <TextNode: '\n </td>\n '>, <Variable Node: tournament>, <TextNode: '\n </td>\n '>]>, <TextNode: '\n\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n <div id='>, <Block Node: page_foot. Contents: [<TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7fc4ed5b9050>, <TextNode: '\n '>]>, <TextNode: '\n </div>\n </body>\n</h'>] |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fc4e62f2b30> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
node | <Block Node: content. Contents: [<TextNode: '\n '>]> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <Block Node: content. Contents: [<TextNode: '\n '>]> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/loader_tags.py
, line 63, 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<div id="results">\n'>, <ForNode: for session in sessions, tail_len: 7>, <TextNode: '\n</div>\n'>]> |
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'content': [<Block Node: content. Contents: [<TextNode: '\n '>]>], 'style_base': [<Block Node: style_base. Contents: [<TextNode: '\n <style>\n @p'>, <Block Node: extra_style. Contents: [<TextNode: '\n '>]>, <TextNode: '\n '>]>], 'extra_style': [<Block Node: extra_style. Contents: [<TextNode: '\n '>]>], 'page_header': [<Block Node: page_header. Contents: [<TextNode: '\n <header>\n '>, <Variable Node: headline>, <TextNode: '\n </td>\n '>, <Variable Node: tournament>, <TextNode: '\n </td>\n '>]>], 'page_foot': [<Block Node: page_foot. Contents: [<TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7fc4ed5b9050>, <TextNode: '\n '>]>]})> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
push | <Block Node: content. Contents: [<TextNode: '\n<div id="results">\n'>, <ForNode: for session in sessions, tail_len: 7>, <TextNode: '\n</div>\n'>]> |
self | <Block Node: content. Contents: [<TextNode: '\n '>]> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | [<TextNode: '\n<div id="results">\n'>, <ForNode: for session in sessions, tail_len: 7>, <TextNode: '\n</div>\n'>] |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fc4e611be20> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
node | <ForNode: for session in sessions, tail_len: 7> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <ForNode: for session in sessions, tail_len: 7> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/defaulttags.py
, line 238, 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}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
i | 0 |
item | <TournamentEvent: sesja 1 - plansza 1 (A)> |
len_values | 4 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 4, 'revcounter0': 3} |
node | <ForNode: for competition in session.taolucompetition_set.all, tail_len: 15> |
nodelist | ['\n <h2>', 'sesja 1', ' ', '<small>1 grudnia 2018 09:00</small>', '</h2>\n '] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <ForNode: for session in sessions, tail_len: 7> |
unpack | False |
values | <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <ForNode: for competition in session.taolucompetition_set.all, tail_len: 15> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/defaulttags.py
, line 238, 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}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
i | 6 |
item | <TaoluCompetition: Wu Bu Quan poniżej 9 lat mężczyźni (Pierwszy krok), Wu Bu Quan 9-11 lat mężczyźni (Pierwszy krok)> |
len_values | 26 |
loop_dict | {'counter': 7, 'counter0': 6, 'first': False, 'last': False, 'parentloop': {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 4, 'revcounter0': 3}, 'revcounter': 20, 'revcounter0': 19} |
node | <ForNode: for entry in competition.results, tail_len: 16> |
nodelist | ['\n <h4>\n ', '<p>\n' '\n' ' Xiao Nian Tou (Shil Lim Tao) 9-11 lat mężczyźni (Formy tradycyjne),<br />\n' '\n' ' Xiao Nian Tou (Shil Lim Tao) 9-11 lat kobiety (Formy tradycyjne),<br />\n' '\n' ' Xiao Nian Tou (Shil Lim Tao) 12-14 lat kobiety (Formy tradycyjne),<br />\n' '\n' ' Xiao Nian Tou (Shil Lim Tao) 15-17 lat mężczyźni (Formy tradycyjne)\n' '\n' '</p>', '\n' ' </h4>\n' ' <table class="table">\n' ' <thead>\n' ' <th class="no">#</th>\n' ' <th class="athlete">', 'zawodnik', '</th>\n ', '\n <th class="club">klub</th>\n ', '\n ', '\n' ' <th class="partial-score">T1</th>\n' ' <th class="partial-score">T2</th>\n' ' <th class="partial-score">T3</th>\n' ' <th class="partial-score">T4</th>\n' ' <th class="partial-score">T5</th>\n' ' <th class="final-score">5</th>\n' ' ', '\n <th class="final-score"><small>', 'SG', '</small></th>\n <th class="final-score"><small>', 'nota', '</small></th>\n </thead>\n <tbody>\n ', '\n' ' <tr class="odd">\n' ' <td class="no">1</td>\n' ' <td class="athlete">Elizabeth LEE</td>\n' ' \n' ' <td class="club">Czech Shaolin Temple</td>\n' ' \n' ' \n' ' \n' ' <td class="partial-score">7.95</td>\n' ' \n' ' <td class="partial-score">8.20</td>\n' ' \n' ' <td class="partial-score">8.20</td>\n' ' \n' ' <td class="partial-score">8.20</td>\n' ' \n' ' <td class="partial-score">8.15</td>\n' ' \n' ' <td class="final-score">8.14</td>\n' ' \n' ' <td class="final-score">-</td>\n' ' <td class="final-score">8.18</td>\n' ' </tr>\n' ' \n' ' <tr class="even">\n' ' <td class="no">2</td>\n' ' <td class="athlete">Kevin MÜLLER</td>\n' ' \n' ' <td class="club">Czech Shaolin Temple</td>\n' ' \n' ' \n' ' \n' ' <td class="partial-score">7.85</td>\n' ' \n' ' <td class="partial-score">7.90</td>\n' ' \n' ' <td class="partial-score">8.00</td>\n' ' \n' ' <td class="partial-score">8.00</td>\n' ' \n' ' <td class="partial-score">7.95</td>\n' ' \n' ' <td class="final-score">7.94</td>\n' ' \n' ' <td class="final-score">-</td>\n' ' <td class="final-score">7.95</td>\n' ' </tr>\n' ' \n' ' <tr class="odd">\n' ' <td class="no">3</td>\n' ' <td class="athlete">Adriana MARADOVÁ</td>\n' ' \n' ' <td class="club">Czech Shaolin Temple</td>\n' ' \n' ' \n' ' \n' ' <td class="partial-score">7.85</td>\n' ' \n' ' <td class="partial-score">7.90</td>\n' ' \n' ' <td class="partial-score">7.80</td>\n' ' \n' ' <td class="partial-score">7.85</td>\n' ' \n' ' <td class="partial-score">7.90</td>\n' ' \n' ' <td class="final-score">7.86</td>\n' ' \n' ' <td class="final-score">-</td>\n' ' <td class="final-score">7.87</td>\n' ' </tr>\n' ' \n' ' <tr class="even">\n' ' <td class="no">-</td>\n' ' <td class="athlete">Anna ŠVANIGOVÁ</td>\n' ' \n' ' <td class="club">Czech Shaolin Temple</td>\n' ' \n' ' \n' ' \n' ' <td class="partial-score">-</td>\n' ' \n' ' <td class="partial-score">-</td>\n' ' \n' ' <td class="partial-score">-</td>\n' ' \n' ' <td class="partial-score">-</td>\n' ' \n' ' <td class="partial-score">-</td>\n' ' \n' ' <td class="final-score">-</td>\n' ' \n' ' <td class="final-score">-</td>\n' ' <td class="final-score">-</td>\n' ' </tr>\n' ' \n' ' <tr class="odd">\n' ' <td class="n… <trimmed 55735 bytes string> |
num_loopvars | 1 |
parentloop | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 4, 'revcounter0': 3} |
pop_context | False |
self | <ForNode: for competition in session.taolucompetition_set.all, tail_len: 15> |
unpack | False |
values | <QuerySet [<TaoluCompetition: Xiao Nian Tou (Shil Lim Tao) 9-11 lat mężczyźni (Formy tradycyjne), Xiao Nian Tou (Shil Lim Tao) 9-11 lat kobiety (Formy tradycyjne), Xiao Nian Tou (Shil Lim Tao) 12-14 lat kobiety (Formy tradycyjne), Xiao Nian Tou (Shil Lim Tao) 15-17 lat mężczyźni (Formy tradycyjne)>, <TaoluCompetition: Xiao Nian Tou (Shil Lim Tao) 18-39 lat mężczyźni (Formy tradycyjne), Xiao Nian Tou (Shil Lim Tao) 18-39 lat kobiety (Formy tradycyjne), Xiao Nian Tou (Shil Lim Tao) 40-60 lat mężczyźni (Formy tradycyjne)>, <TaoluCompetition: Biao Zhi (Bil Jee) 18-39 lat mężczyźni (Formy tradycyjne), Biao Zhi (Bil Jee) 18-39 lat kobiety (Formy tradycyjne)>, <TaoluCompetition: Xun Qiao (Chum Kil) 12-14 lat kobiety (Formy tradycyjne), Xun Qiao (Chum Kil) 15-17 lat mężczyźni (Formy tradycyjne), Xun Qiao (Chum Kil) 18-39 lat mężczyźni (Formy tradycyjne), Xun Qiao (Chum Kil) 18-39 lat kobiety (Formy tradycyjne), Xun Qiao (Chum Kil) 40-60 lat mężczyźni (Formy tradycyjne)>, <TaoluCompetition: Hu Die Shuang Dao (Bart Cham Dao) 18-39 lat mężczyźni (Formy tradycyjne), Hu Die Shuang Dao (Bart Cham Dao) 18-39 lat kobiety (Formy tradycyjne)>, <TaoluCompetition: Liu Dian Ban Gun (Look Dim Boon Kwun) 18-39 lat mężczyźni (Formy tradycyjne), Liu Dian Ban Gun (Look Dim Boon Kwun) 18-39 lat kobiety (Formy tradycyjne)>, <TaoluCompetition: Wu Bu Quan poniżej 9 lat mężczyźni (Pierwszy krok), Wu Bu Quan 9-11 lat mężczyźni (Pierwszy krok)>, <TaoluCompetition: 1 Duan Changquan poniżej 9 lat mężczyźni (Pierwszy krok), 1 Duan Changquan poniżej 9 lat kobiety (Pierwszy krok), 1 Duan Changquan 9-11 lat mężczyźni (Pierwszy krok), 1 Duan Changquan 9-11 lat kobiety (Pierwszy krok)>, <TaoluCompetition: Changquan 32 poniżej 9 lat kobiety (Pierwszy krok), Changquan 32 9-11 lat mężczyźni (Pierwszy krok), Changquan 32 12-14 lat kobiety (Pierwszy krok)>, <TaoluCompetition: Jianshu 32 12-14 lat mężczyźni (Pierwszy krok), Jianshu 32 12-14 lat kobiety (Pierwszy krok), Jianshu 32 18-39 lat kobiety (Pierwszy krok)>, <TaoluCompetition: Gunshu 32 12-14 lat mężczyźni (Pierwszy krok)>, <TaoluCompetition: Changquan Grupa C (poniżej 12 lat) mężczyźni (Formy obligatoryjne), Changquan Grupa C (poniżej 12 lat) kobiety (Formy obligatoryjne)>, <TaoluCompetition: Changquan Grupa B (12-14 lat) mężczyźni (Formy obligatoryjne)>, <TaoluCompetition: Changquan Grupa B (12-14 lat) kobiety (Formy obligatoryjne)>, <TaoluCompetition: Changquan Grupa A (15-17 lat) mężczyźni (Formy obligatoryjne), Changquan Grupa A (15-17 lat) kobiety (Formy obligatoryjne), Changquan Formy obligatoryjne 18-39 lat kobiety (Formy obligatoryjne)>, <TaoluCompetition: Nanquan Grupa B (12-14 lat) mężczyźni (Formy obligatoryjne)>, <TaoluCompetition: Daoshu Grupa C (poniżej 12 lat) mężczyźni (Formy obligatoryjne), Daoshu Grupa C (poniżej 12 lat) kobiety (Formy obligatoryjne)>, <TaoluCompetition: Daoshu Grupa B (12-14 lat) mężczyźni (Formy obligatoryjne), Daoshu Grupa B (12-14 lat) kobiety (Formy obligatoryjne), Daoshu Grupa A (15-17 lat) kobiety (Formy obligatoryjne)>, <TaoluCompetition: Jianshu Grupa C (poniżej 12 lat) mężczyźni (Formy obligatoryjne), Jianshu Grupa C (poniżej 12 lat) kobiety (Formy obligatoryjne)>, <TaoluCompetition: Jianshu Grupa B (12-14 lat) kobiety (Formy obligatoryjne), Jianshu Grupa A (15-17 lat) mężczyźni (Formy obligatoryjne)>, '...(remaining elements truncated)...']> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <ForNode: for entry in competition.results, tail_len: 16> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/defaulttags.py
, line 238, 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}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
i | 0 |
item | <TaoluEntry: Wojciech KASPRZYSZAK Wu Bu Quan> |
len_values | 3 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {'counter': 7, 'counter0': 6, 'first': False, 'last': False, 'parentloop': {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 4, 'revcounter0': 3}, 'revcounter': 20, 'revcounter0': 19}, 'revcounter': 3, 'revcounter0': 2} |
node | <IfNode> |
nodelist | ['\n <tr class="', 'odd', '', '">\n <td class="no">', '1', '</td>\n <td class="athlete">', 'Wojciech KASPRZYSZAK', '</td>\n ', '\n' ' <td class="club">UKS Warszawska Szkoła Wushu Sportowego</td>\n' ' ', '\n '] |
num_loopvars | 1 |
parentloop | {'counter': 7, 'counter0': 6, 'first': False, 'last': False, 'parentloop': {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 4, 'revcounter0': 3}, 'revcounter': 20, 'revcounter0': 19} |
pop_context | False |
self | <ForNode: for entry in competition.results, tail_len: 16> |
unpack | False |
values | [<TaoluEntry: Wojciech KASPRZYSZAK Wu Bu Quan>, <TaoluEntry: Marko TIMOCHENKO Wu Bu Quan>, <TaoluEntry: Stepan DEMIANENKO Wu Bu Quan>] |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <IfNode> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/defaulttags.py
, line 321, 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 | (or (== (literal <FilterExpression 'competition.judging_method.id'>) (literal <FilterExpression '2'>)) (== (literal <FilterExpression 'competition.judging_method.id'>) (literal <FilterExpression '8'>))) |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
match | True |
nodelist | [<TextNode: '\n '>, <ForNode: for score_a in entry.group_a_scores, tail_len: 3>, <TextNode: '\n '>, <ForNode: for score_b in entry.group_b_scores, tail_len: 3>, <TextNode: '\n <td class="fin'>, <Variable Node: entry.public_score_A|default:"-">, <TextNode: '</td>\n <td class'>, <Variable Node: entry.public_score_B|default:"-">, <TextNode: '</td>\n '>] |
self | <IfNode> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | [<TextNode: '\n '>, <ForNode: for score_a in entry.group_a_scores, tail_len: 3>, <TextNode: '\n '>, <ForNode: for score_b in entry.group_b_scores, tail_len: 3>, <TextNode: '\n <td class="fin'>, <Variable Node: entry.public_score_A|default:"-">, <TextNode: '</td>\n <td class'>, <Variable Node: entry.public_score_B|default:"-">, <TextNode: '</td>\n '>] |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fc4e62b56f0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
node | <ForNode: for score_a in entry.group_a_scores, tail_len: 3> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <ForNode: for score_a in entry.group_a_scores, tail_len: 3> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/defaulttags.py
, line 238, 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}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
i | 0 |
item | <PartialScore: Wojciech KASPRZYSZAK Wu Bu Quan judgeA1 4.700> |
len_values | 3 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {'counter': 7, 'counter0': 6, 'first': False, 'last': False, 'parentloop': {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 4, 'revcounter0': 3}, 'revcounter': 20, 'revcounter0': 19}, 'revcounter': 3, 'revcounter0': 2}, 'revcounter': 3, 'revcounter0': 2} |
node | <Variable Node: entry|public_score:score_b|default:"-"> |
nodelist | ['\n <td class="partial-score">'] |
num_loopvars | 1 |
parentloop | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {'counter': 7, 'counter0': 6, 'first': False, 'last': False, 'parentloop': {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 4, 'revcounter0': 3}, 'revcounter': 20, 'revcounter0': 19}, 'revcounter': 3, 'revcounter0': 2} |
pop_context | False |
self | <ForNode: for score_a in entry.group_a_scores, tail_len: 3> |
unpack | False |
values | [<PartialScore: Wojciech KASPRZYSZAK Wu Bu Quan judgeA1 4.700>, <PartialScore: Wojciech KASPRZYSZAK Wu Bu Quan judgeA2 4.850>, <PartialScore: Wojciech KASPRZYSZAK Wu Bu Quan judgeA3 4.700>] |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <Variable Node: entry|public_score:score_b|default:"-"> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 1064, 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}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <Variable Node: entry|public_score:score_b|default:"-"> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 736, in resolve
obj = self.var
for func, args in self.filters:
arg_vals = []
for lookup, arg in args:
if not lookup:
arg_vals.append(mark_safe(arg))
else:
arg_vals.append(arg.resolve(context)) ^^^^^^^^^^^^^^^^^^^^…
if getattr(func, "expects_localtime", False):
obj = template_localtime(obj, context.use_tz)
if getattr(func, "needs_autoescape", False):
new_obj = func(obj, autoescape=context.autoescape, *arg_vals)
else:
new_obj = func(obj, *arg_vals)
Variable | Value |
---|---|
arg | <Variable: 'score_b'> |
arg_vals | [] |
args | [(True, <Variable: 'score_b'>)] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
func | <function public_score at 0x7fc4e79000e0> |
ignore_failures | False |
lookup | True |
obj | <TaoluEntry: Wojciech KASPRZYSZAK Wu Bu Quan> |
self | <FilterExpression 'entry|public_score:score_b|default:"-"'> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 847, in resolve
)
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}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <Variable: 'score_b'> |
/app/.heroku/python/lib/python3.11/site-packages/django/template/base.py
, line 903, in _resolve_lookup
current = current[int(bit)]
except (
IndexError, # list index out of range
ValueError, # invalid literal for int()
KeyError, # current is a dict without `int(bit)` key
TypeError,
): # unsubscriptable object
raise VariableDoesNotExist( ^…
"Failed lookup for key [%s] in %r",
(bit, current),
) # missing attribute
if callable(current):
if getattr(current, "do_not_call_in_templates", False):
pass
Variable | Value |
---|---|
bit | 'score_b' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
current | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 2, 'slug': '22nd-polish-open-wushu-cup', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e6133e50>, 'tournament': <Tournament: XXII Otwarty Puchar Polski Wushu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 1 (A)>, <TournamentEvent: sesja 2 - plansza 1 (A)>, <TournamentEvent: sesja 3 - plansza 1 (A)>, <TournamentEvent: sesja 4 - plansza 1 (A)>]>, 'headline': 'Wyniki'}] |
self | <Variable: 'score_b'> |
template_name | 'pdf/competition-taolu-results.html' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_CONNECT_TIME | '0' |
HTTP_HOST | 'www.funkytool.pl' |
HTTP_TOTAL_ROUTE_TIME | '0' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_VIA | '1.1 vegur' |
HTTP_X_FORWARDED_FOR | '34.227.112.145' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REQUEST_ID | '9cf44181-ddbf-4cdb-ba3b-df47be1cb3cc' |
HTTP_X_REQUEST_START | '1711632199446' |
PATH_INFO | '/pl/pdf/taolu/results/2/22nd-polish-open-wushu-cup/' |
QUERY_STRING | '' |
REMOTE_ADDR | '10.1.33.155' |
REMOTE_HOST | '10.1.33.155' |
REMOTE_PORT | 12823 |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '172.17.125.138' |
SERVER_PORT | '44565' |
wsgi.multiprocess | True |
wsgi.multithread | True |
wubudu.settings.production
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ADMIN_SITE_HEADER | '武步度' |
ALLOWED_HOSTS | ['wubudu.herokuapp.com', 'funkytool.pl', 'www.funkytool.pl', 'funkytool.com', 'www.funkytool.com'] |
ALLOW_REDIS | True |
APPEND_SLASH | True |
ASGI_APPLICATION | 'wubudu.routing.application' |
ASSETS_AUTO_BUILD | False |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'users.UserProfile' |
AWS_ACCESS_KEY_ID | '********************' |
AWS_DEFAULT_ACL | 'public-read' |
AWS_HEADERS | {'CacheControl': 'max-age=94608000', 'Expires': 'Thu, 31 Dec 2099 20:00:00 GMT'} |
AWS_QUERYSTRING_AUTH | False |
AWS_S3_FILE_OVERWRITE | False |
AWS_S3_HOST | 's3-eu-west-1.amazonaws.com' |
AWS_S3_OBJECT_PARAMETERS | {'CacheControl': 'max-age=86400'} |
AWS_S3_URL_PROTOCOL | 'https:' |
AWS_SECRET_ACCESS_KEY | '********************' |
AWS_STORAGE_BUCKET_NAME | 'wubudu-storage2' |
BASE_DIR | '/app' |
BROKER_URL | 'redis://localhost:6379/0' |
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_RESULT_SERIALIZER | 'json' |
CELERY_TASK_SERIALIZER | 'json' |
CHANNEL_LAYERS | {'default': {'BACKEND': 'channels_redis.core.RedisChannelLayer', 'CONFIG': {'hosts': ['redis://localhost:6379']}}} |
CORS_ALLOWED_ORIGINS | ('http://www.judging.funkytool.pl', 'http://judging.funkytool.pl', 'https://funkytool.pl', 'https://www.funkytool.pl') |
CORS_ALLOW_CREDENTIALS | False |
CORS_ALLOW_HEADERS | ('cache-control', 'x-requested-with', 'content-disposition', 'content-type', 'accept', 'origin', 'authorization', 'x-csrftoken') |
CORS_ORIGIN_ALLOW_ALL | False |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_MASKED | 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_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': 'ec2-54-76-178-158.eu-west-1.compute.amazonaws.com', 'NAME': 'df103ra89fohun', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': 5432, 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'yutvuesxubemkc'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATA_UPLOAD_MAX_NUMBER_FILES | 100 |
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', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
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_INFO | False |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_AUTO_FIELD | 'django.db.models.BigAutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'storages.backends.s3boto3.S3Boto3Storage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_PASSWORD | '********************' |
DEFAULT_TABLESPACE | '' |
DEFAULT_USERNAME_TOKEN | '********************' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.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 |
FAVICON | 'favicon.png' |
FF_CLUBS | True |
FF_COMBINED_RESULTS | False |
FF_DEBUG_TOOLBAR | False |
FF_DOCUMENT_SCAN | True |
FF_JUDGE_LICENSES | True |
FF_MULTI_LANGUAGE | True |
FF_OBLIGATORY_JUDGE | True |
FF_PESEL | True |
FF_RECOMMENDED_FEES | True |
FF_REMOTE_DB_SYNC | False |
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 | 420 |
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_ANALYTICS_API_KEY | '********************' |
GOOGLE_MAPS_API_KEY | '********************' |
HOTJAR_ID | '459562' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'rest_framework', 'rest_framework_simplejwt', 'corsheaders', 'django_filters', 'modeltranslation', 'channels', 'storages', 'tinymce', 'dbsettings', 'reversion', 'adminsortable', 'django_countries', 'django_google_maps', 'competitions', 'judging', 'routines', 'users', 'quiz', 'wubudu'] |
INTERNAL_IPS | [] |
LANGUAGES | [('en', 'angielski'), ('pl', 'polski')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ur'] |
LANGUAGE_CODE | 'en' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | ('/app/locale',) |
LOGGING | {'disable_existing_loggers': True, 'handlers': {'console': {'class': 'logging.StreamHandler'}}, 'loggers': {'competitions': {'handlers': ['console'], 'level': 'DEBUG', 'propagate': False}, 'django.request': {'handlers': ['console'], 'level': 'ERROR', 'propagate': False}, 'routines': {'handlers': ['console'], 'level': 'DEBUG', 'propagate': False}, 'users': {'handlers': ['console'], 'level': 'DEBUG', 'propagate': False}, 'wubudu': {'handlers': ['console'], 'level': 'DEBUG', 'propagate': False}}, 'root': {'handlers': ['console'], 'level': 'WARNING'}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | '/en/login/' |
LOGOUT_REDIRECT_URL | None |
LOG_LEVEL | 'INFO' |
MANAGERS | [] |
MEDIAFILES_LOCATION | 'media' |
MEDIA_LOCATION | 'MediaStorage' |
MEDIA_ROOT | '' |
MEDIA_URL | 'https://s3-eu-west-1.amazonaws.com/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PREPEND_WWW | False |
REDIS_HOST | 'localhost' |
REDIS_PORT | '6379' |
REDIS_URL | 'redis://localhost:6379' |
REST_FRAMEWORK | {'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_simplejwt.authentication.JWTAuthentication', 'rest_framework.authentication.SessionAuthentication'), 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',)} |
ROOT_URLCONF | 'wubudu.urls' |
SECRET_KEY | '********************' |
SECRET_KEY_FALLBACKS | '********************' |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_CROSS_ORIGIN_OPENER_POLICY | 'same-origin' |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | ('HTTP_X_FORWARDED_PROTO', 'https') |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | True |
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 | 'wubudu.settings.production' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SIMPLE_JWT | {'ACCESS_TOKEN_LIFETIME:': '********************', 'REFRESH_TOKEN_LIFETIME': '********************'} |
STATICFILES_DIRS | ('/app/staticfiles',) |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_LOCATION | 'static' |
STATICFILES_STORAGE | 'whitenoise.storage.CompressedManifestStaticFilesStorage' |
STATIC_ROOT | '/app/static' |
STATIC_URL | '/static/' |
STORAGES | {'default': {'BACKEND': 'storages.backends.s3boto3.S3Boto3Storage'}, 'staticfiles': {'BACKEND': 'whitenoise.storage.CompressedManifestStaticFilesStorage'}} |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/app/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.static', 'django.template.context_processors.i18n', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'wubudu.context_processors.api_keys_context_processor']}}] |
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 | 'Europe/Warsaw' |
TINYMCE_COMPRESSOR | True |
TINYMCE_DEFAULT_CONFIG | {'cleanup_on_startup': True, 'custom_undo_redo_levels': 10, 'height': 300, 'plugins': 'table,spellchecker,paste,searchreplace', 'theme': 'silver', 'toolbar': 'undo redo | styleselect | bold italic | link image', 'width': 900} |
TINYMCE_JS_URL | '/static/tinymce/tinymce.min.js' |
TINYMCE_SPELLCHECKER | True |
TRANSLATABLE_MODEL_MODULES | ['competitions.translation', 'routines.translation'] |
USE_DEPRECATED_PYTZ | 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 | 'wubudu.wsgi.application' |
WUBUDU_LOG_LEVEL | 'DEBUG' |
X_FRAME_OPTIONS | 'DENY' |
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.