The source file does not appear to be an image
Request Method: | GET |
---|---|
Request URL: | https://nisarga.center/event/2020-11_13-geografiya-menya |
Django Version: | 1.11.17 |
Exception Type: | InvalidImageFormatError |
Exception Value: | The source file does not appear to be an image |
Exception Location: | /home/ubuntu/nisarga/venv/lib/python3.7/site-packages/easy_thumbnails/files.py in generate_thumbnail, line 388 |
Python Executable: | /home/ubuntu/uwsgi-2.0.20/uwsgi |
Python Version: | 3.7.17 |
Python Path: | ['.', '', '/home/ubuntu/.pyenv/versions/3.7.17/lib/python37.zip', '/home/ubuntu/.pyenv/versions/3.7.17/lib/python3.7', '/home/ubuntu/.pyenv/versions/3.7.17/lib/python3.7/lib-dynload', '/home/ubuntu/nisarga/venv/lib/python3.7/site-packages'] |
Server time: | Пт, 29 Мар 2024 13:37:24 +0200 |
In template /home/ubuntu/nisarga/templates/base.html
, error at line 0
1 | {% load seo static help_tags %}<!DOCTYPE html> |
---|---|
2 | <html lang="ru" id="{% block html_id %}{% endblock %}"> |
3 | <head> |
4 | <meta charset="UTF-8"> |
5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
6 | <meta name="google-site-verification" content="RFWq2Ep6Xj4zp66sMAsr7x6xw0mP9jxog-qg-Na21Xs" /> |
7 | {% get_metadata as metadata %}{% if metadata.title.value %} {{ metadata.title }} {% else %}<title>{% block title %} {% endblock title %}{% block site_title %} | Нисарга{% endblock site_title %}</title> {% endif %} |
8 | {% if metadata.description.value %} {{ metadata.description }} {% endif %} |
9 | {% if metadata.keywords.value %} {{ metadata.keywords }} {% endif %} |
10 | {% block extrahead %}<meta property="og:image" content="{% static 'img/nisarga-og-image.jpg' %}" />{% endblock extrahead %} |
/home/ubuntu/nisarga/venv/lib/python3.7/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 | InvalidImageFormatError('The source file does not appear to be an image') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f74aafb2750>> |
request | <WSGIRequest: GET '/event/2020-11_13-geografiya-menya'> |
/home/ubuntu/nisarga/venv/lib/python3.7/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 EventDetailView at 0x7f74aabee170> |
callback_args | () |
callback_kwargs | {'slug': '2020-11_13-geografiya-menya'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f74aaf4ee50>> |
request | <WSGIRequest: GET '/event/2020-11_13-geografiya-menya'> |
resolver | <RegexURLResolver 'nisarga.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=events.views.EventDetailView, args=(), kwargs={'slug': '2020-11_13-geografiya-menya'}, url_name=event-detail, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f74aafb2750> |
wrapped_callback | <function EventDetailView at 0x7f74aabee170> |
/home/ubuntu/nisarga/venv/lib/python3.7/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 EventDetailView at 0x7f74aabee170> |
callback_args | () |
callback_kwargs | {'slug': '2020-11_13-geografiya-menya'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f74aaf4ee50>> |
request | <WSGIRequest: GET '/event/2020-11_13-geografiya-menya'> |
resolver | <RegexURLResolver 'nisarga.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=events.views.EventDetailView, args=(), kwargs={'slug': '2020-11_13-geografiya-menya'}, url_name=event-detail, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f74aafb2750> |
wrapped_callback | <function EventDetailView at 0x7f74aabee170> |
/home/ubuntu/nisarga/venv/lib/python3.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 |
---|---|
retval | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/home/ubuntu/nisarga/venv/lib/python3.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, 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 | {'contact': <Contact: Денис - Киев>, 'curr_etype': 'seminar_gm', 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'random_video': <Video: "Никто из дома не выходил.">, 'reviews': <QuerySet [<Review: Наталья>, <Review: Богдана>]>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7f74a776d490> |
/home/ubuntu/nisarga/venv/lib/python3.7/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, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Наталья>, <Review: Сергей>]>}] |
request | <WSGIRequest: GET '/event/2020-11_13-geografiya-menya'> |
self | <django.template.backends.django.Template object at 0x7f74a776d490> |
/home/ubuntu/nisarga/venv/lib/python3.7/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, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Наталья>, <Review: Богдана>]>}] |
self | <django.template.base.Template object at 0x7f74a6828ad0> |
/home/ubuntu/nisarga/venv/lib/python3.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"
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, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Сергей>, <Review: Богдана>]>}] |
self | <django.template.base.Template object at 0x7f74a6828ad0> |
/home/ubuntu/nisarga/venv/lib/python3.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 = 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, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Наталья>, <Review: Сергей>]>}] |
node | <ExtendsNode: extends "base_page.html"> |
self | [<ExtendsNode: extends "base_page.html">] |
/home/ubuntu/nisarga/venv/lib/python3.7/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, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Богдана>, <Review: Сергей>]>}] |
self | <ExtendsNode: extends "base_page.html"> |
/home/ubuntu/nisarga/venv/lib/python3.7/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 0x7f74a662fa90> |
compiled_parent | <django.template.base.Template object at 0x7f74a6813c10> |
context | [{'True': True, 'False': False, 'None': None, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Сергей>, <Review: Богдана>]>}] |
node | <ExtendsNode: extends 'base.html'> |
self | <ExtendsNode: extends "base_page.html"> |
/home/ubuntu/nisarga/venv/lib/python3.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"
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, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Сергей>, <Review: Наталья>]>}] |
self | <django.template.base.Template object at 0x7f74a6813c10> |
/home/ubuntu/nisarga/venv/lib/python3.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 = 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, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Сергей>, <Review: Наталья>]>}] |
node | <ExtendsNode: extends 'base.html'> |
self | [<ExtendsNode: extends 'base.html'>] |
/home/ubuntu/nisarga/venv/lib/python3.7/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, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Наталья>, <Review: Богдана>]>}] |
self | <ExtendsNode: extends 'base.html'> |
/home/ubuntu/nisarga/venv/lib/python3.7/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 0x7f74a662fa90> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n\t'>]>, 'extrahead': <Block Node: extrahead. Contents: [<TextNode: '<meta property="og:image"'>, <django.templatetags.static.StaticNode object at 0x7f74a6933d50>, <TextNode: '" />'>]>, 'footer': <Block Node: footer. Contents: [<TextNode: '\n\t<footer>\n\t\t<div class="'>, <django.templatetags.static.StaticNode object at 0x7f74a6617e50>, <TextNode: '" alt="Мы в Facebook">\n\t\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6617d10>, <TextNode: '" alt="Мы в Instagram">\n\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6617110>, <TextNode: '" alt="Мы во ВКонтакте">\n'>, <django.templatetags.static.StaticNode object at 0x7f74a6617910>, <TextNode: '" alt="Мы в YouTube">\n\t\t\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6617650>, <TextNode: '" alt="Мы в SoudCould">\n\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6617150>, <TextNode: '" alt="Мы в Telegram">\n\t\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6617b90>, <TextNode: '" alt="Логотип">\n\t\t\t\t\t<a '>, <django.template.defaulttags.URLNode object at 0x7f74a6617510>, <TextNode: '"><img src="https://c59e1'>, <django.templatetags.static.StaticNode object at 0x7f74a6617dd0>, <TextNode: '" alt="Поблагодарить"> <s'>, <django.template.loader_tags.IncludeNode object at 0x7f74a66179d0>, <TextNode: '\n\t'>]>, 'header': <Block Node: header. Contents: [<TextNode: '\n\t<header class="containe'>, <django.templatetags.static.StaticNode object at 0x7f74a6933650>, <TextNode: '" alt="Мы в Facebook">\n\t\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6933810>, <TextNode: '" alt="Мы в Instagram">\n\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6933610>, <TextNode: '" alt="ВКонтакте">\n\t\t\t</a'>, <django.templatetags.static.StaticNode object at 0x7f74a6933c10>, <TextNode: '" alt="Мы в YouTube">\n\t\t\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6933890>, <TextNode: '" alt="Мы в SoudCould">\n\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6933e50>, <TextNode: '" alt="Мы в Telegram">\n\t\t'>, <django.template.defaulttags.URLNode object at 0x7f74a6919910>, <TextNode: '"><img src="'>, <django.templatetags.static.StaticNode object at 0x7f74a6919450>, <TextNode: '" class="logo_top" alt="Л'>, <django.template.defaulttags.URLNode object at 0x7f74a69199d0>, <TextNode: '"><img src="'>, <django.templatetags.static.StaticNode object at 0x7f74a6919e50>, <TextNode: '" alt="Логотип"></a>\n\t\t</'>, <django.templatetags.static.StaticNode object at 0x7f74a6919a90>, <TextNode: '" alt="Мы в Facebook">\n\t\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6919790>, <TextNode: '" alt="Мы в Instagram">\n\t'>, <django.templatetags.static.StaticNode object at 0x7f74a69198d0>, <TextNode: '" alt="Мы во ВКонтакте">\n'>, <django.templatetags.static.StaticNode object at 0x7f74a6919c90>, <TextNode: '" alt="Мы в YouTube">\n\t\t\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6919c10>, <TextNode: '" alt="Мы в Telegram">\n\t\t'>, <django.template.defaulttags.URLNode object at 0x7f74a6919850>, <TextNode: '"><img src="'>, <django.templatetags.static.StaticNode object at 0x7f74a6919710>, <TextNode: '" alt="Логотип"></a></li>'>, <IfNode>, <TextNode: ' href="'>, <django.template.defaulttags.URLNode object at 0x7f74a6831c50>, <TextNode: '">Мероприятия</a></li>\n\t\t'>, <IfNode>, <TextNode: ' href="'>, <django.template.defaulttags.URLNode object at 0x7f74a6970650>, <TextNode: '">Видео</a></li>\n\t\t\t\t<li>'>, <IfNode>, <TextNode: ' href="'>, <django.template.defaulttags.URLNode object at 0x7f74a6740190>, <TextNode: '">О центре</a></li>\n\t\t\t\t<'>, <IfNode>, <TextNode: ' href="'>, <django.template.defaulttags.URLNode object at 0x7f74a6740a50>, <TextNode: '">Отзывы</a></li>\n\t\t\t\t<li'>, <IfNode>, <TextNode: ' href="'>, <django.template.defaulttags.URLNode object at 0x7f74a6740110>, <TextNode: '">Контакты</a></li>\n\t\t\t</'>]>, 'html_id': <Block Node: html_id. Contents: []>, 'js': <Block Node: js. Contents:... <trimmed 4448 bytes string> |
compiled_parent | <django.template.base.Template object at 0x7f74a7953f50> |
context | [{'True': True, 'False': False, 'None': None, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Сергей>, <Review: Богдана>]>}] |
node | <django.template.defaulttags.LoadNode object at 0x7f74a663dd10> |
self | <ExtendsNode: extends 'base.html'> |
/home/ubuntu/nisarga/venv/lib/python3.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"
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, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Богдана>, <Review: Наталья>]>}] |
self | <django.template.base.Template object at 0x7f74a7953f50> |
/home/ubuntu/nisarga/venv/lib/python3.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 = 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\n\t' |
bits | ['', '<!DOCTYPE html>\n<html lang="ru" id="', 'event-page', '">\n' '<head>\n' '\t<meta charset="UTF-8">\n' '\t<meta name="viewport" content="width=device-width, initial-scale=1.0">\n' '\t<meta name="google-site-verification" ' 'content="RFWq2Ep6Xj4zp66sMAsr7x6xw0mP9jxog-qg-Na21Xs" />\n' '\t', '', '<title>География Меня Плюс - Киев | Нисарга</title> ', '\n\t', '', '\n\t', '', '\n\t', '\n' '<meta property="og:title" content="География Меня Плюс - Киев - 13 ноября ' '2020 г." />\n' '<meta property="og:description" content="&laquo;ГЕОГРАФИЯ МЕНЯ ' 'ПЛЮС&raquo; &mdash; авторская программа Сиддхартхи, выездной ' 'интенсив. Основная цель тренинга: получить ясность, КАК И ЗАЧЕМ Я ЖИВУ!\r\n' '\r\n' 'Основные цели тренинга:&nbsp;\r\n' '\r\n' '\r\n' '\tсоздание карты внутреннего пространства (где я сейчас..." />\n' '\n' ' <meta property="og:image" content="/media/events/geo1120.jpg" />\n' '\n', '\n' '\t<!--<meta property="og:image" ' 'content="https://nisarga.center/static/img/vk.jpg" />-->\n' '\t<link rel="stylesheet" href="', '/static/libs/iziModal/iziModal.min.css', '">\n\t<link rel="stylesheet" href="', '/static/libs/select2/css/select2.min.css', '">\n\t<link rel="stylesheet" href="', '/static/css/main.css', '">\n\t<link href="', '/static/img/favicon.png', '" rel="icon" />\n' '\t<meta name="google-site-verification" ' 'content="McXcb9FMtAw-X2X5dH9zOZwqdWzvYUTQHYbAv9ZABNM" />\n' '\t<script>\n' '\t\t!function(f,b,e,v,n,t,s)\n' '\t\t{if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n' '\t\tn.callMethod.apply(n,arguments):n.queue.push(arguments)};\n' "\t\tif(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n" '\t\tn.queue=[];t=b.createElement(e);t.async=!0;\n' '\t\tt.src=v;s=b.getElementsByTagName(e)[0];\n' "\t\ts.parentNode.insertBefore(t,s)}(window,document,'script',\n" "\t\t'https://connect.facebook.net/en_US/fbevents.js');\n" "\t\tfbq('init', '1618495794990824');\n" "\t\tfbq('track', 'PageView');\n" '\t</script>\n' '</head>\n' '<body>\n' '\t', '\n' '<nav id="page_menu" class="menu">\n' '\t<div class="logo_menu">\n' '\t\t<a href="/"><img src="/static/img/logo-menu.png" alt="Логотип"></a>\n' '\t</div>\n' '\t<div class="social_menu">\n' '\t\t<a href="https://www.facebook.com/groups/nisarga.center/" ' 'onclick="return !window.open(this.href)" rel="nofollow">\n' '\t\t\t<img src="/static/img/icons/facebook-w.svg" alt="Мы в Facebook">\n' '\t\t</a>\n' '\t\t<a href="https://www.instagram.com/cs_nisarga/" onclick="return ' '!window.open(this.href)" rel="nofollow">\n' '\t\t\t<img src="/static/img/icons/instagram-w.svg" alt="Мы в Instagram">\n' '\t\t</a>\n' '\t\t<a href="https://vk.com/nisarga" onclick="return ' '!window.open(this.href)" rel="nofollow">\n' '\t\t\t<img src="/static/img/icons/vkontakte-w.svg" alt="Мы во ВКонтакте">\n' '\t\t</a>\n' '\t\t<a href="https://www.youtube.com/channel/UCau6mdLbcOZgmzv6L-ETUSw" ' 'onclick="return !window.open(this.href)" rel="nofollow">\n' '\t\t\t<img src="/static/img/icons/youtube-w.svg" alt="Мы в YouTube">\n' '\t\t</a>\n' '\t</div>\n' '\t<label for="navbar-checkbox" class="navbar-handle">\n' '\t\t<span class="burger"></span>\n' '\t</label>\n' '\t<input type="checkbox" id="navbar-checkbox" class="mobile-menu-checkbox">\n' '\t<ul>\n' '\t\t<li class="logo-menu"><a href="/"><img src="/static/img/logo-menu.png" ' 'alt="Логотип"></a></li>\n' '\t\t<li><a class="active-menu" href="/events/">Мероприятия</a></li>\n' '\t\t<li><a href="/videos/">Видео</a></li>\n' '\t\t<li><a href="/about/">О центре</a></li>\n' '\t\t<li><a href="/reviews/">Отзывы</a></li>\n' '\t\t<li><a href="/contacts/">Контакты</a></li>\n' '\t</ul>\n' '</nav>\n', '\n\n\t', '\n\t', '\n\n\t', '\n\t\t\n\t', '\n\n\t'] |
context | [{'True': True, 'False': False, 'None': None, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Сергей>, <Review: Богдана>]>}] |
node | <Block Node: content. Contents: [<TextNode: '\n\t'>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f74a663dd10>, <TextNode: '<!DOCTYPE html>\n<html lan'>, <Block Node: html_id. Contents: []>, <TextNode: '">\n<head>\n\t<meta charset='>, <djangoseo.templatetags.seo.MetadataNode object at 0x7f74a65e8850>, <IfNode>, <TextNode: '\n\t'>, <IfNode>, <TextNode: '\n\t'>, <IfNode>, <TextNode: '\n\t'>, <Block Node: extrahead. Contents: [<TextNode: '<meta property="og:image"'>, <django.templatetags.static.StaticNode object at 0x7f74a6933d50>, <TextNode: '" />'>]>, <TextNode: '\n\t<!--<meta property="og:'>, <django.templatetags.static.StaticNode object at 0x7f74a65e8dd0>, <TextNode: '">\n\t<link rel="stylesheet'>, <django.templatetags.static.StaticNode object at 0x7f74a663d110>, <TextNode: '">\n\t<link rel="stylesheet'>, <django.templatetags.static.StaticNode object at 0x7f74a6933f90>, <TextNode: '">\n\t<link href="'>, <django.templatetags.static.StaticNode object at 0x7f74a69331d0>, <TextNode: '" rel="icon" />\n\t<meta na'>, <Block Node: header. Contents: [<TextNode: '\n\t<header class="containe'>, <django.templatetags.static.StaticNode object at 0x7f74a6933650>, <TextNode: '" alt="Мы в Facebook">\n\t\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6933810>, <TextNode: '" alt="Мы в Instagram">\n\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6933610>, <TextNode: '" alt="ВКонтакте">\n\t\t\t</a'>, <django.templatetags.static.StaticNode object at 0x7f74a6933c10>, <TextNode: '" alt="Мы в YouTube">\n\t\t\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6933890>, <TextNode: '" alt="Мы в SoudCould">\n\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6933e50>, <TextNode: '" alt="Мы в Telegram">\n\t\t'>, <django.template.defaulttags.URLNode object at 0x7f74a6919910>, <TextNode: '"><img src="'>, <django.templatetags.static.StaticNode object at 0x7f74a6919450>, <TextNode: '" class="logo_top" alt="Л'>, <django.template.defaulttags.URLNode object at 0x7f74a69199d0>, <TextNode: '"><img src="'>, <django.templatetags.static.StaticNode object at 0x7f74a6919e50>, <TextNode: '" alt="Логотип"></a>\n\t\t</'>, <django.templatetags.static.StaticNode object at 0x7f74a6919a90>, <TextNode: '" alt="Мы в Facebook">\n\t\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6919790>, <TextNode: '" alt="Мы в Instagram">\n\t'>, <django.templatetags.static.StaticNode object at 0x7f74a69198d0>, <TextNode: '" alt="Мы во ВКонтакте">\n'>, <django.templatetags.static.StaticNode object at 0x7f74a6919c90>, <TextNode: '" alt="Мы в YouTube">\n\t\t\t'>, <django.templatetags.static.StaticNode object at 0x7f74a6919c10>, <TextNode: '" alt="Мы в Telegram">\n\t\t'>, <django.template.defaulttags.URLNode object at 0x7f74a6919850>, <TextNode: '"><img src="'>, <django.templatetags.static.StaticNode object at 0x7f74a6919710>, <TextNode: '" alt="Логотип"></a></li>'>, <IfNode>, <TextNode: ' href="'>, <django.template.defaulttags.URLNode object at 0x7f74a6831c50>, <TextNode: '">Мероприятия</a></li>\n\t\t'>, <IfNode>, <TextNode: ' href="'>, <django.template.defaulttags.URLNode object at 0x7f74a6970650>, <TextNode: '">Видео</a></li>\n\t\t\t\t<li>'>, <IfNode>, <TextNode: ' href="'>, <django.template.defaulttags.URLNode object at 0x7f74a6740190>, <TextNode: '">О центре</a></li>\n\t\t\t\t<'>, <IfNode>, <TextNode: ' href="'>, <django.template.defaulttags.URLNode object at 0x7f74a6740a50>, <TextNode: '">Отзывы</a></li>\n\t\t\t\t<li'>, <IfNode>, <TextNode: ' href="'>, <django.template.defaulttags.URLNode object at 0x7f74a6740110>, <TextNode: '">Контакты</a></li>\n\t\t\t</'>]>, <TextNode: '\n\n\t'>, <Block Node: submenu. Contents: [<TextNode: '\n\t'>]>, <TextNode: '\n\n\t'>, <Block Node: messages. Contents: [<TextNode: '\n\t\t'>, <For Node: for message in messages, tail_len: 3>, <TextNode: '\n\t'>]>, <TextNode: '\n\n\t'>, <Block Node: content. Contents: [<TextNode: '\n\t'>]>, <TextNode: '\n\n\t'>, <Block Node: footer. Contents: [<TextNode: '\n\t<footer>\n\t\t<div class="'>, <django.templatetags.static.StaticNode object at 0x7f74a6617e50>, <TextNode: '" alt="... <trimmed 5634 bytes string> |
/home/ubuntu/nisarga/venv/lib/python3.7/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, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Богдана>, <Review: Сергей>]>}] |
self | <Block Node: content. Contents: [<TextNode: '\n\t'>]> |
/home/ubuntu/nisarga/venv/lib/python3.7/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<main>\n\t'>, <django.template.loader_tags.IncludeNode object at 0x7f74a6935f50>, <TextNode: '\n\n\t<section id="event_sec'>, <Variable Node: event.name>, <TextNode: '</h1>\n\t\t\t\t<span>\n\t\t\t\t\t'>, <Variable Node: event.date_start|date:"d">, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <Variable Node: event.date_start|date:"Y">, <TextNode: '\n\t\t\t\t</span>\n\t\t\t\t<span st'>, <Variable Node: event.date_start|date:"H">, <TextNode: ':'>, <Variable Node: event.date_start|date:"i">, <TextNode: '<br>\n\t\t\t\t\tВремя окончания'>, <Variable Node: event.date_end|date:"H">, <TextNode: ':'>, <Variable Node: event.date_end|date:"i">, <TextNode: '</span>\n\t\t\t\t<span class="'>, <Variable Node: event.city_name>, <TextNode: '</span>\n\t\t\t</div>\n\t\t\t<div'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f74a661b510>, <TextNode: '" alt="'>, <Variable Node: event.name>, <TextNode: '">\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t<'>, <IfNode>, <TextNode: '\n\t\t\t<p><span>Место провед'>, <IfNode>, <TextNode: '\n\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t</p>\n\t\t\t<p><span>Стои'>, <django.template.defaulttags.FirstOfNode object at 0x7f74a65d6310>, <TextNode: '</p>\n\t\t\t'>, <IfNode>, <TextNode: '\n\t\t</article>\n\n\t\t<article'>, <Variable Node: event.terms|safe>, <TextNode: '</div>\n\n\t\t\t\t<div class="c'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t<div class="conta'>, <Variable Node: contact.name>, <TextNode: '</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t'>, <Variable Node: contact.phone>, <TextNode: '">'>, <Variable Node: contact.phone>, <TextNode: '</a></span>\n\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t<div class="contac'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t</div'>, <IfNode>, <TextNode: '\n\t\t\t<div class="event_soc'>, <IfNode>, <TextNode: '\n\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t</div>\n\t\t</article>\n\n'>, <IfNode>, <TextNode: '\n\n\t\t<div class="events_im'>, <WithNode>, <TextNode: '\n\t\t</div>\n\n\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t'>, <IfNode>, <TextNode: '\n\n\t</section>\n\n\t<section '>, <Variable Node: event.event_type.description|safe>, <TextNode: '\n\n\t\t\tПоделиться: <span cl'>, <IfNode>, <TextNode: '\n\t</section>\n\n\t'>, <IfNode>, <TextNode: '\n\n\t'>, <IfNode>, <TextNode: '\n</main>\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f74a662fa90> |
context | [{'True': True, 'False': False, 'None': None, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Наталья>, <Review: Сергей>]>}] |
push | <Block Node: content. Contents: [<TextNode: '\n<main>\n\t'>, <django.template.loader_tags.IncludeNode object at 0x7f74a6935f50>, <TextNode: '\n\n\t<section id="event_sec'>, <Variable Node: event.name>, <TextNode: '</h1>\n\t\t\t\t<span>\n\t\t\t\t\t'>, <Variable Node: event.date_start|date:"d">, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <Variable Node: event.date_start|date:"Y">, <TextNode: '\n\t\t\t\t</span>\n\t\t\t\t<span st'>, <Variable Node: event.date_start|date:"H">, <TextNode: ':'>, <Variable Node: event.date_start|date:"i">, <TextNode: '<br>\n\t\t\t\t\tВремя окончания'>, <Variable Node: event.date_end|date:"H">, <TextNode: ':'>, <Variable Node: event.date_end|date:"i">, <TextNode: '</span>\n\t\t\t\t<span class="'>, <Variable Node: event.city_name>, <TextNode: '</span>\n\t\t\t</div>\n\t\t\t<div'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f74a661b510>, <TextNode: '" alt="'>, <Variable Node: event.name>, <TextNode: '">\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t<'>, <IfNode>, <TextNode: '\n\t\t\t<p><span>Место провед'>, <IfNode>, <TextNode: '\n\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t</p>\n\t\t\t<p><span>Стои'>, <django.template.defaulttags.FirstOfNode object at 0x7f74a65d6310>, <TextNode: '</p>\n\t\t\t'>, <IfNode>, <TextNode: '\n\t\t</article>\n\n\t\t<article'>, <Variable Node: event.terms|safe>, <TextNode: '</div>\n\n\t\t\t\t<div class="c'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t<div class="conta'>, <Variable Node: contact.name>, <TextNode: '</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t'>, <Variable Node: contact.phone>, <TextNode: '">'>, <Variable Node: contact.phone>, <TextNode: '</a></span>\n\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t<div class="contac'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t</div'>, <IfNode>, <TextNode: '\n\t\t\t<div class="event_soc'>, <IfNode>, <TextNode: '\n\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t</div>\n\t\t</article>\n\n'>, <IfNode>, <TextNode: '\n\n\t\t<div class="events_im'>, <WithNode>, <TextNode: '\n\t\t</div>\n\n\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t'>, <IfNode>, <TextNode: '\n\n\t</section>\n\n\t<section '>, <Variable Node: event.event_type.description|safe>, <TextNode: '\n\n\t\t\tПоделиться: <span cl'>, <IfNode>, <TextNode: '\n\t</section>\n\n\t'>, <IfNode>, <TextNode: '\n\n\t'>, <IfNode>, <TextNode: '\n</main>\n'>]> |
self | <Block Node: content. Contents: [<TextNode: '\n\t'>]> |
/home/ubuntu/nisarga/venv/lib/python3.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 = 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\n\t\t<div class="events_imgs_block">\n\t\t\t' |
bits | ['\n<main>\n\t', '<section id="events_menu">\n' '\t<div class="secondary-menu-block">\n' '\t\t<ul class="secondary-menu">\n' '\t\t\t<li class="" ><a href="/events/">Все</a></li>\n' '\t\t\t<li class="" ><a href="/events/talk/">Сатсанги</a></li>\n' '\t\t\t<li class="" ><a href="/events/retreat/">Ритриты</a></li>\n' '\t\t\t<li class="" ><a href="/events/seminar/">Тренинги</a></li>\n' '\t\t\t<li class="" ><a href="/events/other/">Другое</a></li>\n' '\t\t\t<li class="button-li"><button class="addlistview" ' 'type="button">Список</button></li>\n' '\t\t</ul>\n' '\t</div>\n' '</section>', '\n' '\n' '\t<section id="event_section">\n' '\t\t<article class="row">\n' '\t\t\t<div class="one-half column eventpage_info_block">\n' '\t\t\t\t<h1>', 'География Меня Плюс', '</h1>\n\t\t\t\t<span>\n\t\t\t\t\t', '13', '-15', '\n\t\t\t\t\t', '\n\t\t\t\t\t\tноября\n\t\t\t\t\t', '\n\t\t\t\t\t', '2020', '\n' '\t\t\t\t</span>\n' '\t\t\t\t<span style="font-size: 18px;margin-top: 15px;">Время начала: ', '17', ':', '00', '<br>\n\t\t\t\t\tВремя окончания: ', '19', ':', '00', '</span>\n\t\t\t\t<span class="event_city">', 'Киев', '</span>\n' '\t\t\t</div>\n' '\t\t\t<div class="one-half column event_img">\n' '\t\t\t\t<div>\n' '\t\t\t\t\t<img class="img-circle" src="', '/media/events/gk0.jpeg.390x390_q85_box-0%2C80%2C2656%2C2630_crop.jpg', '" alt="', 'География Меня Плюс', '">\n\t\t\t\t\t', '\n' '\t\t\t\t\t\t<span class="event_info_blcok1">Проводится с <span>2004</span> ' 'года</span>\n' '\t\t\t\t\t', '\n\t\t\t\t\t', '\n' '\t\t\t\t\t\t<span ' 'class="event_info_blcok2"><span>2366</span>выпускников</span>\n' '\t\t\t\t\t', '\n' '\t\t\t\t</div>\n' '\t\t\t</div>\n' '\t\t</article>\n' '\n' '\t\t<article class="eventpage_info">\n' '\t\t\t', '\n\t\t\t\t<p><span>Участников:</span> 28 (осталось мест: 7)</p>\n\t\t\t', '\n\t\t\t<p><span>Место проведения:</span>\n\t\t\t\t', '\n' '\t\t\t\t\t<a ' 'href="https://www.google.com.ua/maps/place/%D0%9E%D1%80%D0%B8%D1%8F%D0%BD%D0%B0/@50.4472157,30.1016861,15z/data=!4m2!3m1!1s0x0:0xa389c909e615b180?sa=X&ved=0ahUKEwj2v7_n7evVAhVJJlAKHYjUDxYQ_BIIdDAK" ' 'target="_blank"> Центр психологического и телесного возрождения ' '"ОРИЯНА"</a>\n' '\t\t\t\t', '\n\t\t\t\t', '', '\n\t\t\t</p>\n\t\t\t<p><span>Стоимость:</span> ', '350 USD', '</p>\n\t\t\t', '', '\n' '\t\t</article>\n' '\n' '\t\t<article class="row">\n' '\t\t\t<div class="eveint-information-block">\n' '\t\t\t\t<h3><span>Информация</span></h3>\n' '\t\t\t\t<div>', '<p>Стоимость: 350 usd</p>\r\n' '\r\n' '<p>Предоплата: 50 usd. На месте проведения доплачивается оставшаяся разница. ' 'Возврат предоплаты возможен не позже чем за месяц до начала ' 'мероприятия.</p>\r\n' '\r\n' '<p>Стоимость участия указана за одну персону. В стоимость ' 'включено: расширенная программа, проживание в комфортных номерах, ' 'вегетарианское питание... </p>\r\n' '\r\n' '<p>Бассейн и охраняемая парковка предоставляются безоплатно. Массаж, баня и ' 'услуги банщиков в программу не входят и могут быть заказны отдельно.</p>\r\n' '\r\n' '<p>Время проведения:<br />\r\n' 'с 17:00 13 ноября 2020 — до 19:00 15 ноября 2020 (с ' 'проживанием)<br />\r\n' '<br />\r\n' 'Организатор: <br />\r\n' 'Денис, <a href="tel:+38 (066) 80-900-08">+38 (066) 80-900-08</a>, <a ' 'href="https://vk.com/write?email=milodanov@gmail.com" ' 'target="_blank">milodanov@gmail.com</a></p>\r\n' '\r\n' '<p> </p>', '</div>\n' '\n' '\t\t\t\t<div class="contact_table contact-info">\n' '\t\t\t\t\t<div class="contact-image-block">\n' '\t\t\t\t\t\t<div class="contact-image-photo">\n' '\t\t\t\t\t\t\t', '<img class="img-circle" ' 'src="/media/contacts/57384387_2433762480204439_325803282633064448_o.jpg.190x190_q85_box-184%2C82%2C695%2C685_crop.jpg" ' 'alt="Денис">', '\n' '\t\t\t\t\t\t\t<div class="contact-info-name">\n' '\t\t\t\t\t\t\t\t<span>Организатор</span><span>', 'Денис', '</span>\n' '\t\t\t\t\t\t\t</div>\n' '\t\t\t\t\t\t</div>\n' '\t\t\t\t\t</div>\n' '\t\t\t\t\t<div class="cont... <trimmed 6478 bytes string> |
context | [{'True': True, 'False': False, 'None': None, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Сергей>, <Review: Наталья>]>}] |
node | <WithNode> |
self | [<TextNode: '\n<main>\n\t'>, <django.template.loader_tags.IncludeNode object at 0x7f74a6935f50>, <TextNode: '\n\n\t<section id="event_sec'>, <Variable Node: event.name>, <TextNode: '</h1>\n\t\t\t\t<span>\n\t\t\t\t\t'>, <Variable Node: event.date_start|date:"d">, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <Variable Node: event.date_start|date:"Y">, <TextNode: '\n\t\t\t\t</span>\n\t\t\t\t<span st'>, <Variable Node: event.date_start|date:"H">, <TextNode: ':'>, <Variable Node: event.date_start|date:"i">, <TextNode: '<br>\n\t\t\t\t\tВремя окончания'>, <Variable Node: event.date_end|date:"H">, <TextNode: ':'>, <Variable Node: event.date_end|date:"i">, <TextNode: '</span>\n\t\t\t\t<span class="'>, <Variable Node: event.city_name>, <TextNode: '</span>\n\t\t\t</div>\n\t\t\t<div'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f74a661b510>, <TextNode: '" alt="'>, <Variable Node: event.name>, <TextNode: '">\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t<'>, <IfNode>, <TextNode: '\n\t\t\t<p><span>Место провед'>, <IfNode>, <TextNode: '\n\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t</p>\n\t\t\t<p><span>Стои'>, <django.template.defaulttags.FirstOfNode object at 0x7f74a65d6310>, <TextNode: '</p>\n\t\t\t'>, <IfNode>, <TextNode: '\n\t\t</article>\n\n\t\t<article'>, <Variable Node: event.terms|safe>, <TextNode: '</div>\n\n\t\t\t\t<div class="c'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t<div class="conta'>, <Variable Node: contact.name>, <TextNode: '</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t'>, <Variable Node: contact.phone>, <TextNode: '">'>, <Variable Node: contact.phone>, <TextNode: '</a></span>\n\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t<div class="contac'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t</div'>, <IfNode>, <TextNode: '\n\t\t\t<div class="event_soc'>, <IfNode>, <TextNode: '\n\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t</div>\n\t\t</article>\n\n'>, <IfNode>, <TextNode: '\n\n\t\t<div class="events_im'>, <WithNode>, <TextNode: '\n\t\t</div>\n\n\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t'>, <IfNode>, <TextNode: '\n\n\t</section>\n\n\t<section '>, <Variable Node: event.event_type.description|safe>, <TextNode: '\n\n\t\t\tПоделиться: <span cl'>, <IfNode>, <TextNode: '\n\t</section>\n\n\t'>, <IfNode>, <TextNode: '\n\n\t'>, <IfNode>, <TextNode: '\n</main>\n'>] |
/home/ubuntu/nisarga/venv/lib/python3.7/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, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Сергей>, <Review: Наталья>]>}] |
self | <WithNode> |
/home/ubuntu/nisarga/venv/lib/python3.7/site-packages/django/template/defaulttags.py
in render
def __repr__(self):
return "<WithNode>"
def render(self, context):
values = {key: val.resolve(context) for key, val in
six.iteritems(self.extra_context)}
with context.push(**values):
return self.nodelist.render(context)...
@register.tag
def autoescape(parser, token):
"""
Force autoescape behavior for this block.
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Наталья>, <Review: Сергей>]>}] |
self | <WithNode> |
values | {'image_items': <QuerySet [<EventImageItem: EventImageItem object>, <EventImageItem: EventImageItem object>, <EventImageItem: EventImageItem object>]>} |
/home/ubuntu/nisarga/venv/lib/python3.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 = 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\t\t\t\t' |
bits | ['\n\t\t\t\t'] |
context | [{'True': True, 'False': False, 'None': None, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Сергей>, <Review: Наталья>]>}] |
node | <IfNode> |
self | [<TextNode: '\n\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t'>] |
/home/ubuntu/nisarga/venv/lib/python3.7/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, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Сергей>, <Review: Богдана>]>}] |
self | <IfNode> |
/home/ubuntu/nisarga/venv/lib/python3.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 LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | (> (literal <django.template.base.FilterExpression object at 0x7f74a782b290>) (literal <django.template.base.FilterExpression object at 0x7f74a782bd90>)) |
context | [{'True': True, 'False': False, 'None': None, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Сергей>, <Review: Наталья>]>}] |
match | True |
nodelist | [<TextNode: '\n\t\t\t\t<div class="events_i'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f74a6808f50>, <TextNode: '" alt=""></div></div>\n\t\t\t'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f74a6808510>, <TextNode: '" alt=""></div></div>\n\t\t\t'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f74a6808c50>, <TextNode: '" alt=""></div></div>\n\t\t\t'>] |
self | <IfNode> |
/home/ubuntu/nisarga/venv/lib/python3.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 = 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\t\t\t\t<div class="events_imgs"><div><img class="img-circle" src="' |
bits | ['\n\t\t\t\t<div class="events_imgs"><div><img class="img-circle" src="'] |
context | [{'True': True, 'False': False, 'None': None, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Наталья>, <Review: Сергей>]>}] |
node | <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f74a6808f50> |
self | [<TextNode: '\n\t\t\t\t<div class="events_i'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f74a6808f50>, <TextNode: '" alt=""></div></div>\n\t\t\t'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f74a6808510>, <TextNode: '" alt=""></div></div>\n\t\t\t'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f74a6808c50>, <TextNode: '" alt=""></div></div>\n\t\t\t'>] |
/home/ubuntu/nisarga/venv/lib/python3.7/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, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Богдана>, <Review: Наталья>]>}] |
self | <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f74a6808f50> |
/home/ubuntu/nisarga/venv/lib/python3.7/site-packages/easy_thumbnails/templatetags/thumbnail.py
in render
if raise_errors:
raise TemplateSyntaxError(
"%r is an invalid subsampling level." %
opts['subsampling'])
return self.bail_out(context)
try:
thumbnail = get_thumbnailer(source).get_thumbnail(opts)...
except Exception:
if raise_errors:
raise
return self.bail_out(context)
# Return the thumbnail file url, or put the file on the context.
if self.context_name is None:
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None, 'metadata': <djangoseo.base.FormattedMetadata object at 0x7f74a663dcd0>}, {}, {}, {'object': <Event: 2020-11-13-Киев: География Меня Плюс>, 'event': <Event: 2020-11-13-Киев: География Меня Плюс>, 'view': <events.views.EventDetailView object at 0x7f74a690e110>, 'contact': <Contact: Денис - Киев>, 'random_video': <Video: "Никто из дома не выходил.">, 'curr_etype': 'seminar_gm', 'reviews': <QuerySet [<Review: Наталья>, <Review: Сергей>]>}] |
key | 'crop' |
m | <re.Match object; span=(0, 7), match='160x160'> |
opts | {'crop': True, 'size': (160, 160)} |
raise_errors | True |
self | <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f74a6808f50> |
size | '160x160' |
source | <ImageFieldFile: events/gk1.jpg> |
value | True |
/home/ubuntu/nisarga/venv/lib/python3.7/site-packages/easy_thumbnails/files.py
in get_thumbnail
generate = self.generate
thumbnail = self.get_existing_thumbnail(thumbnail_options)
if not thumbnail:
if generate:
thumbnail = self.generate_thumbnail(
thumbnail_options,
silent_template_exception=silent_template_exception)...
if save:
self.save_thumbnail(thumbnail)
else:
signals.thumbnail_missed.send(
sender=self, options=thumbnail_options,
high_resolution=False)
Variable | Value |
---|---|
generate | True |
save | True |
self | <ThumbnailerFieldFile: events/gk1.jpg> |
silent_template_exception | False |
thumbnail | None |
thumbnail_options | {'crop': True, 'quality': 85, 'size': (160, 160), 'subsampling': 2} |
/home/ubuntu/nisarga/venv/lib/python3.7/site-packages/easy_thumbnails/files.py
in generate_thumbnail
if high_resolution:
thumbnail_options['size'] = (orig_size[0] * 2, orig_size[1] * 2)
image = engine.generate_source_image(
self, thumbnail_options, self.source_generators,
fail_silently=silent_template_exception)
if image is None:
raise exceptions.InvalidImageFormatError(
"The source file does not appear to be an image")...
thumbnail_image = engine.process_image(image, thumbnail_options,
self.thumbnail_processors)
if high_resolution:
thumbnail_options['size'] = orig_size # restore original size
Variable | Value |
---|---|
dim | 160 |
high_resolution | False |
image | None |
max_dim | 160 |
min_dim | 0 |
orig_size | (160, 160) |
self | <ThumbnailerFieldFile: events/gk1.jpg> |
silent_template_exception | False |
thumbnail_options | {'crop': True, 'quality': 85, 'size': (160, 160), 'subsampling': 2} |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | '' |
DOCUMENT_ROOT | '/usr/share/nginx/html' |
HTTPS | 'on' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'nisarga.center' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/event/2020-11_13-geografiya-menya' |
QUERY_STRING | '' |
REMOTE_ADDR | '44.200.191.146' |
REMOTE_PORT | '53732' |
REQUEST_METHOD | 'GET' |
REQUEST_URI | '/event/2020-11_13-geografiya-menya' |
SCRIPT_NAME | '' |
SERVER_NAME | 'nisarga.center' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
uwsgi.node | b'vps-5cc49d93' |
uwsgi.version | b'2.0.20' |
wsgi.errors | <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <uwsgi._Input object at 0x7f74ac888bf0> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
nisarga.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [('Anton Malanchuk', 'anton.malanchuk@ukr.net')] |
ADMIN_TOOLS_APP_INDEX_DASHBOARD | 'nisarga.dashboard.CustomAppIndexDashboard' |
ADMIN_TOOLS_INDEX_DASHBOARD | 'nisarga.dashboard.CustomIndexDashboard' |
ADMIN_TOOLS_MENU | 'nisarga.menu.CustomMenu' |
ALLOWED_HOSTS | ['nisarga.org.ua', 'nisarga.center', '127.0.0.1', 'localhost', '57.129.15.158'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/ubuntu/nisarga' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CITIES_LIGHT_INCLUDE_CITY_TYPES | ['PPL', 'PPLA', 'PPLA2', 'PPLA3', 'PPLA4', 'PPLC', 'PPLF', 'PPLG', 'PPLL', 'PPLR', 'PPLS', 'STLMT'] |
CITIES_LIGHT_TRANSLATION_LANGUAGES | ['ru', 'en'] |
CKEDITOR_CONFIGS | {'default': {'toolbar': 'full'}, 'minimal': {'height': 200, 'toolbar': 'minimal', 'toolbar_minimal': [['Bold', 'Italic', 'Underline', 'Source'], ['BulletedList', 'JustifyLeft', 'JustifyCenter', 'JustifyRight'], ['Link', 'Unlink', 'Anchor']], 'width': 500}} |
CKEDITOR_UPLOAD_PATH | 'uploads/' |
CONTACT_EMAIL | 'nisarga@ukr.net' |
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.postgresql_psycopg2', 'HOST': '127.0.0.1', 'NAME': 'nisarga_new', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'nisarga'}, 'new': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '127.0.0.1', 'NAME': 'nisarga_new', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'nisarga'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'Y.m.d H:i' |
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'] |
DB_MAILER_MODEL_HTMLFIELD | 'django.db.models.TextField' |
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 | 'НИСАРГА <info@nisarga.org.ua>' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'mailer.backend.DbBackend' |
EMAIL_HOST | 'smtp.mailgun.org' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'postmaster@nisarga.org.ua' |
EMAIL_PORT | 587 |
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 | True |
EVENT_WAITLIST_SIZE | 3 |
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 | [] |
IMAGE_CROPPING_BACKEND | 'image_cropping.backends.easy_thumbs.EasyThumbnailsBackend' |
IMAGE_CROPPING_BACKEND_PARAMS | {} |
IMAGE_CROPPING_JQUERY_URL | '/static/admin/js/vendor/jquery/jquery.min.js' |
IMAGE_CROPPING_SIZE_WARNING | False |
IMAGE_CROPPING_THUMB_SIZE | (300, 300) |
INSTALLED_APPS | ['admin_tools', 'admin_tools.theming', 'admin_tools.menu', 'admin_tools.dashboard', 'django.contrib.sites', 'django.contrib.redirects', 'django.contrib.flatpages', 'django.contrib.humanize', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.postgres', 'django.contrib.sitemaps', 'ckeditor', 'djangoseo', 'events.apps.EventsConfig', 'video.apps.VideoConfig', 'library.apps.LibraryConfig', 'contacts.apps.ContactsConfig', 'helpers.apps.HelpersConfig', 'newsletter.apps.NewsletterConfig', 'nisarga', 'mailer', 'dbmail', 'sortedm2m', 'photologue', 'rangefilter', 'el_pagination', 'easy_thumbnails', 'easy_thumbnails.optimize', 'image_cropping', 'cities_light', 'import_export'] |
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 | 'ru-RU' |
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 | [] |
MAX_UPLOAD_SIZE | '429916160' |
MEDIA_ROOT | '/home/ubuntu/nisarga/../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.contrib.redirects.middleware.RedirectFallbackMiddleware', '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 |
ROOT_URLCONF | 'nisarga.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 | 'nisarga.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
STATICFILES_DIRS | ['/home/ubuntu/nisarga/static'] |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/ubuntu/nisarga/../static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/ubuntu/nisarga/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', 'helpers.context_processors.pulse'], 'loaders': ['admin_tools.template_loaders.Loader', 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
THUMBNAIL_DEBUG | True |
THUMBNAIL_PROCESSORS | ('image_cropping.thumbnail_processors.crop_corners', 'easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', 'easy_thumbnails.processors.scale_and_crop', 'easy_thumbnails.processors.filters', 'easy_thumbnails.processors.background') |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Europe/Kiev' |
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 | 'nisarga.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.