Failed lookup for key [score_b] in [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, 'headline': 'Wyniki'}]
Request Method: | GET |
---|---|
Request URL: | https://www.funkytool.pl/pl/pdf/taolu/results/3/2022-28th-polish-open-wushu-championships/ |
Django Version: | 4.2.11 |
Exception Type: | VariableDoesNotExist |
Exception Value: | Failed lookup for key [score_b] in [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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:30:00 +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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, 'headline': 'Wyniki'}] |
current | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, 'headline': 'Wyniki'}] |
current | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, 'headline': 'Wyniki'}] |
current | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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/3/2022-28th-polish-open-wushu-championships/'> |
/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': 3, 'slug': '2022-28th-polish-open-wushu-championships'} |
middleware_method | <asgiref.sync.SyncToAsync object at 0x7fc4ee68b4d0> |
request | <ASGIRequest: GET '/pl/pdf/taolu/results/3/2022-28th-polish-open-wushu-championships/'> |
response | None |
self | <django.core.handlers.asgi.ASGIHandler object at 0x7fc4ee7cf950> |
wrapped_callback | <asgiref.sync.SyncToAsync object at 0x7fc4e612c1d0> |
/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 0x7fc4e6207290> |
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': 3, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, 'slug': '2022-28th-polish-open-wushu-championships', 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>} |
self | <WeasyTemplateResponse status_code=200, "application/pdf"> |
template | <django.template.backends.django.Template object at 0x7fc4e62cb610> |
/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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, 'headline': 'Wyniki'}] |
request | <ASGIRequest: GET '/pl/pdf/taolu/results/3/2022-28th-polish-open-wushu-championships/'> |
self | <django.template.backends.django.Template object at 0x7fc4e62cb610> |
/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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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 0x7fc4e620b5b0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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 0x7fc4e620b8e0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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 0x7fc4e620ba90> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, 'headline': 'Wyniki'}] |
i | 0 |
item | <TournamentEvent: sesja 1 - plansza 2 (B)> |
len_values | 6 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 6, 'revcounter0': 5} |
node | <ForNode: for competition in session.taolucompetition_set.all, tail_len: 15> |
nodelist | ['\n <h2>', 'sesja 1', ' ', '<small>18 czerwca 2022 10: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 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]> |
/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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, 'headline': 'Wyniki'}] |
i | 0 |
item | <TaoluCompetition: Style południowe ponizej 9 lat kobiety (Formy tradycyjne), Style północne ponizej 9 lat kobiety (Formy tradycyjne)> |
len_values | 19 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 6, 'revcounter0': 5}, 'revcounter': 19, 'revcounter0': 18} |
node | <ForNode: for entry in competition.results, tail_len: 16> |
nodelist | ['\n <h4>\n ', '<p>\n' '\n' ' Style południowe ponizej 9 lat kobiety (Formy tradycyjne),<br />\n' '\n' ' Style północne ponizej 9 lat kobiety (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">A1</th>\n' ' <th class="partial-score">A2</th>\n' ' <th class="partial-score">A3</th>\n' ' <th class="partial-score">B1</th>\n' ' <th class="partial-score">B2</th>\n' ' <th class="partial-score">B3</th>\n' ' <th class="partial-score">B4</th>\n' ' <th class="final-score">A</th>\n' ' <th class="final-score">B</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 '] |
num_loopvars | 1 |
parentloop | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 6, 'revcounter0': 5} |
pop_context | False |
self | <ForNode: for competition in session.taolucompetition_set.all, tail_len: 15> |
unpack | False |
values | <QuerySet [<TaoluCompetition: Style południowe ponizej 9 lat kobiety (Formy tradycyjne), Style północne ponizej 9 lat kobiety (Formy tradycyjne)>, <TaoluCompetition: Style południowe ponizej 9 lat mężczyźni (Formy tradycyjne), Style północne ponizej 9 lat mężczyźni (Formy tradycyjne)>, <TaoluCompetition: Style południowe 9-11 lat mężczyźni (Formy tradycyjne)>, <TaoluCompetition: Style południowe 9-11 lat kobiety (Formy tradycyjne)>, <TaoluCompetition: Style południowe 12-14 lat mężczyźni (Formy tradycyjne)>, <TaoluCompetition: Style południowe 12-14 lat kobiety (Formy tradycyjne)>, <TaoluCompetition: Style południowe 15-17 lat kobiety (Formy tradycyjne), Style północne 15-17 lat kobiety (Formy tradycyjne)>, <TaoluCompetition: Style południowe 15-17 lat mężczyźni (Formy tradycyjne)>, <TaoluCompetition: Style północne 9-11 lat mężczyźni (Formy tradycyjne)>, <TaoluCompetition: Style północne 12-14 lat mężczyźni (Formy tradycyjne)>, <TaoluCompetition: Style północne 12-14 lat kobiety (Formy tradycyjne)>, <TaoluCompetition: Style północne 15-17 lat mężczyźni (Formy tradycyjne)>, <TaoluCompetition: Formy z szablą 15-17 lat kobiety (Formy tradycyjne), Formy z mieczem 15-17 lat kobiety (Formy tradycyjne)>, <TaoluCompetition: Formy z szablą ponizej 9 lat mężczyźni (Formy tradycyjne), Formy z szablą ponizej 9 lat kobiety (Formy tradycyjne)>, <TaoluCompetition: Formy z szablą 9-11 lat mężczyźni (Formy tradycyjne)>, <TaoluCompetition: Formy z szablą 9-11 lat kobiety (Formy tradycyjne)>, <TaoluCompetition: Formy z szablą 12-14 lat mężczyźni (Formy tradycyjne)>, <TaoluCompetition: Formy z szablą 12-14 lat kobiety (Formy tradycyjne)>, <TaoluCompetition: Formy z szablą 15-17 lat mężczyźni (Formy tradycyjne), Formy z mieczem 15-17 lat mężczyźni (Formy tradycyjne)>]> |
/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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, 'headline': 'Wyniki'}] |
i | 0 |
item | <TaoluEntry: Wiktoria BRZOZOWSKA Style północne> |
len_values | 5 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 6, 'revcounter0': 5}, 'revcounter': 19, 'revcounter0': 18}, 'revcounter': 5, 'revcounter0': 4} |
node | <IfNode> |
nodelist | ['\n <tr class="', 'odd', '', '">\n <td class="no">', '1', '</td>\n <td class="athlete">', 'Wiktoria BRZOZOWSKA', '</td>\n ', '\n' ' <td class="club">Shaolin Kung Fu - Szkoła Chińskich Sztuk Walki ' 'Gdynia</td>\n' ' ', '\n '] |
num_loopvars | 1 |
parentloop | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 6, 'revcounter0': 5}, 'revcounter': 19, 'revcounter0': 18} |
pop_context | False |
self | <ForNode: for entry in competition.results, tail_len: 16> |
unpack | False |
values | [<TaoluEntry: Wiktoria BRZOZOWSKA Style północne>, <TaoluEntry: Jagoda NIEWIAROWSKA Style północne>, <TaoluEntry: Maria DEJA Style południowe>, <TaoluEntry: Emilia STOPKA Style północne>, <TaoluEntry: Alicja DERŻKO Style południowe>] |
/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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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 0x7fc4e6208ca0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, 'headline': 'Wyniki'}] |
i | 0 |
item | <PartialScore: Wiktoria BRZOZOWSKA Style północne 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': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 6, 'revcounter0': 5}, 'revcounter': 19, 'revcounter0': 18}, 'revcounter': 5, 'revcounter0': 4}, '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': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 6, 'revcounter0': 5}, 'revcounter': 19, 'revcounter0': 18}, 'revcounter': 5, 'revcounter0': 4} |
pop_context | False |
self | <ForNode: for score_a in entry.group_a_scores, tail_len: 3> |
unpack | False |
values | [<PartialScore: Wiktoria BRZOZOWSKA Style północne judgeA1 4.700>, <PartialScore: Wiktoria BRZOZOWSKA Style północne judgeA2 4.700>, <PartialScore: Wiktoria BRZOZOWSKA Style północne judgeA3 4.200>] |
/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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, 'headline': 'Wyniki'}] |
func | <function public_score at 0x7fc4e79000e0> |
ignore_failures | False |
lookup | True |
obj | <TaoluEntry: Wiktoria BRZOZOWSKA Style północne> |
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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, 'headline': 'Wyniki'}] |
current | [{'True': True, 'False': False, 'None': None}, {}, {}, {'place': 3, 'slug': '2022-28th-polish-open-wushu-championships', 'view': <competitions.views.pdf.views.TaoluResultPDFView object at 0x7fc4e612d750>, 'tournament': <Tournament: XXVIII Otwarte Mistrzostwa Polski Wushu Kungfu>, 'sessions': <QuerySet [<TournamentEvent: sesja 1 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 2 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>, <TournamentEvent: sesja 3 - plansza 2 (B)>, <TournamentEvent: ceremonia nagradzania>]>, '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 | '1' |
HTTP_HOST | 'www.funkytool.pl' |
HTTP_TOTAL_ROUTE_TIME | '0' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_VIA | '1.1 vegur' |
HTTP_X_FORWARDED_FOR | '3.236.55.137' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REQUEST_ID | 'dcf58129-b9c6-4031-987c-cc4519d8c426' |
HTTP_X_REQUEST_START | '1711632600193' |
PATH_INFO | '/pl/pdf/taolu/results/3/2022-28th-polish-open-wushu-championships/' |
QUERY_STRING | '' |
REMOTE_ADDR | '10.1.31.179' |
REMOTE_HOST | '10.1.31.179' |
REMOTE_PORT | 26524 |
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.