The 'image' attribute has no file associated with it.
Request Method: | GET |
---|---|
Request URL: | https://stels.start-dv.ru/product/stels-s600-viking-st/ |
Django Version: | 3.0.8 |
Exception Type: | ValueError |
Exception Value: | The 'image' attribute has no file associated with it. |
Exception Location: | /var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/db/models/fields/files.py in _require_file, line 38 |
Python Executable: | /usr/bin/uwsgi-core |
Python Version: | 3.8.2 |
Python Path: | ['.', '', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages'] |
Server time: | Чт, 28 Мар 2024 13:11:07 +0300 |
In template /var/www/vhosts/start-dv.ru/project/templates/base.html
, error at line 121
111 | |
---|---|
112 | {% include 'mobile_menu.html' %} |
113 | {% if domains|length > 1 %} |
114 | {% include 'modals/domains.html' %} |
115 | {% endif %} |
116 | |
117 | {% block extra_modals %} |
118 | {% endblock %} |
119 | |
120 | {% include 'modals/buy1click.html' %} |
121 | {# Модальное окно для быстрого просмотра #} |
122 | <div class="modal modal--default-animation modal-product" aria-hidden="true" id="modal-product"></div> |
123 | {% csrf_token %} |
124 | {% comment %} <script src="/static/js/index.bundle.js" defer="defer"></script> {% endcomment %} |
125 | <script src="/static/js/script.bundle.js" defer="defer"></script> |
126 | {% comment %} <script src="/static/js/scrollbar.bundle.js" async="async"></script> {% endcomment %} |
127 | {% block footer_extra %}{% endblock footer_extra %} |
128 | |
129 | {{ request.domain.footer_extra|safe }} |
130 | |
131 |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/template/base.py
in _resolve_lookup
detail and shouldn't be called by external code. Use Variable.resolve()
instead.
"""
current = context
try: # catch-all for silent variable failures
for bit in self.lookups:
try: # dictionary lookup
current = current[bit]…
# ValueError/IndexError are for numpy.array lookup on
# numpy < 1.9 and 1.9+ respectively
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(type(current), bit):
Variable | Value |
---|---|
bit | 'url' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
current | <ImageFieldFile: None> |
self | <Variable: 'item.image.url'> |
template_name | 'catalog/product/detail1.html' |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | ValueError("The 'image' attribute has no file associated with it.") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fa169c7bfd0>> |
request | <WSGIRequest: GET '/product/stels-s600-viking-st/'> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/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 ProductDetailView at 0x7fa16826f8b0> |
callback_args | () |
callback_kwargs | {'slug': 'stels-s600-viking-st'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fa168478070>> |
request | <WSGIRequest: GET '/product/stels-s600-viking-st/'> |
resolver | <URLResolver 'system.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=apps.catalog.views.ProductDetailView, args=(), kwargs={'slug': 'stels-s600-viking-st'}, url_name=product, app_names=[], namespaces=[], route=product/<slug>/) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fa169c7bfd0> |
wrapped_callback | <function ProductDetailView at 0x7fa16826f8b0> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/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 ProductDetailView at 0x7fa16826f8b0> |
callback_args | () |
callback_kwargs | {'slug': 'stels-s600-viking-st'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fa168478070>> |
request | <WSGIRequest: GET '/product/stels-s600-viking-st/'> |
resolver | <URLResolver 'system.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=apps.catalog.views.ProductDetailView, args=(), kwargs={'slug': 'stels-s600-viking-st'}, url_name=product, app_names=[], namespaces=[], route=product/<slug>/) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fa169c7bfd0> |
wrapped_callback | <function ProductDetailView at 0x7fa16826f8b0> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Return the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content…
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
retval | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/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)
return template.render(context, self._request)…
def add_post_render_callback(self, callback):
"""Add a new post-rendering callback.
If the response has already been rendered,
invoke the callback immediately.
Variable | Value |
---|---|
context | {'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'colors': <QuerySet []>, 'composites': <QuerySet []>, 'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'sizes': <QuerySet []>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'variations': [], 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7fa1677a87f0> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/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}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
request | <WSGIRequest: GET '/product/stels-s600-viking-st/'> |
self | <django.template.backends.django.Template object at 0x7fa1677a87f0> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/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}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
self | <django.template.base.Template object at 0x7fa167b34d30> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/test/utils.py
in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal that can be
intercepted by the test Client.
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)…
class _TestState:
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
self | <django.template.base.Template object at 0x7fa167b34d30> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/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}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
self | <ExtendsNode: extends "base.html"> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/template/loader_tags.py
in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)…
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, extra_context=None, isolated_context=False, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7fa167f43eb0> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n '>]>, 'extra_modals': <Block Node: extra_modals. Contents: [<TextNode: '\n '>]>, 'footer': <Block Node: footer. Contents: [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa168108520>, <TextNode: '\n '>]>, 'footer_extra': <Block Node: footer_extra. Contents: []>, 'header': <Block Node: header. Contents: [<TextNode: '\n <div style="'>, <Variable Node: header_template>, <TextNode: '</div>\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa167e29f40>, <TextNode: '\n '>]>, 'header_extra': <Block Node: header_extra. Contents: []>, 'social-wrap': <Block Node: social-wrap. Contents: [<TextNode: '\n <div id="flo'>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>} |
compiled_parent | <django.template.base.Template object at 0x7fa1672202e0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
node | <django.template.defaulttags.LoadNode object at 0x7fa167dc2a60> |
self | <ExtendsNode: extends "base.html"> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/test/utils.py
in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal that can be
intercepted by the test Client.
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)…
class _TestState:
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
self | <django.template.base.Template object at 0x7fa1672202e0> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n\n <main class="fl-grow">\n ' |
bits | ['', '\n<html lang="ru" style="--main: ', '#FFB602', '; --main-darker: ', '#D40502', '; --main-lighter: ', 'rgba(255, 182, 2, 0.15)', '; --additional: #ffd98e">\n' '\n' ' <head>\n' ' <meta name="viewport" content="width=device-width, initial-scale=1" ' '/>\n' ' <meta charset="UTF-8" />\n' ' <title>', 'stels s600 viking st | start-dv', '</title>\n <link rel="shortcut icon" href="', '/media/images/configuration/logo/favicon/favicon-_1_.png', '" type="image/png" />\n' ' <!-- Seo -->\n' ' <link rel="canonical" href="', 'https', '://', 'stels.start-dv.ru', '/product/stels-s600-viking-st/', '"/>\n <title>', 'stels s600 viking st | start-dv', '</title>\n <meta name="description" content="', 'stels s600 viking st - Информацию подробнее ищите на нашем сайте или ' 'узнавайте по телефону', '">\n <meta name="keywords" content="', '', '">\n\t\t<meta property="og:title" content="', 'stels s600 viking st | start-dv', '">\n\t\t<meta property="og:description" content="', 'stels s600 viking st - Информацию подробнее ищите на нашем сайте или ' 'узнавайте по телефону', '">\n\t\t<meta property="og:url" content="', 'https', '://', 'stels.start-dv.ru', '/product/stels-s600-viking-st/', '"/>\n\t\t', '\n' '\t\t <meta property="og:image" ' 'content="https://stels.start-dv.ru/media/cache/d9/2f/d92f303da4dab3a694471276f365fa86.jpg"/>\n' '\t\t', '\n' '\t\t<meta property="og:type" content="website" />\n' ' <!-- <link rel="stylesheet" as="style" ' 'href="/static/css/index.css">\n' ' <link rel="stylesheet" href="/static/css/category.css"> -->\n' ' <link rel="stylesheet" href="/static/css/main.css">\n' ' <link rel="stylesheet" as="style" href="/static/css/index.css">\n' ' ', '\n <link rel="stylesheet" href="/static/css/product.css" />\n', '\n ', '<!-- Google Tag Manager -->\r\n' "<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\r\n" "new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\r\n" "j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\r\n" "'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\r\n" "})(window,document,'script','dataLayer','GTM-5KWGVGH');</script>\r\n" '<!-- End Google Tag Manager -->', '\n' ' </head>\n' '\n' ' <body class="d-flex fd-column load" style="overflow-x: hidden;">\n' ' ', '', '\n ', '\n' ' <div style="display: none;" data-egr="" ' '>headers/header5.html</div>\n' ' <header class="header header-desktop">\n' ' <div class="container">\n' ' <div class="header__delimeter d-flex ai-center jc-space-between">\n' ' <a class="header__logo" href="/"><img class="header__logo-icon" ' 'src="/media/images/configuration/logo/logo_SHegay-min.jpg" /></a>\n' ' \n' ' <!-- <div class="header-city d-flex ai-center" ' 'data-micromodal-trigger="modal-cities">\n' ' <div class="header-city__value">Каталог Stels</div>\n' ' <svg class="header-city__arrow" role="img">\n' ' <use ' 'xlink:href="/static/images/sprite.svg#arr-to-bottom"></use>\n' ' </svg>\n' ' </div> -->\n' ' \n' ' <div class="header-menu">\n' ' <!-- -->\n' ' </div>\n' ' <div>\n' ' <!-- <a class="header__contact header__mail" href="mailto: ' 'stels.dv@mail.ru"\n' ' ><svg class="header__contact-icon header__mail-icon" ' 'role="img">\n' ' <use ' 'xlink:href="/static/images/sprite.svg#mail"></use></svg\n' ' ><span ' 'class="header__mail-value">stels.dv@mail.ru</span></a\n' ' > -->\n' ' <div class="header__contact phone-wrap">\n' ' <a class="header__contact header__tel" href="tel: +7 ' '(4242) 25-99-55"\n' ' ><svg class="header__… <trimmed 22933 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
node | <Block Node: content. Contents: [<TextNode: '\n '>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7fa167dc2a60>, <TextNode: '\n<html lang="ru" style="-'>, <Variable Node: settings.color_scheme>, <TextNode: '; --main-darker: '>, <Variable Node: settings.color_scheme_dark>, <TextNode: '; --main-lighter: '>, <Variable Node: settings.color_scheme_alpha>, <TextNode: '; --additional: #ffd98e">'>, <django.template.library.SimpleNode object at 0x7fa167dc2cd0>, <TextNode: '</title>\n <link re'>, <IfNode>, <TextNode: '" type="image/png" />\n '>, <Variable Node: request.scheme>, <TextNode: '://'>, <Variable Node: request.META.HTTP_HOST>, <Variable Node: request.META.PATH_INFO>, <TextNode: '"/>\n <title>'>, <django.template.library.SimpleNode object at 0x7fa167dc2e20>, <TextNode: '</title>\n <meta na'>, <django.template.library.SimpleNode object at 0x7fa167dc26d0>, <TextNode: '">\n <meta name="ke'>, <Variable Node: settings.meta_keywords>, <TextNode: '">\n\t\t<meta property="og:t'>, <django.template.library.SimpleNode object at 0x7fa168105ee0>, <TextNode: '">\n\t\t<meta property="og:d'>, <django.template.library.SimpleNode object at 0x7fa168105400>, <TextNode: '">\n\t\t<meta property="og:u'>, <Variable Node: request.scheme>, <TextNode: '://'>, <Variable Node: request.META.HTTP_HOST>, <Variable Node: request.META.PATH_INFO>, <TextNode: '"/>\n\t\t'>, <IfNode>, <TextNode: '\n\t\t<meta property="og:typ'>, <Block Node: header_extra. Contents: []>, <TextNode: '\n '>, <Variable Node: request.domain.header_extra|safe>, <TextNode: '\n </head>\n\n <body c'>, <django.template.defaulttags.CommentNode object at 0x7fa16789bca0>, <TextNode: '\n '>, <Block Node: header. Contents: [<TextNode: '\n <div style="'>, <Variable Node: header_template>, <TextNode: '</div>\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa167e29f40>, <TextNode: '\n '>]>, <TextNode: '\n\n <main class="fl'>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </main>\n\n '>, <TextNode: '\n '>, <Block Node: footer. Contents: [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa168108520>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: social-wrap. Contents: [<TextNode: '\n <div id="flo'>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa167dfd130>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n '>, <Block Node: extra_modals. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa167df3040>, <TextNode: '\n '>, <TextNode: '\n <div class="moda'>, <django.template.defaulttags.CsrfTokenNode object at 0x7fa167df3250>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7fa167dbf3a0>, <TextNode: '\n <script src="/st'>, <django.template.defaulttags.CommentNode object at 0x7fa167dbf520>, <TextNode: '\n '>, <Block Node: footer_extra. Contents: []>, <TextNode: '\n\n '>, <Variable Node: request.domain.footer_extra|safe>, <TextNode: '\n \n\n <!-- Yandex'>] |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/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}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
self | <Block Node: content. Contents: [<TextNode: '\n '>]> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/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 <div class="page articl'>, <django.template.library.InclusionNode object at 0x7fa1679db460>, <TextNode: '\n <a class'>, <Variable Node: back_url>, <TextNode: '">\n <s'>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n '>, <ForNode: for item in product.gallery.all, tail_len: 5>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <Variable Node: product.id>, <TextNode: "'>\n ">, <Variable Node: object.title>, <TextNode: '</div>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '</div>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <Block Node: properties. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa167b47940>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa167a0e0d0>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa167a0e220>, <TextNode: '\n </di'>, <IfNode>, <TextNode: '\n </div>\n '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7fa167f43eb0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
push | <Block Node: content. Contents: [<TextNode: '\n <div class="page articl'>, <django.template.library.InclusionNode object at 0x7fa1679db460>, <TextNode: '\n <a class'>, <Variable Node: back_url>, <TextNode: '">\n <s'>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n '>, <ForNode: for item in product.gallery.all, tail_len: 5>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <Variable Node: product.id>, <TextNode: "'>\n ">, <Variable Node: object.title>, <TextNode: '</div>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '</div>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <Block Node: properties. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa167b47940>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa167a0e0d0>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa167a0e220>, <TextNode: '\n </di'>, <IfNode>, <TextNode: '\n </div>\n '>]> |
self | <Block Node: content. Contents: [<TextNode: '\n '>]> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n\n ' |
bits | ['\n' ' <div class="page article">\n' ' <div class="container">\n' ' ', '\n' '<div class="breadcrumbs">\n' ' \n' ' \n' ' <a class="breadcrumbs__item" href="/">Главная</a>\n' ' <svg class="breadcrumbs__arr" role="img">\n' ' <use ' 'xlink:href="/static/images/sprite.svg#arr-to-bottom"></use>\n' ' </svg>\n' ' \n' ' \n' ' \n' ' <a class="breadcrumbs__item" href="/catalog/">Каталог</a>\n' ' <svg class="breadcrumbs__arr" role="img">\n' ' <use ' 'xlink:href="/static/images/sprite.svg#arr-to-bottom"></use>\n' ' </svg>\n' ' \n' ' \n' ' \n' ' <a class="breadcrumbs__item" ' 'href="/catalog/mototekhnika/">мототехника</a>\n' ' <svg class="breadcrumbs__arr" role="img">\n' ' <use ' 'xlink:href="/static/images/sprite.svg#arr-to-bottom"></use>\n' ' </svg>\n' ' \n' ' \n' ' \n' ' <a class="breadcrumbs__item" ' 'href="/catalog/snegokhody/">снегоходы</a>\n' ' <svg class="breadcrumbs__arr" role="img">\n' ' <use ' 'xlink:href="/static/images/sprite.svg#arr-to-bottom"></use>\n' ' </svg>\n' ' \n' ' \n' ' \n' ' <a class="breadcrumbs__item" href="/catalog/viking/">viking</a>\n' ' <svg class="breadcrumbs__arr" role="img">\n' ' <use ' 'xlink:href="/static/images/sprite.svg#arr-to-bottom"></use>\n' ' </svg>\n' ' \n' ' \n' ' \n' ' <span class="breadcrumbs__item">stels s600 viking st</span>\n' ' \n' ' \n' '</div>', '\n <a class="come-back article__come-back" href="', '/catalog/viking/', '">\n' ' <svg class="come-back__svg">\n' ' <use ' 'xlink:href="/static/images/sprite.svg#arrow_come-back"></use>\n' ' </svg>\n' ' <div class="come-back__title">Вернуться к списку ' 'товаров</div>\n' ' </a>\n' ' <div class="article__content">\n' ' <div class="article__stand">\n' '\n' ' <div class="article-slider article__stand-column">\n' ' <svg class="article-slider__zoom">\n' ' <use ' 'xlink:href="/static/images/sprite.svg#zoom"></use>\n' ' </svg>\n' ' <div class="product-bagdes ' 'article-slider__bagdes">\n' ' ', '', '\n ', '', '\n ', '', '\n' ' </div>\n' ' <div class="article-slider__view">\n' '\n' ' ', '\n' '\n' ' <a ' 'href="/media/images/catalog/product/full_product_img_1123530.jpg" ' 'class="article-slider__item article-slider__item_stand" data-fancybox="">\n' ' <img class="article-slider__image ' 'article-slider__image-stand" ' 'src="/media/images/catalog/product/full_product_img_1123530.jpg" />\n' ' </a>\n' '\n' ' ', '\n\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
node | <ForNode: for item in product.gallery.all, tail_len: 5> |
self | [<TextNode: '\n <div class="page articl'>, <django.template.library.InclusionNode object at 0x7fa1679db460>, <TextNode: '\n <a class'>, <Variable Node: back_url>, <TextNode: '">\n <s'>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n '>, <ForNode: for item in product.gallery.all, tail_len: 5>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <Variable Node: product.id>, <TextNode: "'>\n ">, <Variable Node: object.title>, <TextNode: '</div>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '</div>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <Block Node: properties. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa167b47940>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa167a0e0d0>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7fa167a0e220>, <TextNode: '\n </di'>, <IfNode>, <TextNode: '\n </div>\n '>] |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/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}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
self | <ForNode: for item in product.gallery.all, tail_len: 5> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/template/defaulttags.py
in render
unpacked_vars = dict(zip(self.loopvars, item))
pop_context = True
context.update(unpacked_vars)
else:
context[self.loopvars[0]] = item
for node in self.nodelist_loop:
nodelist.append(node.render_annotated(context))…
if pop_context:
# Pop the loop variables pushed on to the context to avoid
# the context ending up in an inconsistent state when other
# tags (e.g., include and with) push data to context.
context.pop()
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
i | 0 |
item | <ProductImage: stels s600 viking st> |
len_values | 2 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 2, 'revcounter0': 1} |
node | <Variable Node: item.image.url> |
nodelist | ['\n <a href="'] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <ForNode: for item in product.gallery.all, tail_len: 5> |
unpack | False |
values | <QuerySet [<ProductImage: stels s600 viking st>, <ProductImage: stels s600 viking st>]> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/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}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
self | <Variable Node: item.image.url> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/template/base.py
in render
self.filter_expression = filter_expression
def __repr__(self):
return "<Variable Node: %s>" % self.filter_expression
def render(self, context):
try:
output = self.filter_expression.resolve(context)…
except UnicodeDecodeError:
# Unicode conversion can fail sometimes for reasons out of our
# control (e.g. exception rendering). In that case, we fail
# quietly.
return ''
return render_value_in_context(output, context)
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
self | <Variable Node: item.image.url> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/template/base.py
in resolve
self.filters = filters
self.var = var_obj
def resolve(self, context, ignore_failures=False):
if isinstance(self.var, Variable):
try:
obj = self.var.resolve(context)…
except VariableDoesNotExist:
if ignore_failures:
obj = None
else:
string_if_invalid = context.template.engine.string_if_invalid
if string_if_invalid:
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
ignore_failures | False |
self | <django.template.base.FilterExpression object at 0x7fa1679a8fd0> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/template/base.py
in resolve
var)
self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR))
def resolve(self, context):
"""Resolve this variable against a given context."""
if self.lookups is not None:
# We're dealing with a variable that needs to be resolved
value = self._resolve_lookup(context)…
else:
# We're dealing with a literal, so it's already been "resolved"
value = self.literal
if self.translate:
is_safe = isinstance(value, SafeData)
msgid = value.replace('%', '%%')
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
self | <Variable: 'item.image.url'> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/template/base.py
in _resolve_lookup
# ValueError/IndexError are for numpy.array lookup on
# numpy < 1.9 and 1.9+ respectively
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(type(current), bit):
raise AttributeError
current = getattr(current, bit)…
except (TypeError, AttributeError):
# Reraise if the exception was raised by a @property
if not isinstance(current, BaseContext) and bit in dir(current):
raise
try: # list-index lookup
current = current[int(bit)]
Variable | Value |
---|---|
bit | 'url' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: stels s600 viking st>, 'product': <Product: stels s600 viking st>, 'view': <apps.catalog.views.ProductDetailView object at 0x7fa16d9224c0>, 'back_url': '/catalog/viking/', 'catalog_settings': <CatalogSettings: Настройки каталога>, 'template_name': 'catalog/product/detail1.html', 'template_types': <enum 'ProductTemplate'>, 'colors': <QuerySet []>, 'sizes': <QuerySet []>, 'composites': <QuerySet []>, 'variations': []}] |
current | <ImageFieldFile: None> |
self | <Variable: 'item.image.url'> |
template_name | 'catalog/product/detail1.html' |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/site-packages/django/db/models/fields/files.py
in url
@property
def path(self):
self._require_file()
return self.storage.path(self.name)
@property
def url(self):
self._require_file()…
return self.storage.url(self.name)
@property
def size(self):
self._require_file()
if not self._committed:
Variable | Value |
---|---|
self | <ImageFieldFile: None> |
/var/www/vhosts/start-dv.ru/conf/venv/lib/python3.8/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 getattr(self, '_file', None) is None:
self._file = self.storage.open(self.name, 'rb')
return self._file
Variable | Value |
---|---|
self | <ImageFieldFile: None> |
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 | 'stels.start-dv.ru' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/product/stels-s600-viking-st/' |
QUERY_STRING | '' |
REMOTE_ADDR | '3.81.221.121' |
REMOTE_PORT | '47362' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/product/stels-s600-viking-st/' |
SCRIPT_NAME | '' |
SERVER_NAME | 'start-dv.ru' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
uwsgi.node | b'drv6' |
uwsgi.version | b'2.0.18-debian' |
wsgi.errors | <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <uwsgi._Input object at 0x7fa167ef4690> |
wsgi.multiprocess | False |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
system.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | False |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'users.Account' |
AUTH_VALID_MODULE | 'django.contrib.auth.password_validation' |
BASE_DIR | '/var/www/vhosts/start-dv.ru/project' |
CACHES | {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'KEY_PREFIX': '********************', 'LOCATION': 'redis://127.0.0.1:6379/', 'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}, 'TIMEOUT': 600}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CKEDITOR_CONFIGS | {'default': {'allowedContent': True, 'removePlugins': 'stylesheetparser', 'toolbar_Full': [['Styles', 'Format', 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'], ['Image', 'Flash', 'Table', 'HorizontalRule'], ['TextColor', 'BGColor'], ['Smiley', 'sourcearea', 'SpecialChar'], ['Link', 'Unlink', 'Anchor'], ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language'], ['Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates'], ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'], ['Find', 'Replace', '-', 'SelectAll', '-', 'Scayt'], ['Maximize', 'ShowBlocks']]}} |
CKEDITOR_UPLOAD_PATH | 'uploads/' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
CUSTOM_APPS | ['apps.analytics', 'apps.apiship', 'apps.bonus', 'apps.cart', 'apps.catalog', 'apps.commons', 'apps.compare', 'apps.configuration', 'apps.domains', 'apps.exchange1c', 'apps.feedback', 'apps.index_page', 'apps.komtet', 'apps.nav', 'apps.pages', 'apps.product_options', 'apps.promocode', 'apps.sber_acquiring', 'apps.seo', 'apps.shop', 'apps.stores', 'apps.template_editor', 'apps.users', 'apps.vk_com', 'apps.wishlist', 'apps.webp_converter'] |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 600, 'ENGINE': 'django.db.backends.postgresql', 'HOST': '', 'NAME': 'start-dv-ru', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'start-dv-ru'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 10000 |
DATETIME_FORMAT | 'd.m.Y H:i:s' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_DOMAIN | 'start-dv.ru' |
DEFAULT_DOMAIN_DISPLAY | 'Интернет-магазин' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'ADJUSTME@srvunknown.ps' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'm1.system.place-start.ru' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | None |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 200000000 |
FILE_UPLOAD_PERMISSIONS | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['apps.jet_fix', 'jet.dashboard', 'jet', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sitemaps', 'django_extensions', 'debug_toolbar', 'django_redis', 'sorl.thumbnail', 'ckeditor', 'ckeditor_uploader', 'mptt', 'adminsortable2', 'simple_history', 'colorfield', 'solo', 'captcha', 'apps.analytics', 'apps.apiship', 'apps.bonus', 'apps.cart', 'apps.catalog', 'apps.commons', 'apps.compare', 'apps.configuration', 'apps.domains', 'apps.exchange1c', 'apps.feedback', 'apps.index_page', 'apps.komtet', 'apps.nav', 'apps.pages', 'apps.product_options', 'apps.promocode', 'apps.sber_acquiring', 'apps.seo', 'apps.shop', 'apps.stores', 'apps.template_editor', 'apps.users', 'apps.vk_com', 'apps.wishlist', 'apps.webp_converter'] |
INTERNAL_IPS | [] |
JET_INDEX_DASHBOARD | 'dashboard.CustomIndexDashboard' |
JET_SIDE_MENU_ITEMS | [{'app_label': 'domains', 'items': [{'name': 'domains.domain'}], 'permissions': ['domains.change_domain']}, {'items': [{'name': 'configuration.settings'}, {'name': 'index_page.indexsettings'}, {'name': 'catalog.catalogsettings'}, {'name': 'shop.shopsettings'}], 'label': 'Настройки'}, {'app_label': 'nav', 'items': [{'name': 'headermenuitem'}, {'name': 'footermenuitem'}, {'name': 'sidebarmenuitem'}], 'permissions': ['nav.change_headermenuitem']}, {'app_label': 'pages', 'items': [{'name': 'page'}, {'name': 'heading'}, {'name': 'post'}, {'name': 'offer'}], 'permissions': ['pages.change_page']}, {'app_label': 'catalog', 'items': [{'name': 'category'}, {'name': 'product'}, {'name': 'brand'}, {'name': 'productattribute'}, {'name': 'attributevalue'}], 'permissions': ['catalog.change_product']}, {'app_label': 'stores', 'items': [{'name': 'store'}, {'name': 'storeproductquantity'}]}, {'app_label': 'shop', 'items': [{'name': 'order'}, {'name': 'shopsettings'}, {'name': 'payment'}, {'name': 'shipping'}], 'permissions': ['shop.change_order']}, {'app_label': 'exchange1c', 'items': [{'name': 'settings'}], 'permissions': ['exchange1c.change_settings']}, {'app_label': 'sber_acquiring', 'items': [{'name': 'sbersettings'}], 'permissions': ['sbersettings.change_sbersettings']}, {'app_label': 'komtet', 'items': [{'name': 'komtetsettings'}], 'permissions': ['komtet.change_komtetsettings']}, {'app_label': 'bonus', 'items': [{'name': 'bonussettings'}, {'name': 'bonusaccount'}, {'name': 'action'}], 'permissions': ['bonus.change_bonussettings']}, {'app_label': 'promocode', 'items': [{'name': 'promocode'}]}, {'app_label': 'apiship', 'items': [{'name': 'ordershipping'}], 'permissions': ['apiship.change_ordershipping']}, {'app_label': 'feedback', 'items': [{'name': 'recipient'}, {'name': 'questionsubmit'}]}, {'app_label': 'vk_com', 'items': [{'name': 'vksettings'}, {'name': 'vkproduct'}]}, {'app_label': 'users', 'items': [{'name': 'users.account'}, {'name': 'auth.group'}]}] |
JET_THEMES | [{'color': '#47bac1', 'theme': 'default', 'title': 'Default'}, {'color': '#44b78b', 'theme': 'green', 'title': 'Green'}, {'color': '#2faa60', 'theme': 'light-green', 'title': 'Light Green'}, {'color': '#a464c4', 'theme': 'light-violet', 'title': 'Light Violet'}, {'color': '#5EADDE', 'theme': 'light-blue', 'title': 'Light Blue'}, {'color': '#222', 'theme': 'light-gray', 'title': 'Light Gray'}] |
LANGUAGES | (('ru', 'Русский'), ('en', 'Английский')) |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'ru' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/var/www/vhosts/start-dv.ru/project/../media' |
MEDIA_ROOT_WEBP | '/var/www/vhosts/start-dv.ru/project/../' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware', 'django.middleware.locale.LocaleMiddleware', 'simple_history.middleware.HistoryRequestMiddleware', 'apps.domains.middleware.CurrentDomainMiddleware', 'apps.configuration.middleware.AppsRequestMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'system.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | None |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | '.start-dv.ru' |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.cache' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'system.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | ['captcha.recaptcha_test_key_error'] |
SOLO_CACHE | 'default' |
SOLO_CACHE_TIMEOUT | 300 |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/www/vhosts/start-dv.ru/project/static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/vhosts/start-dv.ru/project/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', 'apps.webp_converter.context_processors.webp_support', 'apps.domains.context_processors.context_domains', 'apps.cart.context_processors.cart', 'apps.configuration.context_processors.context_settings', 'apps.nav.context_processors.context_nav', 'apps.catalog.context_processors.context_catalog', 'apps.wishlist.context_processors.wishlist', 'apps.compare.context_processors.compare']}}] |
TEMPLATE_DIR | '/var/www/vhosts/start-dv.ru/project/templates' |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
THUMBNAIL_KEY_PREFIX | '********************' |
THUMBNAIL_KVSTORE | 'sorl.thumbnail.kvstores.redis_kvstore.KVStore' |
THUMBNAIL_PRESERVE_FORMAT | True |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Europe/Moscow' |
USE_I18N | True |
USE_L10N | False |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'system.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.