'first_games'
Request Method: | GET |
---|---|
Request URL: | http://avocarugbystats.ddns.net:8000/pview/2577 |
Django Version: | 2.2.24 |
Exception Type: | KeyError |
Exception Value: | 'first_games' |
Exception Location: | /home/slackjack/AvocaRugbyDb/players/tables.py in render_club_games, line 699 |
Python Executable: | /usr/bin/python3 |
Python Version: | 3.6.9 |
Python Path: | ['/home/slackjack/AvocaRugbyDb', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/home/slackjack/.local/lib/python3.6/site-packages', '/usr/lib/python3.6/site-packages', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages', '/home/slackjack/.local/lib/python3.6/site-packages/odf', '/home/slackjack/.local/lib/python3.6/site-packages/odf', '/home/slackjack/.local/lib/python3.6/site-packages/odf', '/home/slackjack/.local/lib/python3.6/site-packages/odf', '/home/slackjack/.local/lib/python3.6/site-packages/odf', '/home/slackjack/.local/lib/python3.6/site-packages/odf', '/home/slackjack/.local/lib/python3.6/site-packages/odf'] |
Server time: | Tue, 19 Mar 2024 01:47:06 +0000 |
In template /home/slackjack/.local/lib/python3.6/site-packages/django_tables2/templates/django_tables2/bootstrap.html
, error at line 29
19 | {% endfor %} |
---|---|
20 | </tr> |
21 | </thead> |
22 | {% endif %} |
23 | {% endblock table.thead %} |
24 | {% block table.tbody %} |
25 | <tbody {{ table.attrs.tbody.as_html }}> |
26 | {% for row in table.paginated_rows %} |
27 | {% block table.tbody.row %} |
28 | <tr {{ row.attrs.as_html }}> |
29 | {% for column, cell in row.items %} |
30 | <td {{ column.attrs.td.as_html }}>{% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %}</td> |
31 | {% endfor %} |
32 | </tr> |
33 | {% endblock table.tbody.row %} |
34 | {% empty %} |
35 | {% if table.empty_text %} |
36 | {% block table.tbody.empty_text %} |
37 | <tr><td colspan="{{ table.columns|length }}">{{ table.empty_text }}</td></tr> |
38 | {% endblock table.tbody.empty_text %} |
39 | {% endif %} |
/home/slackjack/.local/lib/python3.6/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | KeyError('first_games',) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0xb6b5902c>> |
request | <WSGIRequest: GET '/pview/2577'> |
/home/slackjack/.local/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)…
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function player_detail at 0xaf71ddf4> |
callback_args | () |
callback_kwargs | {'pk': 2577} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0xaf34164c>> |
request | <WSGIRequest: GET '/pview/2577'> |
resolver | <URLResolver 'rugbyDb_project.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=players.views.player_stats_detail.player_detail, args=(), kwargs={'pk': 2577}, url_name=player_detail, app_names=[], namespaces=[], route=pview/<int:pk>) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0xb6b5902c> |
wrapped_callback | <function player_detail at 0xaf71ddf4> |
/home/slackjack/.local/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function player_detail at 0xaf71ddf4> |
callback_args | () |
callback_kwargs | {'pk': 2577} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0xaf34164c>> |
request | <WSGIRequest: GET '/pview/2577'> |
resolver | <URLResolver 'rugbyDb_project.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=players.views.player_stats_detail.player_detail, args=(), kwargs={'pk': 2577}, url_name=player_detail, app_names=[], namespaces=[], route=pview/<int:pk>) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0xb6b5902c> |
wrapped_callback | <function player_detail at 0xaf71ddf4> |
/home/slackjack/AvocaRugbyDb/players/views/player_stats_detail.py
in player_detail
pointstable = FemalePointsTable(pointstats.order_by('-player_points__sum'))
RequestConfig(request).configure(pointstable)
return render(request, 'players/player_stats_detail.html',
{'gamestable': gamestable, 'gamestats': gamestats,
'player': player, 'player_honours': player_honours,
'pointstable': pointstable, 'pointstats': pointstats})…
else:
error = True
return render(request, 'players/player_stats_detail.html', {'error': error})
Variable | Value |
---|---|
Case | <class 'django.db.models.expressions.Case'> |
Count | <class 'django.db.models.aggregates.Count'> |
Func | <class 'django.db.models.expressions.Func'> |
IntegerField | <class 'django.db.models.fields.IntegerField'> |
Q | <class 'django.db.models.query_utils.Q'> |
Round | <class 'players.views.player_stats_detail.player_detail.<locals>.Round'> |
Sum | <class 'django.db.models.aggregates.Sum'> |
When | <class 'django.db.models.expressions.When'> |
gamestable | <players.tables.PlayerStatsTable object at 0xaf03292c> |
gamestats | <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]> |
gender | '-' |
get_object_or_404 | <function get_object_or_404 at 0xb008b92c> |
obj | <Player: Penalty, Try> |
pk | 2577 |
player | <Player: Penalty, Try> |
player_honours | <QuerySet []> |
pointstable | <players.tables.PlayerStatsTable object at 0xaefe4aac> |
pointstats | <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]> |
request | <WSGIRequest: GET '/pview/2577'> |
/home/slackjack/.local/lib/python3.6/site-packages/django/shortcuts.py
in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Return a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)…
return HttpResponse(content, content_type, status)
def redirect(to, *args, permanent=False, **kwargs):
"""
Return an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'gamestable': <players.tables.PlayerStatsTable object at 0xaf03292c>, 'gamestats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]>, 'player': <Player: Penalty, Try>, 'player_honours': <QuerySet []>, 'pointstable': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'pointstats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]>} |
request | <WSGIRequest: GET '/pview/2577'> |
status | None |
template_name | 'players/player_stats_detail.html' |
using | None |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/loader.py
in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)…
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'gamestable': <players.tables.PlayerStatsTable object at 0xaf03292c>, 'gamestats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]>, 'player': <Player: Penalty, Try>, 'player_honours': <QuerySet []>, 'pointstable': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'pointstats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]>} |
request | <WSGIRequest: GET '/pview/2577'> |
template | <django.template.backends.django.Template object at 0xaceba10c> |
template_name | 'players/player_stats_detail.html' |
using | None |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/backends/django.py
in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)…
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'gamestable': <players.tables.PlayerStatsTable object at 0xaf03292c>, 'gamestats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]>, 'player': <Player: Penalty, Try>, 'player_honours': <QuerySet []>, 'pointstable': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'pointstats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]>}] |
request | <WSGIRequest: GET '/pview/2577'> |
self | <django.template.backends.django.Template object at 0xaceba10c> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)…
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'gamestable': <players.tables.PlayerStatsTable object at 0xaf03292c>, 'gamestats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]>, 'player': <Player: Penalty, Try>, 'player_honours': <QuerySet []>, 'pointstable': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'pointstats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]>}] |
self | <django.template.base.Template object at 0xaceba30c> |
/home/slackjack/.local/lib/python3.6/site-packages/django/test/utils.py
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}, {}, {}, {'gamestable': <players.tables.PlayerStatsTable object at 0xaf03292c>, 'gamestats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]>, 'player': <Player: Penalty, Try>, 'player_honours': <QuerySet []>, 'pointstable': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'pointstats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]>}] |
self | <django.template.base.Template object at 0xaceba30c> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '<!-- players/template/players/player_stats_detail.html 22-7-21 -->\n\n' |
bits | ['<!-- players/template/players/player_stats_detail.html 22-7-21 -->\n\n'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'gamestable': <players.tables.PlayerStatsTable object at 0xaf03292c>, 'gamestats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]>, 'player': <Player: Penalty, Try>, 'player_honours': <QuerySet []>, 'pointstable': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'pointstats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]>}] |
node | <ExtendsNode: extends "base_generic.html"> |
self | [<TextNode: '<!-- players/template/pla'>, <ExtendsNode: extends "base_generic.html">] |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'gamestable': <players.tables.PlayerStatsTable object at 0xaf03292c>, 'gamestats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]>, 'player': <Player: Penalty, Try>, 'player_honours': <QuerySet []>, 'pointstable': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'pointstats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]>}] |
self | <ExtendsNode: extends "base_generic.html"> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/loader_tags.py
in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)…
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, extra_context=None, isolated_context=False, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0xaf33142c> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: ' '>]>, 'title': <Block Node: title. Contents: [<TextNode: '\n <title class="my'>]>} |
compiled_parent | <django.template.base.Template object at 0x740f04ec> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'gamestable': <players.tables.PlayerStatsTable object at 0xaf03292c>, 'gamestats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]>, 'player': <Player: Penalty, Try>, 'player_honours': <QuerySet []>, 'pointstable': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'pointstats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]>}] |
node | <IfNode> |
self | <ExtendsNode: extends "base_generic.html"> |
/home/slackjack/.local/lib/python3.6/site-packages/django/test/utils.py
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}, {}, {}, {'gamestable': <players.tables.PlayerStatsTable object at 0xaf03292c>, 'gamestats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]>, 'player': <Player: Penalty, Try>, 'player_honours': <QuerySet []>, 'pointstable': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'pointstats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]>}] |
self | <django.template.base.Template object at 0x740f04ec> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('\n' '\n' '\n' '\n' ' </ul>\n' '\n' ' </div> <!-- navbar-collapse.// -->\n' '\n' ' </nav>\n' ' </div>\n' '\n' '</div>\n' '\n' ' ') |
bits | ['<!DOCTYPE html>\n' '<html>\n' '\n' ' <head>\n' '\n' ' <meta name="viewport" content="width=device-width, initial-scale=1">\n' '\n' '\n' ' ', '\n\n ', '\n\n ', '\n <title class="mytitle">Avoca Sharks Rugby</title>\n ', '\n\n ', '', '\n\n <link rel="stylesheet" href="', '/static/css/andablog.css', '">\n <link rel="stylesheet" href="', '/static/css/styles.css', '">\n <link rel="stylesheet" href="', '/static/css/landing1.css', '"> \n' ' <link rel="stylesheet" ' 'href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">\n' '\n' '<!-- jQuery -->\n' '<script src="https://code.jquery.com/jquery-2.2.4.min.js" ' 'integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="\n' 'crossorigin="anonymous"></script>\n' '\n' '<!-- Bootstrap files (jQuery first, then Popper.js, then Bootstrap JS) -->\n' '<link ' 'href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" ' 'rel="stylesheet" type="text/css"/>\n' '<script ' 'src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js" ' 'type="text/javascript"></script>\n' '\n' '\n' ' <link rel="stylesheet" href="', '/static/css/styles.css', '">\n' '\n' '<style>\n' '\n' 'html, body {\n' ' margin: 0;\n' ' width: 100%;\n' '}\n' '\n' '.menuicon {\n' ' max-width:200px ;\n' ' }\n' '\n' '@media screen and (max-width: 400px){\n' '\n' ' .nav {\n' ' position: absolute ;\n' ' left: 250px ;\n' ' padding-left: 40px ;\n' ' }\n' ' .menuicon {\n' ' max-width:150px;\n' ' }\n' '\n' ' .navbar-collapse.in {\n' ' overflow-y: visible ;\n' ' position:absolute ;\n' ' left: 250px ;\n' ' top: 10px ;\n' ' vertical-align: top ;\n' ' }\n' ' .dropdown-menu .dropdown-toggle:after{\n' ' border-top: .3em solid transparent;\n' ' border-right: 0;\n' ' border-bottom: .3em solid transparent;\n' ' border-left: .3em solid;\n' ' float: auto;\n' ' font-size: 1rem;\n' ' bg-color: #444;\n' ' }\n' ' .dropdown-menu .dropdown-menu{\n' ' margin-left:0; \n' ' margin-right: 0;\n' ' font-size: .3rem;\n' ' }\n' ' .dropdown-menu li{\n' ' position: relative;\n' ' font-size: .5rem;\n' ' }\n' ' .nav-item .submenu{ \n' ' float:right;\n' ' display: none;\n' ' position: static;\n' ' font-size: 1rem;\n' ' left:100%; top:-7px;\n' ' bg-color:#444;\n' ' }\n' ' .nav-item .submenu-left{ \n' ' right:100%; left:auto;\n' ' }\n' ' .nav-link {\n' ' line-height:15px ;\n' ' font-size: .8rem ;\n' ' }\n' '\n' '\n' ' .dropdown-menu > li:hover{ background-color: #f1f1f1 }\n' ' .dropdown-menu > li:hover > .submenu{\n' ' display: block;\n' ' }\n' '\n' ' .custom-toggler.navbar-toggler {\n' ' border-color: rgb(255,255,255);\n' ' }\n' '\n' '.navbar-dark .navbar-toggler {\n' ' border:0;\n' '}\n' '\n' '.navbar-dark .navbar-toggler-icon {\n' ' display:inline-block;\n' ' font:normal normal normal 14px/1 FontAwesome;\n' ' font-size:inherit;\n' ' text-rendering:auto;\n' ' background-image:none;\n' ' -webkit-font-smoothing:antialiased;\n' ' -moz-osx-font-smoothing:grayscale;\n' '}\n' '\n' '.navbar-dark .navbar-toggler-icon:before {\n' ' content:"\\f07b";\n' '}\n' '\n' '.navbar-dark .navbar-toggler[aria-expanded=true] .navbar-toggler-icon:before ' '{\n' ' content:"\\f07c";\n' '}\n' '}\n' '\n' '</style>\n' '\n' '<!--\n' '\n' '<script type="text/javascript">\n' '/// some script\n' '\n' '// jquery ready start\n' '$(document… <trimmed 9345 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'gamestable': <players.tables.PlayerStatsTable object at 0xaf03292c>, 'gamestats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]>, 'player': <Player: Penalty, Try>, 'player_honours': <QuerySet []>, 'pointstable': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'pointstats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]>}] |
node | <Block Node: content. Contents: [<TextNode: ' '>]> |
self | [<TextNode: '<!DOCTYPE html>\n<html>\n\n '>, <IfNode>, <TextNode: '\n\n '>, <Block Node: title. Contents: [<TextNode: '\n <title class="my'>]>, <TextNode: '\n\n '>, <django.template.defaulttags.LoadNode object at 0x77a6dfcc>, <TextNode: '\n\n <link rel="styleshe'>, <django.templatetags.static.StaticNode object at 0x77a6d9ac>, <TextNode: '">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x77a6d16c>, <TextNode: '">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0xaf2a9b6c>, <TextNode: '"> \n <link rel="styles'>, <django.templatetags.static.StaticNode object at 0xaf2a970c>, <TextNode: '">\n\n<style>\n\nhtml, body {'>, <Variable Node: '/static/images/ABRC-logo_wide_shadow-web.webp'>, <TextNode: '"/>\n </div>\n '>, <IfNode>, <TextNode: '\n\n\n\n </ul>\n\n '>, <Block Node: content. Contents: [<TextNode: ' '>]>, <TextNode: '\n<script>\n $("#collaps'>] |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'gamestable': <players.tables.PlayerStatsTable object at 0xaf03292c>, 'gamestats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]>, 'player': <Player: Penalty, Try>, 'player_honours': <QuerySet []>, 'pointstable': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'pointstats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]>}] |
self | <Block Node: content. Contents: [<TextNode: ' '>]> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)…
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: '\n\n<div class="row justify'>, <IfNode>, <TextNode: '\n </div>\n '>, <django.template.defaulttags.LoadNode object at 0x5a65facc>, <TextNode: '\n\n <di'>, <django_tables2.templatetags.django_tables2.RenderTableNode object at 0x5a65f3ac>, <TextNode: '\n\n </d'>, <django_tables2.templatetags.django_tables2.RenderTableNode object at 0x740f0c4c>, <TextNode: '\n </di'>, <django.template.defaulttags.URLNode object at 0x740f0b8c>, <TextNode: '" class=btn align=right>S'>, <IfNode>, <TextNode: '\n\n </div>\n'>, <IfNode>, <TextNode: '\n\n </div>\n\n </d'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0xaf33142c> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'gamestable': <players.tables.PlayerStatsTable object at 0xaf03292c>, 'gamestats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]>, 'player': <Player: Penalty, Try>, 'player_honours': <QuerySet []>, 'pointstable': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'pointstats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]>}] |
push | <Block Node: content. Contents: [<TextNode: '\n\n<div class="row justify'>, <IfNode>, <TextNode: '\n </div>\n '>, <django.template.defaulttags.LoadNode object at 0x5a65facc>, <TextNode: '\n\n <di'>, <django_tables2.templatetags.django_tables2.RenderTableNode object at 0x5a65f3ac>, <TextNode: '\n\n </d'>, <django_tables2.templatetags.django_tables2.RenderTableNode object at 0x740f0c4c>, <TextNode: '\n </di'>, <django.template.defaulttags.URLNode object at 0x740f0b8c>, <TextNode: '" class=btn align=right>S'>, <IfNode>, <TextNode: '\n\n </div>\n'>, <IfNode>, <TextNode: '\n\n </div>\n\n </d'>]> |
self | <Block Node: content. Contents: [<TextNode: ' '>]> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('\n' '\n' ' </div>\n' '\n' " <div class='mytitle3'>Club Points</div>\n" '\n' " <div class='mytable'>\n" ' ') |
bits | ['\n' '\n' '<div class="row justify-content-center">\n' '\n' ' <div class="mycolumn2">\n' '\n' ' <div class="col-sm-12">\n' '\n' ' <div class="row justify-content-center">\n' '\n' ' <div class="col-sm justify-content-center">\n' '\n' ' ', '\n' '\n' " <div class='mytitle'>Try Penalty\n" '\n' ' <h5 style="color:white; padding-bottom: 5px;">\n' ' \n' ' ' ' Current \n' ' \n' ' ✔︎\n' ' \n' ' \n' '\n' ' \n' '\n' ' </h5>\n' '\n' ' </div>\n' ' ', '\n' ' </div>\n' ' </div>\n' '\n' ' <div class="row justify-content-center">\n' ' <div class="col-sm-5 justify-content-center">\n' '\n' '\n' " <div class='mytitle3'>Club Games</div>\n" '\n' ' ', '', "\n\n <div class='mytable'>\n\n ", '\n' '\n' '\n' '<div class="table-container">\n' ' \n' ' <table class="table">\n' ' \n' ' \n' ' <thead >\n' ' <tr>\n' ' \n' ' <th >\n' ' \n' ' Club\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' Grade\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' 1st\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' 2nd\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' 3rd\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' 4th\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' Colts\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' W15\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' W7\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' W10\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' JR\n' ' \n' ' </th>\n' ' \n' ' </tr>\n' ' </thead>\n' ' \n' ' \n' ' \n' ' <tbody >\n' ' \n' ' \n' ' <tr class="even">\n' ' \n' ' <td >3</td>\n' ' \n' ' … <trimmed 5291 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'gamestable': <players.tables.PlayerStatsTable object at 0xaf03292c>, 'gamestats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]>, 'player': <Player: Penalty, Try>, 'player_honours': <QuerySet []>, 'pointstable': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'pointstats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]>}] |
node | <django_tables2.templatetags.django_tables2.RenderTableNode object at 0x740f0c4c> |
self | [<TextNode: '\n\n<div class="row justify'>, <IfNode>, <TextNode: '\n </div>\n '>, <django.template.defaulttags.LoadNode object at 0x5a65facc>, <TextNode: '\n\n <di'>, <django_tables2.templatetags.django_tables2.RenderTableNode object at 0x5a65f3ac>, <TextNode: '\n\n </d'>, <django_tables2.templatetags.django_tables2.RenderTableNode object at 0x740f0c4c>, <TextNode: '\n </di'>, <django.template.defaulttags.URLNode object at 0x740f0b8c>, <TextNode: '" class=btn align=right>S'>, <IfNode>, <TextNode: '\n\n </div>\n'>, <IfNode>, <TextNode: '\n\n </div>\n\n </d'>] |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'gamestable': <players.tables.PlayerStatsTable object at 0xaf03292c>, 'gamestats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]>, 'player': <Player: Penalty, Try>, 'player_honours': <QuerySet []>, 'pointstable': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'pointstats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]>}] |
self | <django_tables2.templatetags.django_tables2.RenderTableNode object at 0x740f0c4c> |
/home/slackjack/.local/lib/python3.6/site-packages/django_tables2/templatetags/django_tables2.py
in render
# TemplateColumn benefits from being able to use the context
# that the table is rendered in. The current way this is
# achieved is to temporarily attach the context to the table,
# which TemplateColumn then looks for and uses.
table.context = context
table.before_render(request)
return template.render(context={"table": table}, request=request)…
finally:
del table.context
@register.tag
def render_table(parser, token):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'gamestable': <players.tables.PlayerStatsTable object at 0xaf03292c>, 'gamestats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player_games__sum': 3, 'best_fairest__sum': 0, 'first_games': None, 'second_games': 1, 'third_games': 0, 'fourth_games': None, 'colts_games': None, 'w_games': None, 'w10_games': 2, 'w7_games': None, 'grade_games': 3, 'junior_games': None, 'sub_games': None}]>, 'player': <Player: Penalty, Try>, 'player_honours': <QuerySet []>, 'pointstable': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'pointstats': <QuerySet [{'player__id': 2577, 'player': 2577, 'player__last_name': 'Penalty', 'player__first_name': 'Try', 'player__current': True, 'player_points__sum': 35, 'first_points': None, 'second_points': 14, 'third_points': 7, 'fourth_points': None, 'colts_points': None, 'w_points': None, 'w10_points': 14, 'w7_points': None, 'junior_points': None, 'sub_points': None, 'grade_points': 35, 'club_points': 35}]>}] |
request | <WSGIRequest: GET '/pview/2577'> |
self | <django_tables2.templatetags.django_tables2.RenderTableNode object at 0x740f0c4c> |
table | <players.tables.PlayerStatsTable object at 0xaefe4aac> |
template | <django.template.backends.django.Template object at 0xaf04818c> |
template_name | 'django_tables2/bootstrap.html' |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/backends/django.py
in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)…
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
request | <WSGIRequest: GET '/pview/2577'> |
self | <django.template.backends.django.Template object at 0xaf04818c> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)…
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
self | <django.template.base.Template object at 0xaf048e6c> |
/home/slackjack/.local/lib/python3.6/site-packages/django/test/utils.py
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}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
self | <django.template.base.Template object at 0xaf048e6c> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n' |
bits | ['', '\n', '', '\n'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
node | <Block Node: table-wrapper. Contents: [<TextNode: '\n<div class="table-contai'>, <Block Node: table. Contents: [<TextNode: '\n <table '>, <django.template.library.SimpleNode object at 0xae8dd6ac>, <TextNode: '>\n '>, <Block Node: table.thead. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n '>, <Block Node: table.tbody. Contents: [<TextNode: '\n <tbody '>, <Variable Node: table.attrs.tbody.as_html>, <TextNode: '>\n '>, <ForNode: for row in table.paginated_rows, tail_len: 3>, <TextNode: '\n </tbody>'>]>, <TextNode: '\n '>, <Block Node: table.tfoot. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n </table>\n '>]>, <TextNode: '\n\n '>, <Block Node: pagination. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n</div>\n'>]> |
self | [<django.template.defaulttags.LoadNode object at 0xae8dde4c>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0xae8ddcac>, <TextNode: '\n'>, <Block Node: table-wrapper. Contents: [<TextNode: '\n<div class="table-contai'>, <Block Node: table. Contents: [<TextNode: '\n <table '>, <django.template.library.SimpleNode object at 0xae8dd6ac>, <TextNode: '>\n '>, <Block Node: table.thead. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n '>, <Block Node: table.tbody. Contents: [<TextNode: '\n <tbody '>, <Variable Node: table.attrs.tbody.as_html>, <TextNode: '>\n '>, <ForNode: for row in table.paginated_rows, tail_len: 3>, <TextNode: '\n </tbody>'>]>, <TextNode: '\n '>, <Block Node: table.tfoot. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n </table>\n '>]>, <TextNode: '\n\n '>, <Block Node: pagination. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n</div>\n'>]>, <TextNode: '\n'>] |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
self | <Block Node: table-wrapper. Contents: [<TextNode: '\n<div class="table-contai'>, <Block Node: table. Contents: [<TextNode: '\n <table '>, <django.template.library.SimpleNode object at 0xae8dd6ac>, <TextNode: '>\n '>, <Block Node: table.thead. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n '>, <Block Node: table.tbody. Contents: [<TextNode: '\n <tbody '>, <Variable Node: table.attrs.tbody.as_html>, <TextNode: '>\n '>, <ForNode: for row in table.paginated_rows, tail_len: 3>, <TextNode: '\n </tbody>'>]>, <TextNode: '\n '>, <Block Node: table.tfoot. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n </table>\n '>]>, <TextNode: '\n\n '>, <Block Node: pagination. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n</div>\n'>]> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/loader_tags.py
in render
return "<Block Node: %s. Contents: %r>" % (self.name, self.nodelist)
def render(self, context):
block_context = context.render_context.get(BLOCK_CONTEXT_KEY)
with context.push():
if block_context is None:
context['block'] = self
result = self.nodelist.render(context)…
else:
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)
Variable | Value |
---|---|
block_context | None |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
self | <Block Node: table-wrapper. Contents: [<TextNode: '\n<div class="table-contai'>, <Block Node: table. Contents: [<TextNode: '\n <table '>, <django.template.library.SimpleNode object at 0xae8dd6ac>, <TextNode: '>\n '>, <Block Node: table.thead. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n '>, <Block Node: table.tbody. Contents: [<TextNode: '\n <tbody '>, <Variable Node: table.attrs.tbody.as_html>, <TextNode: '>\n '>, <ForNode: for row in table.paginated_rows, tail_len: 3>, <TextNode: '\n </tbody>'>]>, <TextNode: '\n '>, <Block Node: table.tfoot. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n </table>\n '>]>, <TextNode: '\n\n '>, <Block Node: pagination. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n</div>\n'>]> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n<div class="table-container">\n ' |
bits | ['\n<div class="table-container">\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
node | <Block Node: table. Contents: [<TextNode: '\n <table '>, <django.template.library.SimpleNode object at 0xae8dd6ac>, <TextNode: '>\n '>, <Block Node: table.thead. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n '>, <Block Node: table.tbody. Contents: [<TextNode: '\n <tbody '>, <Variable Node: table.attrs.tbody.as_html>, <TextNode: '>\n '>, <ForNode: for row in table.paginated_rows, tail_len: 3>, <TextNode: '\n </tbody>'>]>, <TextNode: '\n '>, <Block Node: table.tfoot. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n </table>\n '>]> |
self | [<TextNode: '\n<div class="table-contai'>, <Block Node: table. Contents: [<TextNode: '\n <table '>, <django.template.library.SimpleNode object at 0xae8dd6ac>, <TextNode: '>\n '>, <Block Node: table.thead. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n '>, <Block Node: table.tbody. Contents: [<TextNode: '\n <tbody '>, <Variable Node: table.attrs.tbody.as_html>, <TextNode: '>\n '>, <ForNode: for row in table.paginated_rows, tail_len: 3>, <TextNode: '\n </tbody>'>]>, <TextNode: '\n '>, <Block Node: table.tfoot. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n </table>\n '>]>, <TextNode: '\n\n '>, <Block Node: pagination. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n</div>\n'>] |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
self | <Block Node: table. Contents: [<TextNode: '\n <table '>, <django.template.library.SimpleNode object at 0xae8dd6ac>, <TextNode: '>\n '>, <Block Node: table.thead. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n '>, <Block Node: table.tbody. Contents: [<TextNode: '\n <tbody '>, <Variable Node: table.attrs.tbody.as_html>, <TextNode: '>\n '>, <ForNode: for row in table.paginated_rows, tail_len: 3>, <TextNode: '\n </tbody>'>]>, <TextNode: '\n '>, <Block Node: table.tfoot. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n </table>\n '>]> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/loader_tags.py
in render
return "<Block Node: %s. Contents: %r>" % (self.name, self.nodelist)
def render(self, context):
block_context = context.render_context.get(BLOCK_CONTEXT_KEY)
with context.push():
if block_context is None:
context['block'] = self
result = self.nodelist.render(context)…
else:
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)
Variable | Value |
---|---|
block_context | None |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
self | <Block Node: table. Contents: [<TextNode: '\n <table '>, <django.template.library.SimpleNode object at 0xae8dd6ac>, <TextNode: '>\n '>, <Block Node: table.thead. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n '>, <Block Node: table.tbody. Contents: [<TextNode: '\n <tbody '>, <Variable Node: table.attrs.tbody.as_html>, <TextNode: '>\n '>, <ForNode: for row in table.paginated_rows, tail_len: 3>, <TextNode: '\n </tbody>'>]>, <TextNode: '\n '>, <Block Node: table.tfoot. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n </table>\n '>]> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n ' |
bits | ['\n <table ', 'class="table"', '>\n ', '\n' ' \n' ' <thead >\n' ' <tr>\n' ' \n' ' <th >\n' ' \n' ' Club\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' Grade\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' 1st\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' 2nd\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' 3rd\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' 4th\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' Colts\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' W15\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' W7\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' W10\n' ' \n' ' </th>\n' ' \n' ' <th >\n' ' \n' ' JR\n' ' \n' ' </th>\n' ' \n' ' </tr>\n' ' </thead>\n' ' \n' ' ', '\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
node | <Block Node: table.tbody. Contents: [<TextNode: '\n <tbody '>, <Variable Node: table.attrs.tbody.as_html>, <TextNode: '>\n '>, <ForNode: for row in table.paginated_rows, tail_len: 3>, <TextNode: '\n </tbody>'>]> |
self | [<TextNode: '\n <table '>, <django.template.library.SimpleNode object at 0xae8dd6ac>, <TextNode: '>\n '>, <Block Node: table.thead. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n '>, <Block Node: table.tbody. Contents: [<TextNode: '\n <tbody '>, <Variable Node: table.attrs.tbody.as_html>, <TextNode: '>\n '>, <ForNode: for row in table.paginated_rows, tail_len: 3>, <TextNode: '\n </tbody>'>]>, <TextNode: '\n '>, <Block Node: table.tfoot. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n </table>\n '>] |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
self | <Block Node: table.tbody. Contents: [<TextNode: '\n <tbody '>, <Variable Node: table.attrs.tbody.as_html>, <TextNode: '>\n '>, <ForNode: for row in table.paginated_rows, tail_len: 3>, <TextNode: '\n </tbody>'>]> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/loader_tags.py
in render
return "<Block Node: %s. Contents: %r>" % (self.name, self.nodelist)
def render(self, context):
block_context = context.render_context.get(BLOCK_CONTEXT_KEY)
with context.push():
if block_context is None:
context['block'] = self
result = self.nodelist.render(context)…
else:
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)
Variable | Value |
---|---|
block_context | None |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
self | <Block Node: table.tbody. Contents: [<TextNode: '\n <tbody '>, <Variable Node: table.attrs.tbody.as_html>, <TextNode: '>\n '>, <ForNode: for row in table.paginated_rows, tail_len: 3>, <TextNode: '\n </tbody>'>]> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '>\n ' |
bits | ['\n <tbody ', '', '>\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
node | <ForNode: for row in table.paginated_rows, tail_len: 3> |
self | [<TextNode: '\n <tbody '>, <Variable Node: table.attrs.tbody.as_html>, <TextNode: '>\n '>, <ForNode: for row in table.paginated_rows, tail_len: 3>, <TextNode: '\n </tbody>'>] |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
self | <ForNode: for row in table.paginated_rows, tail_len: 3> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/defaulttags.py
in render
unpacked_vars = dict(zip(self.loopvars, item))
pop_context = True
context.update(unpacked_vars)
else:
context[self.loopvars[0]] = item
for node in self.nodelist_loop:
nodelist.append(node.render_annotated(context))…
if pop_context:
# Pop the loop variables pushed on to the context to avoid
# the context ending up in an inconsistent state when other
# tags (e.g., include and with) push data to context.
context.pop()
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
i | 0 |
item | <django_tables2.rows.BoundRow object at 0xae8dd54c> |
len_values | 1 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': True, 'parentloop': {}, 'revcounter': 1, 'revcounter0': 0} |
node | <Block Node: table.tbody.row. Contents: [<TextNode: '\n <tr '>, <Variable Node: row.attrs.as_html>, <TextNode: '>\n '>, <ForNode: for column, cell in row.items, tail_len: 5>, <TextNode: '\n </tr'>]> |
nodelist | ['\n '] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <ForNode: for row in table.paginated_rows, tail_len: 3> |
unpack | False |
values | <django_tables2.rows.BoundRows object at 0xaceba06c> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
self | <Block Node: table.tbody.row. Contents: [<TextNode: '\n <tr '>, <Variable Node: row.attrs.as_html>, <TextNode: '>\n '>, <ForNode: for column, cell in row.items, tail_len: 5>, <TextNode: '\n </tr'>]> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/loader_tags.py
in render
return "<Block Node: %s. Contents: %r>" % (self.name, self.nodelist)
def render(self, context):
block_context = context.render_context.get(BLOCK_CONTEXT_KEY)
with context.push():
if block_context is None:
context['block'] = self
result = self.nodelist.render(context)…
else:
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)
Variable | Value |
---|---|
block_context | None |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
self | <Block Node: table.tbody.row. Contents: [<TextNode: '\n <tr '>, <Variable Node: row.attrs.as_html>, <TextNode: '>\n '>, <ForNode: for column, cell in row.items, tail_len: 5>, <TextNode: '\n </tr'>]> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '>\n ' |
bits | ['\n <tr ', 'class="even"', '>\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
node | <ForNode: for column, cell in row.items, tail_len: 5> |
self | [<TextNode: '\n <tr '>, <Variable Node: row.attrs.as_html>, <TextNode: '>\n '>, <ForNode: for column, cell in row.items, tail_len: 5>, <TextNode: '\n </tr'>] |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
self | <ForNode: for column, cell in row.items, tail_len: 5> |
/home/slackjack/.local/lib/python3.6/site-packages/django/template/defaulttags.py
in render
else:
parentloop = {}
with context.push():
values = self.sequence.resolve(context, ignore_failures=True)
if values is None:
values = []
if not hasattr(values, '__len__'):
values = list(values)…
len_values = len(values)
if len_values < 1:
return self.nodelist_empty.render(context)
nodelist = []
if self.is_reversed:
values = reversed(values)
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>}] |
parentloop | {'counter': 1, 'counter0': 0, 'first': True, 'last': True, 'parentloop': {}, 'revcounter': 1, 'revcounter0': 0} |
self | <ForNode: for column, cell in row.items, tail_len: 5> |
values | <generator object BoundRow.items at 0x3a18e74c> |
/home/slackjack/.local/lib/python3.6/site-packages/django_tables2/rows.py
in items
*cell* is ``row[name]`` -- the rendered unicode value that should be
``rendered within ``<td>``.
"""
for column in self.table.columns:
# column gets some attributes relevant only relevant in this iteration,
# used to allow passing the value/record to a callable Column.attrs /
# Table.attrs item.
column.current_value = self.get_cell(column.name)…
column.current_record = self.record
yield (column, column.current_value)
class BoundPinnedRow(BoundRow):
"""
Variable | Value |
---|---|
column | <django_tables2.columns.base.BoundColumn object at 0xaef4ae0c> |
self | <django_tables2.rows.BoundRow object at 0xae8dd54c> |
/home/slackjack/.local/lib/python3.6/site-packages/django_tables2/rows.py
in get_cell
"""
Returns the final rendered html for a cell in the row, given the name
of a column.
"""
bound_column = self.table.columns[name]
return self._get_and_render_with(
bound_column, render_func=self._call_render, default=bound_column.default…
)
def _call_render(self, bound_column, value=None):
"""
Call the column's render method with appropriate kwargs
"""
Variable | Value |
---|---|
bound_column | <django_tables2.columns.base.BoundColumn object at 0xaef4ae0c> |
name | 'club_games' |
self | <django_tables2.rows.BoundRow object at 0xae8dd54c> |
/home/slackjack/.local/lib/python3.6/site-packages/django_tables2/rows.py
in _get_and_render_with
if isinstance(column, BaseLinkColumn) and column.text is not None:
return render_func(bound_column)
is_manytomanycolumn = isinstance(column, ManyToManyColumn)
if value in column.empty_values or (is_manytomanycolumn and not value.exists()):
return default
return render_func(bound_column, value)…
def _optional_cell_arguments(self, bound_column, value):
"""
Defines the arguments that will optionally be passed while calling the
cell's rendering or value getter if that function has one of these as a
keyword argument.
Variable | Value |
---|---|
accessor | 'club_games' |
bound_column | <django_tables2.columns.base.BoundColumn object at 0xaef4ae0c> |
column | <django_tables2.columns.base.Column object at 0xae05398c> |
default | '—' |
is_manytomanycolumn | False |
penultimate | {'club_points': 35, 'colts_points': None, 'first_points': None, 'fourth_points': None, 'grade_points': 35, 'junior_points': None, 'player': 2577, 'player__current': True, 'player__first_name': 'Try', 'player__id': 2577, 'player__last_name': 'Penalty', 'player_points__sum': 35, 'second_points': 14, 'sub_points': None, 'third_points': 7, 'w10_points': 14, 'w7_points': None, 'w_points': None} |
remainder | 'club_games' |
render_func | <bound method BoundRow._call_render of <django_tables2.rows.BoundRow object at 0xae8dd54c>> |
self | <django_tables2.rows.BoundRow object at 0xae8dd54c> |
value | None |
/home/slackjack/.local/lib/python3.6/site-packages/django_tables2/rows.py
in _call_render
)
def _call_render(self, bound_column, value=None):
"""
Call the column's render method with appropriate kwargs
"""
render_kwargs = self._optional_cell_arguments(bound_column, value)
content = call_with_appropriate(bound_column.render, render_kwargs)…
return bound_column.link(content, **render_kwargs) if bound_column.link else content
def get_cell_value(self, name):
"""
Returns the final rendered value (excluding any html) for a cell in the
Variable | Value |
---|---|
bound_column | <django_tables2.columns.base.BoundColumn object at 0xaef4ae0c> |
render_kwargs | {'bound_column': <django_tables2.columns.base.BoundColumn object at 0xaef4ae0c>, 'bound_row': <django_tables2.rows.BoundRow object at 0xae8dd54c>, 'column': <django_tables2.columns.base.Column object at 0xae05398c>, 'record': {'club_points': 35, 'colts_points': None, 'first_points': None, 'fourth_points': None, 'grade_points': 35, 'junior_points': None, 'player': 2577, 'player__current': True, 'player__first_name': 'Try', 'player__id': 2577, 'player__last_name': 'Penalty', 'player_points__sum': 35, 'second_points': 14, 'sub_points': None, 'third_points': 7, 'w10_points': 14, 'w7_points': None, 'w_points': None}, 'table': <players.tables.PlayerStatsTable object at 0xaefe4aac>, 'value': None} |
self | <django_tables2.rows.BoundRow object at 0xae8dd54c> |
value | None |
/home/slackjack/.local/lib/python3.6/site-packages/django_tables2/utils.py
in call_with_appropriate
if not kwargs_name:
kwargs = {key: kwargs[key] for key in kwargs if key in args}
# if any argument of fn is not in kwargs, just return None
if any(arg not in kwargs for arg in args):
return None
return fn(**kwargs)…
def computed_values(d, kwargs=None):
"""
Returns a new `dict` that has callable values replaced with the return values.
Variable | Value |
---|---|
args | ('record', 'value') |
fn | <bound method PlayerStatsTable.render_club_games of <players.tables.PlayerStatsTable object at 0xaefe4aac>> |
kwargs | {'record': {'club_points': 35, 'colts_points': None, 'first_points': None, 'fourth_points': None, 'grade_points': 35, 'junior_points': None, 'player': 2577, 'player__current': True, 'player__first_name': 'Try', 'player__id': 2577, 'player__last_name': 'Penalty', 'player_points__sum': 35, 'second_points': 14, 'sub_points': None, 'third_points': 7, 'w10_points': 14, 'w7_points': None, 'w_points': None}, 'value': None} |
kwargs_name | None |
/home/slackjack/AvocaRugbyDb/players/tables.py
in render_club_games
w10_games = tables.Column(verbose_name='W10')
junior_games = tables.Column(verbose_name='JR')
def render_club_games(self, record, value):
return int(
int(record['first_games'] or 0) + int(record['second_games'] or 0) + int(record['third_games'] or 0) + int(
record['fourth_games'] or 0) + int(record['colts_games'] or 0) + int(record['w_games'] or 0) + int(
record['w10_games'] or 0) + int(record['w7_games'] or 0) + int(record['junior_games'] or 0))…
def render_grade_games(self, record, value):
return int(
int(record['first_games'] or 0) + int(record['second_games'] or 0) + int(record['third_games'] or 0) + int(
record['fourth_games'] or 0) + int(record['colts_games'] or 0) + int(record['w_games'] or 0) + int(
record['w10_games'] or 0) + int(record['w7_games'] or 0))
Variable | Value |
---|---|
record | {'club_points': 35, 'colts_points': None, 'first_points': None, 'fourth_points': None, 'grade_points': 35, 'junior_points': None, 'player': 2577, 'player__current': True, 'player__first_name': 'Try', 'player__id': 2577, 'player__last_name': 'Penalty', 'player_points__sum': 35, 'second_points': 14, 'sub_points': None, 'third_points': 7, 'w10_points': 14, 'w7_points': None, 'w_points': None} |
self | <players.tables.PlayerStatsTable object at 0xaefe4aac> |
value | None |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | 'text/plain' |
DBUS_SESSION_BUS_ADDRESS | 'unix:path=/run/user/1000/bus' |
DJANGO_SETTINGS_MODULE | 'rugbyDb_project.settings' |
GATEWAY_INTERFACE | 'CGI/1.1' |
HOME | '/home/slackjack' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'avocarugbystats.ddns.net:8000' |
HTTP_USER_AGENT | 'claudebot' |
LANG | 'en_AU.UTF-8' |
LANGUAGE | 'en_AU:en' |
LESSCLOSE | '/usr/bin/lesspipe %s %s' |
LESSOPEN | '| /usr/bin/lesspipe %s' |
LOGNAME | 'slackjack' |
LS_COLORS | 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:' |
'/var/mail/slackjack' |
|
OLDPWD | '/home/slackjack' |
PATH | '/home/jack/AvocaRugbyDb/newvenv/bin:/home/slackjack/bin:/home/slackjack/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin' |
PATH_INFO | '/pview/2577' |
PS1 | ('(newvenv) \\[\\e]0;\\u@\\h: ' '\\w\\a\\]${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]\\$ ') |
PWD | '/home/slackjack/AvocaRugbyDb' |
QT_QPA_PLATFORMTHEME | 'appmenu-qt5' |
QUERY_STRING | '' |
REMOTE_ADDR | '34.230.84.106' |
REMOTE_HOST | '' |
REQUEST_METHOD | 'GET' |
RUN_MAIN | 'true' |
SCRIPT_NAME | '' |
SERVER_NAME | 'Ubuntu-Lenovo' |
SERVER_PORT | '8000' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'WSGIServer/0.2' |
SHELL | '/bin/bash' |
SHLVL | '1' |
SSH_CLIENT | '192.168.0.5 54559 22' |
SSH_CONNECTION | '192.168.0.5 54559 192.168.0.9 22' |
SSH_TTY | '/dev/pts/1' |
S_COLORS | 'auto' |
TERM | 'xterm-256color' |
TZ | 'UTC' |
USER | 'slackjack' |
VIRTUAL_ENV | '/home/jack/AvocaRugbyDb/newvenv' |
XDG_DATA_DIRS | '/usr/local/share:/usr/share:/var/lib/snapd/desktop' |
XDG_RUNTIME_DIR | '/run/user/1000' |
XDG_SESSION_ID | '5' |
_ | '/usr/bin/nohup' |
wsgi.errors | <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <django.core.handlers.wsgi.LimitedStream object at 0x92d5c0ec> |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
rugbyDb_project.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/slackjack/AvocaRugbyDb' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/home/slackjack/AvocaRugbyDb/db.sqlite3', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DEBUG_TOOLBAR_PATCH_SETTINGS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_AUTO_FIELD | 'django.db.models.AutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.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 |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
IMPORT_EXPORT_USE_TRANSACTIONS | True |
INSTALLED_APPS | ['import_export', 'django_filters', 'bootstrap3', 'django_forms_bootstrap', 'django_tables2', 'players.apps.PlayersConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'andablog', 'taggit', 'photologue', 'sortedm2m'] |
INTERNAL_IPS | ['127.0.0.1'] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | '/' |
MANAGERS | [] |
MEDIA_ROOT | 'players/' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'rugbyDb_project.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'rugbyDb_project.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | None |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/slackjack/AvocaRugbyDb/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.i18n']}}] |
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 | 'UTC' |
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 | 'rugbyDb_project.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.