The 'img' attribute has no file associated with it.
Request Method: | GET |
---|---|
Request URL: | https://zunr.eu/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi |
Django Version: | 1.7.1 |
Exception Type: | ValueError |
Exception Value: | The 'img' attribute has no file associated with it. |
Exception Location: | /var/www/servers/zunr.eu/lib/python2.7/site-packages/django/db/models/fields/files.py in _require_file, line 44 |
Python Executable: | /var/www/venv/zunr.eu/bin/uwsgi |
Python Version: | 2.7.5 |
Python Path: | ['.', '', '/var/www/servers/zunr.eu/lib64/python27.zip', '/var/www/servers/zunr.eu/lib64/python2.7', '/var/www/servers/zunr.eu/lib64/python2.7/plat-linux2', '/var/www/servers/zunr.eu/lib64/python2.7/lib-tk', '/var/www/servers/zunr.eu/lib64/python2.7/lib-old', '/var/www/servers/zunr.eu/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7', '/usr/lib/python2.7', '/var/www/servers/zunr.eu/lib/python2.7/site-packages'] |
Server time: | Вт, 19 Бер 2024 07:50:42 +0200 |
In template /var/www/venv/zunr.eu/zunr/zunr/templates/base.html
, error at line 58
48 | <script type="application/ld+json"> |
---|---|
49 | { |
50 | "@context": "https://schema.org", |
51 | "@type": "NewsArticle", |
52 | "mainEntityOfPage": { |
53 | "@type": "WebPage", |
54 | "@id": "https://zunr.eu{{ object.url }}" |
55 | }, |
56 | "headline": "{{ object.brief }}", |
57 | "image": [ |
58 | "https://zunr.eu{{ object.img.url }}" |
59 | ], |
60 | "datePublished": "{{ object.created_at|date:"Y-m-d\TH:i:s+03:00" }}", |
61 | "dateModified": "{{ object.updated_at|date:"Y-m-d\TH:i:s+03:00" }}", |
62 | "author": { |
63 | "@type": "Person", |
64 | "name": "{{ object.author }}", |
65 | "url": "https://{{ request.get_host }}{{ object.url }}" |
66 | }, |
67 | "publisher": { |
68 | "@type": "Organization", |
/var/www/servers/zunr.eu/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
% (callback.__module__, view_name))
# If the response supports deferred rendering, apply template
# response middleware and then render the response
if hasattr(response, 'render') and callable(response.render):
for middleware_method in self._template_response_middleware:
response = middleware_method(request, response)
response = response.render()...
except http.Http404 as e:
logger.warning('Not Found: %s', request.path,
extra={
'status_code': 404,
'request': request
Variable | Value |
---|---|
callback_args | () |
resolver_match | ResolverMatch(func=<function GalleryDetailView at 0x7fe1bab68cf8>, args=(), kwargs={'pk': u'82', 'slug': u'rekonstrukciya-podij-1hi1918-u-lvovi'}, url_name='gallery_detail', app_name='None', namespace='') |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fe1baab8950>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fe1bd6bf490> |
request | "<WSGIRequest\npath:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '',\n 'CONTENT_TYPE': '',\n u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE',\n 'DOCUMENT_ROOT': '/usr/share/nginx/html',\n 'HTTPS': 'on',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'zunr.eu',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '54.235.6.60',\n 'REMOTE_PORT': '36464',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'https',\n 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi',\n u'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'zunr.eu',\n 'SERVER_PORT': '443',\n 'SERVER_PROTOCOL': 'HTTP/2.0',\n 'uwsgi.node': 'zunr.eu',\n 'uwsgi.version': '2.0.14',\n 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>" |
callback | <function GalleryDetailView at 0x7fe1bab68cf8> |
wrapped_callback | <function GalleryDetailView at 0x7fe1bab68cf8> |
resolver | <RegexURLResolver 'zunr.urls' (None:None) ^/> |
callback_kwargs | {'pk': u'82', 'slug': u'rekonstrukciya-podij-1hi1918-u-lvovi'} |
response | <django.template.response.TemplateResponse object at 0x7fe1bf3d90d0> |
urlconf | 'zunr.urls' |
/var/www/servers/zunr.eu/lib/python2.7/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 |
---|---|
self | <django.template.response.TemplateResponse object at 0x7fe1bf3d90d0> |
retval | <django.template.response.TemplateResponse object at 0x7fe1bf3d90d0> |
/var/www/servers/zunr.eu/lib/python2.7/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)...
return content
def add_post_render_callback(self, callback):
"""Adds a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
self | <django.template.response.TemplateResponse object at 0x7fe1bf3d90d0> |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
template | <django.template.base.Template object at 0x7fe1b9e0ccd0> |
/var/www/servers/zunr.eu/lib/python2.7/site-packages/django/template/base.py
in render
def _render(self, context):
return self.nodelist.render(context)
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)...
finally:
context.render_context.pop()
def compile_string(template_string, origin):
"Compiles template_string into NodeList ready for rendering"
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7fe1b9e0ccd0> |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
/var/www/servers/zunr.eu/lib/python2.7/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"
context.render_context.push()
try:
return self._render(context)
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7fe1b9e0ccd0> |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
/var/www/servers/zunr.eu/lib/python2.7/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 = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
/var/www/servers/zunr.eu/lib/python2.7/site-packages/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
e | ValueError("The 'img' attribute has no file associated with it.",) |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
/var/www/servers/zunr.eu/lib/python2.7/site-packages/django/template/loader_tags.py
in render
blocks = dict((n.name, n) for n in
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.
return compiled_parent._render(context)...
class IncludeNode(Node):
def __init__(self, template, *args, **kwargs):
self.template = template
self.extra_context = kwargs.pop('extra_context', {})
Variable | Value |
---|---|
node | <django.template.defaulttags.LoadNode object at 0x7fe1b9cdc990> |
blocks | {u'content': <Block Node: content. Contents: []>, u'og_description': <Block Node: og_description. Contents: []>, u'og_image': <Block Node: og_image. Contents: []>, u'og_title': <Block Node: og_title. Contents: []>, u'og_type': <Block Node: og_type. Contents: []>, u'og_url': <Block Node: og_url. Contents: []>, u'title': <Block Node: title. Contents: []>} |
block_context | <django.template.loader_tags.BlockContext object at 0x7fe1bf342710> |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
compiled_parent | <django.template.base.Template object at 0x7fe1bf342b90> |
self | <ExtendsNode: extends "base.html"> |
/var/www/servers/zunr.eu/lib/python2.7/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"
context.render_context.push()
try:
return self._render(context)
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7fe1bf342b90> |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
/var/www/servers/zunr.eu/lib/python2.7/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 = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <IfNode> |
bit | u'" href="/feed"/>\n <!-- Global site tag (gtag.js) - Google Analytics -->\n <script async src="https://www.googletagmanager.com/gtag/js?id=G-SCE8E95XFM"></script>\n <script>\n\t window.dataLayer = window.dataLayer || [];\n\t function gtag(){dataLayer.push(arguments);}\n\t gtag(\'js\', new Date());\n\t gtag(\'config\', \'G-SCE8E95XFM\');\n </script>\n<script type="text/javascript" >\n (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};\n m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})\n (window, document, "script", "https://mc.yandex.com/metrika/tag.js", "ym");\n\n ym(89750959, "init", {\n clickmap:true,\n trackLinks:true,\n accurateTrackBounce:true\n });\n</script>\n<noscript><div><img src="https://mc.yandex.com/watch/89750959" style="position:absolute; left:-9999px;" alt="" /></div></noscript>\n\n ' |
bits | [u'', u'\n', u'', u'\n', u'', u'\n', u'', u'\n<!DOCTYPE html>\n<html lang="', u'uk', u'">\n<head>\n <meta charset="utf-8" />\n<meta name="yandex-verification" content="c99f57a73ea668cf" />\n <meta name="robots" content="index, follow" />\n <meta name="keywords" content="', u'Site keywords', u'" />\n <meta name="description" content="', u'\u0417\u0430\u0445\u0456\u0434\u043d\u043e-\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0456 \u043d\u043e\u0432\u0438\u043d\u0438 \u0442\u0430 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0456\u0457', u'" />\n ', u'<meta property="og:image" content="" />\n <meta property="og:title" content="" />\n <meta property="og:type" content="" />\n <meta property="og:url" content="" />\n <meta property="og:description" content="" />\n <link rel="amphtml" href="https://zunr.eu/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi/amp" />', u'\n <title>', u'\u0420\u0435\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0456\u044f \u043f\u043e\u0434\u0456\u0439 1 \u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430 1918 \u0440\u043e\u043a\u0443 \u0443 \u041b\u044c\u0432\u043e\u0432\u0456 :: ', u'\u0417\u0423\u041d\u0420', u'</title>\n <link rel="stylesheet" type="text/css" href="/static/css/jquery.bxslider.css?q=1410044028" />\n <link rel="stylesheet" type="text/css" href="/static/css/main.css?q=1410044032" />\n <script type="text/javascript" src="/static/js/jquery-1.11.1.min.js"></script>\n <script type="text/javascript" src="/static/js/main.js?q=1410044028"></script>\n <script type="text/javascript" src="/static/js/jquery.bxslider.js?q=1410044028"></script>\n <link type="application/atom+xml" rel="alternate" title="', u'\u0412\u0441\u0456 \u043c\u0430\u0442\u0435\u0440\u0456\u0430\u043b\u0438', u'" href="/feed"/>\n <!-- Global site tag (gtag.js) - Google Analytics -->\n <script async src="https://www.googletagmanager.com/gtag/js?id=G-SCE8E95XFM"></script>\n <script>\n\t window.dataLayer = window.dataLayer || [];\n\t function gtag(){dataLayer.push(arguments);}\n\t gtag(\'js\', new Date());\n\t gtag(\'config\', \'G-SCE8E95XFM\');\n </script>\n<script type="text/javascript" >\n (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};\n m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})\n (window, document, "script", "https://mc.yandex.com/metrika/tag.js", "ym");\n\n ym(89750959, "init", {\n clickmap:true,\n trackLinks:true,\n accurateTrackBounce:true\n });\n</script>\n<noscript><div><img src="https://mc.yandex.com/watch/89750959" style="position:absolute; left:-9999px;" alt="" /></div></noscript>\n\n '] |
self | [<django.template.defaulttags.LoadNode object at 0x7fe1b9cdc990>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7fe1bf342fd0>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7fe1baae4210>, <Text Node: ' '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7fe1b9da3bd0>, <Text Node: ' <!DOCTYPE html> <html la'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '"> <head> <meta chars'>, <django.templatetags.i18n.TranslateNode object at 0x7fe1b9cdc190>, <Text Node: '" /> <meta name="desc'>, <django.templatetags.i18n.TranslateNode object at 0x7fe1b9cdcf50>, <Text Node: '" /> '>, <IfNode>, <Text Node: ' <title>'>, <Block Node: title. Contents: []>, <django.templatetags.i18n.TranslateNode object at 0x7fe1b9dfaed0>, <Text Node: '</title> <link rel="s'>, <django.templatetags.i18n.TranslateNode object at 0x7fe1b92924d0>, <Text Node: '" href="/feed"/> <!--'>, <IfNode>, <Text Node: ' <!-- Go to www.addt'>, <django.template.base.SimpleNode object at 0x7fe1b9dfab50>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7fe1b9cdcb10>, <Text Node: ' <div id="content"> '>, <django.template.base.InclusionNode object at 0x7fe1b9cdc690>, <Text Node: ' </div><!'>, <Block Node: content. Contents: []>, <Text Node: ' <div'>, <django.template.base.InclusionNode object at 0x7fe1b9cdc050>, <Text Node: ' </di'>, <django.template.loader_tags.IncludeNode object at 0x7fe1b9cdc390>, <Text Node: ' </body> </html> '>] |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
/var/www/servers/zunr.eu/lib/python2.7/site-packages/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <IfNode> |
self | [<django.template.defaulttags.LoadNode object at 0x7fe1b9cdc990>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7fe1bf342fd0>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7fe1baae4210>, <Text Node: ' '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7fe1b9da3bd0>, <Text Node: ' <!DOCTYPE html> <html la'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '"> <head> <meta chars'>, <django.templatetags.i18n.TranslateNode object at 0x7fe1b9cdc190>, <Text Node: '" /> <meta name="desc'>, <django.templatetags.i18n.TranslateNode object at 0x7fe1b9cdcf50>, <Text Node: '" /> '>, <IfNode>, <Text Node: ' <title>'>, <Block Node: title. Contents: []>, <django.templatetags.i18n.TranslateNode object at 0x7fe1b9dfaed0>, <Text Node: '</title> <link rel="s'>, <django.templatetags.i18n.TranslateNode object at 0x7fe1b92924d0>, <Text Node: '" href="/feed"/> <!--'>, <IfNode>, <Text Node: ' <!-- Go to www.addt'>, <django.template.base.SimpleNode object at 0x7fe1b9dfab50>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7fe1b9cdcb10>, <Text Node: ' <div id="content"> '>, <django.template.base.InclusionNode object at 0x7fe1b9cdc690>, <Text Node: ' </div><!'>, <Block Node: content. Contents: []>, <Text Node: ' <div'>, <django.template.base.InclusionNode object at 0x7fe1b9cdc050>, <Text Node: ' </di'>, <django.template.loader_tags.IncludeNode object at 0x7fe1b9cdc390>, <Text Node: ' </body> </html> '>] |
e | ValueError("The 'img' attribute has no file associated with it.",) |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
/var/www/servers/zunr.eu/lib/python2.7/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class RegroupNode(Node):
def __init__(self, target, expression, var_name):
Variable | Value |
---|---|
self | <IfNode> |
match | u'\u0420\u0435\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0456\u044f \u043f\u043e\u0434\u0456\u0439 1 \u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430 1918 \u0440\u043e\u043a\u0443 \u0443 \u041b\u044c\u0432\u043e\u0432\u0456' |
nodelist | [<Text Node: ' <script type="applicatio'>, <Variable Node: object.url>, <Text Node: '" }, "headline": "'>, <Variable Node: object.brief>, <Text Node: '", "image": [ "http'>, <Variable Node: object.img.url>, <Text Node: '" ], "datePublished"'>, <Variable Node: object.created_at|date:"Y-m-d\TH:i:s+03:00">, <Text Node: '", "dateModified": "'>, <Variable Node: object.updated_at|date:"Y-m-d\TH:i:s+03:00">, <Text Node: '", "author": { "@ty'>, <Variable Node: object.author>, <Text Node: '", "url": "https://'>, <Variable Node: request.get_host>, <Variable Node: object.url>, <Text Node: '" }, "publisher": { '>, <Variable Node: object.title>, <Text Node: '" } </script> '>] |
condition | (literal <django.template.base.FilterExpression object at 0x7fe1b9292490>) |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
/var/www/servers/zunr.eu/lib/python2.7/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 = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Variable Node: object.img.url> |
bit | u'",\n "image": [\n "https://zunr.eu' |
bits | [u'\n<script type="application/ld+json">\n{\n "@context": "https://schema.org",\n "@type": "NewsArticle",\n "mainEntityOfPage": {\n "@type": "WebPage",\n "@id": "https://zunr.eu', u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'"\n },\n "headline": "', u'', u'",\n "image": [\n "https://zunr.eu'] |
self | [<Text Node: ' <script type="applicatio'>, <Variable Node: object.url>, <Text Node: '" }, "headline": "'>, <Variable Node: object.brief>, <Text Node: '", "image": [ "http'>, <Variable Node: object.img.url>, <Text Node: '" ], "datePublished"'>, <Variable Node: object.created_at|date:"Y-m-d\TH:i:s+03:00">, <Text Node: '", "dateModified": "'>, <Variable Node: object.updated_at|date:"Y-m-d\TH:i:s+03:00">, <Text Node: '", "author": { "@ty'>, <Variable Node: object.author>, <Text Node: '", "url": "https://'>, <Variable Node: request.get_host>, <Variable Node: object.url>, <Text Node: '" }, "publisher": { '>, <Variable Node: object.title>, <Text Node: '" } </script> '>] |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
/var/www/servers/zunr.eu/lib/python2.7/site-packages/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Variable Node: object.img.url> |
self | [<Text Node: ' <script type="applicatio'>, <Variable Node: object.url>, <Text Node: '" }, "headline": "'>, <Variable Node: object.brief>, <Text Node: '", "image": [ "http'>, <Variable Node: object.img.url>, <Text Node: '" ], "datePublished"'>, <Variable Node: object.created_at|date:"Y-m-d\TH:i:s+03:00">, <Text Node: '", "dateModified": "'>, <Variable Node: object.updated_at|date:"Y-m-d\TH:i:s+03:00">, <Text Node: '", "author": { "@ty'>, <Variable Node: object.author>, <Text Node: '", "url": "https://'>, <Variable Node: request.get_host>, <Variable Node: object.url>, <Text Node: '" }, "publisher": { '>, <Variable Node: object.title>, <Text Node: '" } </script> '>] |
e | ValueError("The 'img' attribute has no file associated with it.",) |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
/var/www/servers/zunr.eu/lib/python2.7/site-packages/django/template/debug.py
in render
e.django_template_source = node.source
raise
class DebugVariableNode(VariableNode):
def render(self, context):
try:
output = self.filter_expression.resolve(context)...
output = template_localtime(output, use_tz=context.use_tz)
output = localize(output, use_l10n=context.use_l10n)
output = force_text(output)
except UnicodeDecodeError:
return ''
except Exception as e:
Variable | Value |
---|---|
self | <Variable Node: object.img.url> |
e | ValueError("The 'img' attribute has no file associated with it.",) |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
/var/www/servers/zunr.eu/lib/python2.7/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:
if settings.TEMPLATE_STRING_IF_INVALID:
global invalid_var_format_string
Variable | Value |
---|---|
self | <django.template.base.FilterExpression object at 0x7fe1b9c80850> |
ignore_failures | False |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
/var/www/servers/zunr.eu/lib/python2.7/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:
if self.message_context:
return pgettext_lazy(self.message_context, value)
Variable | Value |
---|---|
self | <Variable: u'object.img.url'> |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
/var/www/servers/zunr.eu/lib/python2.7/site-packages/django/template/base.py
in _resolve_lookup
try: # dictionary lookup
current = current[bit]
except (TypeError, AttributeError, KeyError, ValueError):
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):
try: # list-index lookup
current = current[int(bit)]
except (IndexError, # list index out of range
ValueError, # invalid literal for int()
KeyError, # current is a dict without `int(bit)` key
Variable | Value |
---|---|
current | <ImageFieldFile: None> |
bit | u'url' |
e | ValueError("The 'img' attribute has no file associated with it.",) |
self | <Variable: u'object.img.url'> |
context | [{'False': False, 'None': None, 'True': True}, {'active_chapter_id': 1L, u'object': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, 'similar_publications': [<BasePublication: 1 листопада 1918 року було проголошено Західно-Українську Народну Республіку>, <BasePublication: У Львові відтворили буремні події листопада 1918 року>, <BasePublication: Річницю Листопадового Чину майже не помітили на Галичині>, <BasePublication: У Чернівцях річницю ЗУНР відзначили флеш-мобом>], 'active_region_id': 1L, 'gallery': <Gallery: Реконструкція подій 1 листопада 1918 року у Львові>, u'view': <publications.views.GalleryDetailView object at 0x7fe1b9de8390>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7fe1b8f298d0>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7fe1ba239950>, u'request': <WSGIRequest path:/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'zunr.eu', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', 'QUERY_STRING': '', 'REMOTE_ADDR': '54.235.6.60', 'REMOTE_PORT': '36464', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'zunr.eu', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/2.0', 'uwsgi.node': 'zunr.eu', 'uwsgi.version': '2.0.14', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fe1bf356468>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7fe1b9de8fd0>, u'TIME_ZONE': 'EET', u'STATIC_URL': '/static/', u'LANGUAGES': (('uk', 'Ukrainian'),), 'user': <SimpleLazyObject: <function <lambda> at 0x7fe1b9304050>>, u'LANGUAGE_CODE': u'uk', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/media/'}] |
/var/www/servers/zunr.eu/lib/python2.7/site-packages/django/db/models/fields/files.py
in _get_url
def _get_path(self):
self._require_file()
return self.storage.path(self.name)
path = property(_get_path)
def _get_url(self):
self._require_file()...
return self.storage.url(self.name)
url = property(_get_url)
def _get_size(self):
self._require_file()
if not self._committed:
Variable | Value |
---|---|
self | <ImageFieldFile: None> |
/var/www/servers/zunr.eu/lib/python2.7/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> |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
wsgi.multiprocess | True |
SCRIPT_NAME | u'' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi' |
SERVER_PROTOCOL | 'HTTP/2.0' |
QUERY_STRING | '' |
CONTENT_LENGTH | '' |
HTTP_USER_AGENT | 'claudebot' |
SERVER_NAME | 'zunr.eu' |
REMOTE_ADDR | '54.235.6.60' |
wsgi.url_scheme | 'https' |
SERVER_PORT | '443' |
uwsgi.node | 'zunr.eu' |
DOCUMENT_ROOT | '/usr/share/nginx/html' |
wsgi.input | <uwsgi._Input object at 0x7fe1bf356468> |
HTTP_HOST | 'zunr.eu' |
HTTPS | 'on' |
wsgi.multithread | False |
REQUEST_URI | '/photo/82/rekonstrukciya-podij-1hi1918-u-lvovi' |
HTTP_ACCEPT | '*/*' |
wsgi.version | (1, 0) |
wsgi.run_once | False |
wsgi.errors | <open file 'wsgi_errors', mode 'w' at 0x7fe1bad128a0> |
REMOTE_PORT | '36464' |
REQUEST_SCHEME | 'https' |
uwsgi.version | '2.0.14' |
CONTENT_TYPE | '' |
wsgi.file_wrapper | '' |
CSRF_COOKIE | u'ihDy3TZ09qU2Z8SCxX0DA5wTfTlvVIXE' |
zunr.settings
Setting | Value |
---|---|
YEAR_MONTH_FORMAT | 'F Y' |
SERVER_EMAIL | 'root@localhost' |
CKEDITOR_MEDIA_PREFIX | '/media/ckeditor/' |
USE_L10N | True |
IMAGEKIT_CACHEFILE_DIR | 'CACHE/images' |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'uk-ua' |
ROOT_URLCONF | 'zunr.urls' |
MANAGERS | (('admin', 'admin@example.com'),) |
TEST_NON_SERIALIZED_APPS | [] |
DEFAULT_CHARSET | 'utf-8' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
STATIC_ROOT | '/var/www/venv/zunr.eu/public_html/static' |
DEFAULT_LANGUAGE | 1 |
CKEDITOR_UPLOAD_PATH | 'uploads/ck/' |
IMAGEKIT_USE_MEMCACHED_SAFE_CACHE_KEY | u'********************' |
ALLOWED_HOSTS | ['zunr.eu'] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SEND_BROKEN_LINK_EMAILS | False |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
CKEDITOR_UPLOAD_PREFIX | '/media/ckuploads/' |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': '127.0.0.1', 'NAME': 'zunr', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': 'Europe/Kiev', 'USER': 'zunr'}} |
TEMPLATE_DEBUG | True |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DEFAULT_CONTENT_TYPE | 'text/html' |
TAGGIT_AUTOSUGGEST_MODELS | {'default': ('taggit_localized', 'TagLocalized')} |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | [] |
DEFAULT_TABLESPACE | '' |
DIRNAME | './zunr' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211', 'TIMEOUT': 60}} |
IMAGEKIT_CACHE_BACKEND | 'django.core.cache.backends.dummy.DummyCache' |
SESSION_COOKIE_PATH | '/' |
SILENCED_SYSTEM_CHECKS | [] |
MIDDLEWARE_CLASSES | ('middleware.i18n.ForceDefaultLanguageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'breadcrumbs.middleware.BreadcrumbsMiddleware') |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
IMAGEKIT_SPEC_CACHEFILE_NAMER | 'imagekit.cachefiles.namers.source_name_as_path' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_SETTINGS | <module 'django.conf.global_settings' from '/var/www/servers/zunr.eu/lib/python2.7/site-packages/django/conf/global_settings.pyc'> |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'logging.config.dictConfig' |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
CKEDITOR_IMAGE_BACKEND | 'pillow' |
WSGI_APPLICATION | 'zunr.wsgi.application' |
CACHE_PAGE_DETAIL_LIFETIME | 240 |
IMAGEKIT_CACHE_PREFIX | 'imagekit:' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
FORCE_SCRIPT_NAME | '' |
USE_X_FORWARDED_HOST | False |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
CACHE_DETAIL_LIFETIME | 120 |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
LANGUAGE_COOKIE_DOMAIN | None |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'simpleconfig', 'ckeditor', 'embed_video', 'dimensions', 'publications', 'pages', 'blogs', 'imagekit', 'breadcrumbs', 'taggit_autosuggest', 'taggit_localized', 'polls', 'banners') |
LANGUAGES | (('uk', 'Ukrainian'),) |
COMMENTS_ALLOW_PROFANITIES | False |
STATICFILES_DIRS | ('./zunr/static',) |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
LANGUAGE_COOKIE_AGE | None |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
INTERNAL_IPS | () |
MONTH_DAY_FORMAT | 'F j' |
LOGIN_URL | '/accounts/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
CACHE_HOME_LIFETIME | 60 |
TIME_FORMAT | 'P' |
AUTH_USER_MODEL | 'auth.User' |
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') |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
EMAIL_HOST_PASSWORD | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
SESSION_FILE_PATH | None |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
NUMBER_GROUPING | 0 |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
DECIMAL_SEPARATOR | '.' |
IGNORABLE_404_URLS | () |
LOCALE_PATHS | ('./zunr/conf/locale',) |
TEMPLATE_STRING_IF_INVALID | '' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
FIXTURE_DIRS | () |
EMAIL_HOST | 'localhost' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '/var/www/venv/zunr.eu/public_html/media' |
CACHE_LIST_LIFETIME | 120 |
LANGUAGE_COOKIE_PATH | '/' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | (('admin', 'admin@example.com'),) |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
MEDIA_URL | '/media/' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | ('./zunr/templates',) |
CKEDITOR_CONFIGS | {'basic_ckeditor': {'height': 300, 'toolbar': 'Basic'}, 'default_ckeditor': {'extraPlugins': 'youtube', 'height': 300, 'toolbar': 'MinToolbar'}} |
IMAGEKIT_CACHEFILE_NAMER | 'imagekit.cachefiles.namers.hash' |
SITE_ID | 1 |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
LOGGING | {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} |
SHORT_DATE_FORMAT | 'm/d/Y' |
IMAGEKIT_DEFAULT_CACHEFILE_BACKEND | 'imagekit.cachefiles.backends.Simple' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
TIME_ZONE | 'Europe/Kiev' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
IMAGEKIT_DEFAULT_CACHEFILE_STRATEGY | 'imagekit.cachefiles.strategies.JustInTime' |
EMAIL_USE_SSL | False |
TEMPLATE_CONTEXT_PROCESSORS | ('django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'django.core.context_processors.request') |
MIGRATION_MODULES | {} |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'zunr.settings' |
USE_ETAGS | False |
DOCUMENTROORDIR | '/var/www/venv/zunr.eu/public_html' |
LANGUAGES_BIDI | ('he', 'ar', 'fa', 'ur') |
FILE_UPLOAD_TEMP_DIR | None |
CSRF_COOKIE_AGE | 31449600 |
STATIC_URL | '/static/' |
EMAIL_PORT | 25 |
USE_TZ | False |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
IMAGEKIT_DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_HTTPONLY | False |
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') |
ADMIN_FOR | () |
EMAIL_HOST_USER | '' |
PROFANITIES_LIST | u'********************' |
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 500 page.