The 'obrazek' attribute has no file associated with it.
Request Method: | GET |
---|---|
Request URL: | http://navodyzfrancie.cz/djeco/stolni_hry/?page=2 |
Django Version: | 1.11.2 |
Exception Type: | ValueError |
Exception Value: | The 'obrazek' attribute has no file associated with it. |
Exception Location: | /var/www/navodyzfrancie.cz/venv/lib/python3.6/site-packages/django/db/models/fields/files.py in _require_file, line 46 |
Python Executable: | /var/www/navodyzfrancie.cz/venv/bin/python3.6 |
Python Version: | 3.6.3 |
Python Path: | ['/var/www/navodyzfrancie.cz/mysite', '/var/www/navodyzfrancie.cz/venv/lib/python36.zip', '/var/www/navodyzfrancie.cz/venv/lib/python3.6', '/var/www/navodyzfrancie.cz/venv/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/var/www/navodyzfrancie.cz/venv/lib/python3.6/site-packages'] |
Server time: | Fri, 29 Mar 2024 13:01:30 +0100 |
In template /var/www/navodyzfrancie.cz/mysite/mysite/templates/base.html
, error at line 0
1 | {% load staticfiles %} |
---|---|
2 | <!DOCTYPE html> |
3 | <html lang="cs"> |
4 | |
5 | <head> |
6 | <link rel="shortcut icon" type="image/x-icon" href="{% static 'logo.png' %}" /> |
7 | <link rel="stylesheet" href="{% static 'bootstrap.css' %}"> |
8 | <link rel="stylesheet" href="{% static 'main.css' %}"> |
9 | <link rel="stylesheet" href="{% static 'animations.css' %}"> |
10 | <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.0/css/all.css" integrity="sha384-Mmxa0mLqhmOeaE8vgOSbKacftZcsNYDjQzuCOm6D02luYSzBG8vpaOykv9lFQ51Y" crossorigin="anonymous"> |
/var/www/navodyzfrancie.cz/venv/lib/python3.6/site-packages/django/template/base.py
in _resolve_lookup
detail and shouldn't be called by external code. Use Variable.resolve()
instead.
"""
current = context
try: # catch-all for silent variable failures
for bit in self.lookups:
try: # dictionary lookup
current = current[bit]...
# ValueError/IndexError are for numpy.array lookup on
# numpy < 1.9 and 1.9+ respectively
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(type(current), bit):
Variable | Value |
---|---|
bit | 'url' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
current | <ImageFieldFile: None> |
self | <Variable: 'x.obrazek.url'> |
template_name | 'djeco.html' |
/var/www/navodyzfrancie.cz/venv/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, assigned=available_attrs(get_response))
def inner(request):
try:
response = get_response(request)...
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | ValueError("The 'obrazek' attribute has no file associated with it.",) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fc39b0f6940>> |
request | <WSGIRequest: GET '/djeco/stolni_hry/?page=2'> |
/var/www/navodyzfrancie.cz/venv/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
return response
def process_exception_by_middleware(self, exception, request):
"""
Pass the exception to the exception middleware. If no middleware
Variable | Value |
---|---|
callback | <function DjangoList at 0x7fc39a7ef2f0> |
callback_args | () |
callback_kwargs | {'slug': 'stolni_hry'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fc39b0b8080>> |
request | <WSGIRequest: GET '/djeco/stolni_hry/?page=2'> |
resolver | <RegexURLResolver 'mysite.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=Guides.views.DjangoList, args=(), kwargs={'slug': 'stolni_hry'}, url_name=None, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fc39b0f6940> |
wrapped_callback | <function DjangoList at 0x7fc39a7ef2f0> |
/var/www/navodyzfrancie.cz/venv/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
raise ValueError(
"%s.process_template_response didn't return an "
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
return response
def process_exception_by_middleware(self, exception, request):
Variable | Value |
---|---|
callback | <function DjangoList at 0x7fc39a7ef2f0> |
callback_args | () |
callback_kwargs | {'slug': 'stolni_hry'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fc39b0b8080>> |
request | <WSGIRequest: GET '/djeco/stolni_hry/?page=2'> |
resolver | <RegexURLResolver 'mysite.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=Guides.views.DjangoList, args=(), kwargs={'slug': 'stolni_hry'}, url_name=None, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fc39b0f6940> |
wrapped_callback | <function DjangoList at 0x7fc39a7ef2f0> |
/var/www/navodyzfrancie.cz/venv/lib/python3.6/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Returns the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content...
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
retval | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/var/www/navodyzfrancie.cz/venv/lib/python3.6/site-packages/django/template/response.py
in rendered_content
This *does not* set the final content of the response. To set the
response content, you must either call render(), or set the
content explicitly using the value of this property.
"""
template = self.resolve_template(self.template_name)
context = self.resolve_context(self.context_data)
content = template.render(context, self._request)...
return content
def add_post_render_callback(self, callback):
"""Adds a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
context | {'is_paginated': True, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'page_obj': <Page 2 of 11>, 'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7fc398f7b710> |
/var/www/navodyzfrancie.cz/venv/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}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
request | <WSGIRequest: GET '/djeco/stolni_hry/?page=2'> |
self | <django.template.backends.django.Template object at 0x7fc398f7b710> |
/var/www/navodyzfrancie.cz/venv/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}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
self | <django.template.base.Template object at 0x7fc398f7bf60> |
/var/www/navodyzfrancie.cz/venv/lib/python3.6/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
self | <django.template.base.Template object at 0x7fc398f7bf60> |
/var/www/navodyzfrancie.cz/venv/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(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
/var/www/navodyzfrancie.cz/venv/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}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
self | <ExtendsNode: extends "base.html"> |
/var/www/navodyzfrancie.cz/venv/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, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7fc398724358> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n'>]>} |
compiled_parent | <django.template.base.Template object at 0x7fc3986e6630> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
node | <django.template.defaulttags.LoadNode object at 0x7fc3986e6240> |
self | <ExtendsNode: extends "base.html"> |
/var/www/navodyzfrancie.cz/venv/lib/python3.6/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
self | <django.template.base.Template object at 0x7fc3986e6630> |
/var/www/navodyzfrancie.cz/venv/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(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('">\n' ' <link rel="stylesheet" ' 'href="https://use.fontawesome.com/releases/v5.8.0/css/all.css" ' 'integrity="sha384-Mmxa0mLqhmOeaE8vgOSbKacftZcsNYDjQzuCOm6D02luYSzBG8vpaOykv9lFQ51Y" ' 'crossorigin="anonymous">\n' ' <meta charset="UTF-8">\n' ' <title>Patagonie návody</title>\n' '</head>\n' '\n' '<body>\n' '\n') |
bits | ['', '\n' '<!DOCTYPE html>\n' '<html lang="cs">\n' '\n' '<head>\n' ' <link rel="shortcut icon" type="image/x-icon" href="', '/static/logo.png', '" />\n <link rel="stylesheet" href="', '/static/bootstrap.css', '">\n <link rel="stylesheet" href="', '/static/main.css', '">\n <link rel="stylesheet" href="', '/static/animations.css', '">\n' ' <link rel="stylesheet" ' 'href="https://use.fontawesome.com/releases/v5.8.0/css/all.css" ' 'integrity="sha384-Mmxa0mLqhmOeaE8vgOSbKacftZcsNYDjQzuCOm6D02luYSzBG8vpaOykv9lFQ51Y" ' 'crossorigin="anonymous">\n' ' <meta charset="UTF-8">\n' ' <title>Patagonie návody</title>\n' '</head>\n' '\n' '<body>\n' '\n'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
node | <Block Node: content. Contents: [<TextNode: '\n'>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7fc3986e6240>, <TextNode: '\n<!DOCTYPE html>\n<html la'>, <django.templatetags.static.StaticNode object at 0x7fc398e90da0>, <TextNode: '" />\n <link rel="style'>, <django.templatetags.static.StaticNode object at 0x7fc398e90400>, <TextNode: '">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x7fc399183a90>, <TextNode: '">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x7fc3991833c8>, <TextNode: '">\n <link rel="stylesh'>, <Block Node: content. Contents: [<TextNode: '\n'>]>, <TextNode: '\n\n\n<script src="https://c'>] |
/var/www/navodyzfrancie.cz/venv/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}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
self | <Block Node: content. Contents: [<TextNode: '\n'>]> |
/var/www/navodyzfrancie.cz/venv/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\n<!-- Button trigger mo'>, <django.templatetags.static.StaticNode object at 0x7fc398724940>, <TextNode: '">\n <a href="/"> <img '>, <django.templatetags.static.StaticNode object at 0x7fc398724208>, <TextNode: '"></a>\n <div class="in'>, <For Node: for x in obj_list, tail_len: 23>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n</div>\n\n\n\n\n'>, <IfNode>, <TextNode: '\n\n\n\n\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7fc398724358> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
push | <Block Node: content. Contents: [<TextNode: '\n\n\n<!-- Button trigger mo'>, <django.templatetags.static.StaticNode object at 0x7fc398724940>, <TextNode: '">\n <a href="/"> <img '>, <django.templatetags.static.StaticNode object at 0x7fc398724208>, <TextNode: '"></a>\n <div class="in'>, <For Node: for x in obj_list, tail_len: 23>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n</div>\n\n\n\n\n'>, <IfNode>, <TextNode: '\n\n\n\n\n'>]> |
self | <Block Node: content. Contents: [<TextNode: '\n'>]> |
/var/www/navodyzfrancie.cz/venv/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(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('"></a>\n' ' <div class="inside-form">\n' ' <form method="GET">\n' ' <input class="textbox" name="search" placeholder="Hledat návod: ' 'např. DJ09500">\n' ' <input value="✔" type="submit" class="button">\n' ' </form>\n' ' </div>\n' '</div>\n' '\n' '<ul class="nav justify-content-center" id="catnavbar">\n' ' <li class="nav-item">\n' ' <a class="nav-link" href="/djeco/">Vše</a>\n' ' </li>\n' ' <li class="nav-item">\n' ' <a class="nav-link" href="/djeco/stolni_hry/">Stolní hry</a>\n' ' </li>\n' ' <li class="nav-item">\n' ' <a class="nav-link" href="/djeco/karetni_hry/">Karetní hry</a>\n' ' </li>\n' ' <li class="nav-item">\n' ' <a class="nav-link" href="/djeco/minihry/">Minihry</a>\n' ' </li>\n' ' <li class="nav-item">\n' ' <a class="nav-link" href="/djeco/pro_nejmensi/">Pro nejmenší</a>\n' ' </li>\n' ' <li class="nav-item">\n' ' <a class="nav-link" href="/djeco/ostatni/">Ostatní</a>\n' ' </li>\n' '</ul>\n' '\n' '<div class="container" >\n' ' <div class="row">\n' ' ') |
bits | ['\n' '\n' '\n' '<!-- Button trigger modal -->\n' '\n' '\n' '\n' '\n' '<div class="search-box">\n' ' <img src="', '/static/djeco-search.jpeg', '">\n <a href="/"> <img id="home" src="', '/static/arrow.png', '"></a>\n' ' <div class="inside-form">\n' ' <form method="GET">\n' ' <input class="textbox" name="search" placeholder="Hledat návod: ' 'např. DJ09500">\n' ' <input value="✔" type="submit" class="button">\n' ' </form>\n' ' </div>\n' '</div>\n' '\n' '<ul class="nav justify-content-center" id="catnavbar">\n' ' <li class="nav-item">\n' ' <a class="nav-link" href="/djeco/">Vše</a>\n' ' </li>\n' ' <li class="nav-item">\n' ' <a class="nav-link" href="/djeco/stolni_hry/">Stolní hry</a>\n' ' </li>\n' ' <li class="nav-item">\n' ' <a class="nav-link" href="/djeco/karetni_hry/">Karetní hry</a>\n' ' </li>\n' ' <li class="nav-item">\n' ' <a class="nav-link" href="/djeco/minihry/">Minihry</a>\n' ' </li>\n' ' <li class="nav-item">\n' ' <a class="nav-link" href="/djeco/pro_nejmensi/">Pro nejmenší</a>\n' ' </li>\n' ' <li class="nav-item">\n' ' <a class="nav-link" href="/djeco/ostatni/">Ostatní</a>\n' ' </li>\n' '</ul>\n' '\n' '<div class="container" >\n' ' <div class="row">\n' ' '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
node | <For Node: for x in obj_list, tail_len: 23> |
self | [<TextNode: '\n\n\n<!-- Button trigger mo'>, <django.templatetags.static.StaticNode object at 0x7fc398724940>, <TextNode: '">\n <a href="/"> <img '>, <django.templatetags.static.StaticNode object at 0x7fc398724208>, <TextNode: '"></a>\n <div class="in'>, <For Node: for x in obj_list, tail_len: 23>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n</div>\n\n\n\n\n'>, <IfNode>, <TextNode: '\n\n\n\n\n'>] |
/var/www/navodyzfrancie.cz/venv/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}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
self | <For Node: for x in obj_list, tail_len: 23> |
/var/www/navodyzfrancie.cz/venv/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:
# The loop variables were pushed on to the context so pop them
# off again. This is necessary because the tag lets the length
# of loopvars differ to the length of each set of items and we
# don't want to leave any vars from the previous loop on the
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
i | 8 |
item | <Navod: DJ06972 Tinyly party> |
len_values | 10 |
loop_dict | {'counter': 9, 'counter0': 8, 'first': False, 'last': False, 'parentloop': {}, 'revcounter': 2, 'revcounter0': 1} |
node | <Variable Node: x.obrazek.url> |
nodelist | ['\n' ' <div class="col-sm-6 col-md-4 col-lg-3">\n' ' <div class="card mb-4">\n' ' <img class="card-img-top img-fluid" src="', '/media/images/DJ05216.jpg', '" alt="Card image cap">\n' ' <div class="card-block">\n' ' <h5 class="card-title" >', 'Sachy', '</h5>\n' ' <div class="card-text justify-content-center">\n' ' <button type="button" data-toggle="modal" ' 'class="oko-btn" data-target="#', 'DJ05216', '"><img id="oko" data-toggle="modal" src="', '/static/eye.png', '"></button>\n ', 'DJ05216', '\n' ' <a style="margin-left:-6px;width:50px;height:50px;" ' 'href="', '/media/DJ05216_Sachy.pdf', '"><i id="download" class="far fa-arrow-alt-circle-down"></i></a>\n' ' </div>\n' ' </div>\n' ' </div>\n' ' </div>\n' '\n' '\n' ' <!-- Modal -->\n' ' <div class="modal fade" id="', 'DJ05216', '" tabindex="-1" role="dialog" aria-labelledby="', 'DJ05216', '-Label" style="display:none">\n' ' <div class="modal-dialog" role="document">\n' ' <div class="modal-content">\n' ' <div class="modal-header">\n' ' <h5 class="modal-title" id="', 'DJ05216', '-Label">', 'Sachy', '</h5>\n' ' <button type="button" class="close" data-dismiss="modal" ' 'aria-label="Close">\n' ' <span aria-hidden="true">×</span>\n' ' </button>\n' ' </div>\n' ' <div class="modal-body">\n' ' ', '<p>Počet hráčů: 2 <br />Věk: od 6 let<br />Strategická hra: Hráč rozvíjí ' 'strategii, aby vyzrál na taktiku svého soupeře a tím zvítězil.<br />Hra se ' 'hraje na šachovnici o 64 polích střídavě světlých a tmavých.<br />Pozor: ' 'Umístěte šachovnici tak, aby byla čelem k oběma hráčům, v pravém dolním rohu ' 'by měl být čtverec světlé barvy.<br />Každý hráč má 16 figurek: 1 král, 1 ' 'dáma, 2 střelce, 2 jezdce, 2 věže a 8 pěšců, které jsou na začátku hry ' 'položeni jako je zobrazeno na obrázku. <br />Pozor: Dáma se vždy musí ' 'umístit na svou barvu a tím pádem jsou dámy přímo naproti sobě na ' 'šachovnici. <br />Cíl hry: Zajmout krále protihráče: to je šach mat.<br ' '/>Pravidla hry: Vylosuje se, kdo bude mít světlé figurky: tento hráč začíná. ' 'Ve svém tahu každý hráč přemístí jednu ze svých figurek. Tah nelze vynechat, ' 'vždy je potřeba táhnout nějakou figurkou. Hráči se střídají.<br />Pohyb ' 'figurek (viz obrázky): Figurky nikdy nesmí přeskočit přes jinou figurku ' '(kromě jezdce).<br />Král je nejdůležitější figurka hry, jeho zajetí znamená ' 'prohru! Pohybuje se o jedno políčko ve všech směrech a smí se navíc ' 'pohybovat speciálním pohybem tzv. rošádou. Rošáda umožňuje současný pohyb ' 'krále a věže, pokud se s nimi ještě neposunulo:<br />-\tAni král ani věž se ' 'od začátku hry ještě neposunuly.<br />-\tŽádná figurka se nesmí nacházet ' 'mezi nimi.<br />-\tKrál nesmí být v šachu.<br />Dáma se pohybuje o jakýkoliv ' 'počet polí v jakémkoliv směru. Je to nejsilnější figurka hry.<br />Věž se ' 'pohybuje svisle nebo vodorovně o neomezený počet polí.<br />Střelec se ' 'pohybuje úhlopříčně o neomezený počet polí. <br />Jezdec se pohybuje o tři ' 'pole: jedno nebo dvě vodorovně (nebo svisle) a zbytek v druhém směru. Lze ' 'říct, že se pohybuje ve tvaru písmene „L“. Jezdec je jediná figurka, která ' 'smí přeskočit jinou.<br />Pěšec se pohybuje o jedno pole před sebe a nikdy ' 'necouvá. Při svém prvním tahu se smí posunout o dvě pole. Pokud dojde na ' 'poslední pole na šachovnici, může se změnit na jinou figurku své barvy ' '(kromě krále) dle výběru hráče.<br />Zajetí figurky: Figurka se odebere ze ' 'hry, když se figurka soupeře postaví na políčko, na kterém stojí. Figurky ' 'smějí odstranit protihráčovy figurky ve směru, ve kterém se běžně pohybují, ' 'kromě pěšce. Pěšec smí sebrat figurku v pohybu dopředu a úhlopříčně.<br ' '/>Král je v šachu, když je v situaci, kdy by mohl být sebrán protihrá... <trimmed 54559 bytes string> |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <For Node: for x in obj_list, tail_len: 23> |
unpack | False |
values | <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]> |
/var/www/navodyzfrancie.cz/venv/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}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
self | <Variable Node: x.obrazek.url> |
/var/www/navodyzfrancie.cz/venv/lib/python3.6/site-packages/django/template/base.py
in render
self.filter_expression = filter_expression
def __repr__(self):
return "<Variable Node: %s>" % self.filter_expression
def render(self, context):
try:
output = self.filter_expression.resolve(context)...
except UnicodeDecodeError:
# Unicode conversion can fail sometimes for reasons out of our
# control (e.g. exception rendering). In that case, we fail
# quietly.
return ''
return render_value_in_context(output, context)
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
self | <Variable Node: x.obrazek.url> |
/var/www/navodyzfrancie.cz/venv/lib/python3.6/site-packages/django/template/base.py
in resolve
self.filters = filters
self.var = var_obj
def resolve(self, context, ignore_failures=False):
if isinstance(self.var, Variable):
try:
obj = self.var.resolve(context)...
except VariableDoesNotExist:
if ignore_failures:
obj = None
else:
string_if_invalid = context.template.engine.string_if_invalid
if string_if_invalid:
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
ignore_failures | False |
self | <django.template.base.FilterExpression object at 0x7fc3987240f0> |
/var/www/navodyzfrancie.cz/venv/lib/python3.6/site-packages/django/template/base.py
in resolve
var)
self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR))
def resolve(self, context):
"""Resolve this variable against a given context."""
if self.lookups is not None:
# We're dealing with a variable that needs to be resolved
value = self._resolve_lookup(context)...
else:
# We're dealing with a literal, so it's already been "resolved"
value = self.literal
if self.translate:
is_safe = isinstance(value, SafeData)
msgid = value.replace('%', '%%')
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
self | <Variable: 'x.obrazek.url'> |
/var/www/navodyzfrancie.cz/venv/lib/python3.6/site-packages/django/template/base.py
in _resolve_lookup
# ValueError/IndexError are for numpy.array lookup on
# numpy < 1.9 and 1.9+ respectively
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(type(current), bit):
raise AttributeError
current = getattr(current, bit)...
except (TypeError, AttributeError):
# Reraise if the exception was raised by a @property
if not isinstance(current, BaseContext) and bit in dir(current):
raise
try: # list-index lookup
current = current[int(bit)]
Variable | Value |
---|---|
bit | 'url' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'paginator': <django.core.paginator.Paginator object at 0x7fc398f7b780>, 'page_obj': <Page 2 of 11>, 'is_paginated': True, 'object_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'obj_list': <QuerySet [<Navod: DJ05216 Sachy>, <Navod: DJ05219 CLassic games>, <Navod: DJ05225 CHESS>, <Navod: DJ05229 Domino>, <Navod: DJ05232 Hra Husa>, <Navod: DJ05235 Backgammon>, <Navod: DJ05236 Poker Junior>, <Navod: DJ05270 Hra lodě>, <Navod: DJ06972 Tinyly party>, <Navod: DJ08258 Eduludo Bingo 1, 2, 3>]>, 'view': <Guides.views.DjangoList object at 0x7fc398f7bd68>}] |
current | <ImageFieldFile: None> |
self | <Variable: 'x.obrazek.url'> |
template_name | 'djeco.html' |
/var/www/navodyzfrancie.cz/venv/lib/python3.6/site-packages/django/db/models/fields/files.py
in url
@property
def path(self):
self._require_file()
return self.storage.path(self.name)
@property
def url(self):
self._require_file()...
return self.storage.url(self.name)
@property
def size(self):
self._require_file()
if not self._committed:
Variable | Value |
---|---|
self | <ImageFieldFile: None> |
/var/www/navodyzfrancie.cz/venv/lib/python3.6/site-packages/django/db/models/fields/files.py
in _require_file
# The standard File contains most of the necessary properties, but
# FieldFiles can be instantiated without a name, so that needs to
# be checked for here.
def _require_file(self):
if not self:
raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)...
def _get_file(self):
self._require_file()
if not hasattr(self, '_file') or self._file is None:
self._file = self.storage.open(self.name, 'rb')
return self._file
Variable | Value |
---|---|
self | <ImageFieldFile: None> |
AnonymousUser
Variable | Value |
---|---|
page | '2' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | 'text/plain' |
DJANGO_SETTINGS_MODULE | 'mysite.settings' |
GATEWAY_INTERFACE | 'CGI/1.1' |
HOME | '/var/www/navodyzfrancie.cz' |
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'Keep-Alive' |
HTTP_HOST | 'navodyzfrancie.cz' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '44.211.116.163' |
HTTP_X_FORWARDED_HOST | 'navodyzfrancie.cz' |
HTTP_X_FORWARDED_SERVER | 'navodyzfrancie.cz' |
LANG | '' |
PATH | '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin' |
PATH_INFO | '/djeco/stolni_hry/' |
PWD | '/' |
QUERY_STRING | 'page=2' |
REMOTE_ADDR | '127.0.0.1' |
REMOTE_HOST | '' |
REQUEST_METHOD | 'GET' |
RUN_MAIN | 'true' |
SCRIPT_NAME | '' |
SERVER_NAME | 'localhost.localdomain' |
SERVER_PORT | '8001' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'WSGIServer/0.2' |
SUPERVISOR_ENABLED | '1' |
SUPERVISOR_GROUP_NAME | 'navodyzfrancie.cz' |
SUPERVISOR_PROCESS_NAME | 'navodyzfrancie.cz' |
SUPERVISOR_SERVER_URL | 'unix:///var/run/supervisor.sock' |
TERM | 'xterm-256color' |
TZ | 'CET' |
USER | 'navodyzfrancie.cz' |
wsgi.errors | <_io.TextIOWrapper name='<stderr>' mode='w' encoding='ANSI_X3.4-1968'> |
wsgi.file_wrapper | '' |
wsgi.input | <_io.BufferedReader name=6> |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
mysite.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['www.navodyzfrancie.cz', 'navodyzfrancie.cz'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/var/www/navodyzfrancie.cz/mysite' |
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_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': '/var/www/navodyzfrancie.cz/mysite/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 |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.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 | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'Guides'] |
INTERNAL_IPS | [] |
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'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('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 | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/var/www/navodyzfrancie.cz/mysite/media' |
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'] |
MIDDLEWARE_CLASSES | ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
PROJECT_ROOT | '/var/www/navodyzfrancie.cz/mysite/mysite' |
ROOT_URLCONF | 'mysite.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'mysite.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/www/navodyzfrancie.cz/mysite/mysite/static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/navodyzfrancie.cz/mysite/mysite/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']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'CET' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'mysite.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.