falsey file_ argument in get_thumbnail()
Request Method: | GET |
---|---|
Request URL: | http://bidabadi.com/catalogue/nanaj-317x218_8127/ |
Django Version: | 4.2.6 |
Exception Type: | ValueError |
Exception Value: | falsey file_ argument in get_thumbnail() |
Exception Location: | /var/www/rugeast/venv/lib/python3.8/site-packages/sorl/thumbnail/base.py, line 76, in get_thumbnail |
Raised during: | apps.catalogue.views.ProductDetailView |
Python Executable: | /var/www/rugeast/venv/bin/python |
Python Version: | 3.8.10 |
Python Path: | ['/var/www/rugeast/bidabadi', '/var/www/rugeast/venv/bin', '/var/www/rugeast/bidabadi', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/var/www/rugeast/venv/lib/python3.8/site-packages'] |
Server time: | Thu, 28 Mar 2024 20:07:45 +0100 |
In template /var/www/rugeast/bidabadi/templates/rugeast/oscar/partials/get_products_by_category.html
, error at line 22
12 | <h3 class="title-site"> |
---|---|
13 | <i class="icon-point"><span class="path1"></span><span class="path2"></span></i> |
14 | {% trans 'Other in this category' %} |
15 | </h3> |
16 | </div> |
17 | <div class="product-slider br-nav owl-carousel owl-theme"> |
18 | {% for product in cat_products|slice:":8" %} |
19 | <div class="product-card"> |
20 | |
21 | {% with all_images=product.get_all_images %} |
22 | {% oscar_thumbnail all_images.0.original "880x800" upscale=True as thumb %} |
23 | {# {% with image=product.primary_image %}#} |
24 | {# {% oscar_thumbnail image.original "x250" upscale=False as thumb %}#} |
25 | <a href="{{ product.get_absolute_url }}" class="product-card-image"> |
26 | <!-- {% if product.stockrecords.all.first.num_in_stock == 0 %}--> |
27 | <!-- <div class="position-relative">--> |
28 | <!-- <div class="discount soldout bold">{% trans 'Soldout' %}</div>--> |
29 | <!-- </div>--> |
30 | <!-- {% else %}--> |
31 | <!-- {% if product.has_offer %}--> |
32 | <!-- <div class="on-sale">{{ product.has_offer|stringformat:'d' }}%</div>--> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/core/handlers/exception.py
, line 55, in inner
return inner
else:
@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('falsey file_ argument in get_thumbnail()') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fae8e8b1f70>> |
request | <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/core/handlers/base.py
, line 220, in _get_response
self.check_response(
response,
middleware_method,
name="%s.process_template_response"
% (middleware_method.__self__.__class__.__name__,),
)
try:
response = response.render()…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
return response
Variable | Value |
---|---|
callback | <function View.as_view.<locals>.view at 0x7fae8e780670> |
callback_args | () |
callback_kwargs | {'pk': '8127', 'product_slug': 'nanaj-317x218'} |
middleware_method | <bound method BasketMiddleware.process_template_response of <oscar.apps.basket.middleware.BasketMiddleware object at 0x7fae8e8615b0>> |
request | <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fae8e8b1f70> |
wrapped_callback | <function View.as_view.<locals>.view at 0x7fae8c4f30d0> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/response.py
, line 114, 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/rugeast/venv/lib/python3.8/site-packages/django/template/response.py
, line 92, 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 | {'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'basket': <SimpleLazyObject: <function BasketMiddleware.__call__.<locals>.load_full_basket at 0x7fae8c4f3160>>, 'has_active_alert': False, 'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7fae8bbdfa60> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/backends/django.py
, line 61, in render
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: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
request | <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'> |
self | <django.template.backends.django.Template object at 0x7fae8bbdfa60> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 175, 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: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | <Template template_string="{% extends "oscar/la..."> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 167, in _render
def __repr__(self):
return '<%s template_string="%s...">' % (
self.__class__.__qualname__,
self.source[:20].replace("\n", ""),
)
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}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | <Template template_string="{% extends "oscar/la..."> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | [<ExtendsNode: extends "oscar/layout_rugeast.html">] |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fae8bbdf100> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
node | <ExtendsNode: extends "oscar/layout_rugeast.html"> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | <ExtendsNode: extends "oscar/layout_rugeast.html"> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/loader_tags.py
, line 157, in render
}
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__(
Variable | Value |
---|---|
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'title': [<Block Node: title. Contents: [<Variable Node: shop_name>, <TextNode: ' - '>, <Variable Node: shop_tagline>]>, <Block Node: title. Contents: [<TextNode: '\n'>, <Variable Node: product.get_title>, <TextNode: ' | '>, <Variable Node: block.super>, <TextNode: '\n'>]>], 'description': [<Block Node: description. Contents: []>, <Block Node: description. Contents: [<TextNode: '\n'>, <Variable Node: product.description|default:""|striptags>, <TextNode: '\n'>]>], 'extrastyles': [<Block Node: extrastyles. Contents: []>, <Block Node: extrastyles. Contents: [<TextNode: '\n\n<link rel="stylesheet" '>]>], 'breadcrumbs': [<Block Node: breadcrumbs. Contents: [<TextNode: '\n<ul class="breadcrumb">\n'>, <Variable Node: homepage_url>, <TextNode: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7fae8da68730>, <TextNode: '</a>\n </li>\n '>, <WithNode>, <TextNode: '\n</ul>\n'>]>], 'header': [<Block Node: header. Contents: [<TextNode: '\n'>]>], 'content': [<Block Node: content. Contents: []>], 'extrascripts': [<Block Node: extrascripts. Contents: []>, <Block Node: extrascripts. Contents: [<TextNode: '\n\n\t<!-- mfn_hook_bottom -'>, StaticNode(varname=None, path=<FilterExpression "'bidabadi/font/font-awesome.css'">), <TextNode: '" type="text/css" media="'>, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.selectBox.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.yith-wcwl.js?ver=3.0.13'">), <TextNode: "'></script>\n\n\t<script typ">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/scripts.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/theme-my-login.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.blockUI.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/add-to-cart.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/js.cookie.min.js?ver=2.1.4'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/woocommerce.min.js?ver=4.4.1'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/cart-fragments.min.js?ver=4.4.1'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/script.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.prettyPhoto.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/core.min.js'">), <TextNode: "'></script>\n<!--\t<script ">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/widget.min.js'">), <TextNode: "'></script>-->\n\t<script t">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/mouse.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/sortable.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/tabs.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/accordion.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/plugins.js'">), <TextNode: "'></script>-->\n\t<script t">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/menu.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/animations.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jplayer.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/tran… <trimmed 13117 bytes string> |
compiled_parent | <Template template_string="{% extends "oscar/ba..."> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
node | <ExtendsNode: extends "oscar/base_rugeast.html"> |
self | <ExtendsNode: extends "oscar/layout_rugeast.html"> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 167, in _render
def __repr__(self):
return '<%s template_string="%s...">' % (
self.__class__.__qualname__,
self.source[:20].replace("\n", ""),
)
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}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | <Template template_string="{% extends "oscar/ba..."> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | [<ExtendsNode: extends "oscar/base_rugeast.html">] |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fae8bbdf370> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
node | <ExtendsNode: extends "oscar/base_rugeast.html"> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | <ExtendsNode: extends "oscar/base_rugeast.html"> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/loader_tags.py
, line 157, in render
}
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__(
Variable | Value |
---|---|
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'title': [<Block Node: title. Contents: [<Variable Node: shop_name>, <TextNode: ' - '>, <Variable Node: shop_tagline>]>, <Block Node: title. Contents: [<TextNode: '\n'>, <Variable Node: product.get_title>, <TextNode: ' | '>, <Variable Node: block.super>, <TextNode: '\n'>]>], 'description': [<Block Node: description. Contents: []>, <Block Node: description. Contents: [<TextNode: '\n'>, <Variable Node: product.description|default:""|striptags>, <TextNode: '\n'>]>], 'extrastyles': [<Block Node: extrastyles. Contents: []>, <Block Node: extrastyles. Contents: [<TextNode: '\n\n<link rel="stylesheet" '>]>], 'breadcrumbs': [<Block Node: breadcrumbs. Contents: [<TextNode: '\n<ul class="breadcrumb">\n'>, <Variable Node: homepage_url>, <TextNode: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7fae8da68730>, <TextNode: '</a>\n </li>\n '>, <WithNode>, <TextNode: '\n</ul>\n'>]>], 'header': [<Block Node: header. Contents: [<TextNode: '\n'>]>], 'content': [<Block Node: content. Contents: []>], 'extrascripts': [<Block Node: extrascripts. Contents: []>, <Block Node: extrascripts. Contents: [<TextNode: '\n\n\t<!-- mfn_hook_bottom -'>, StaticNode(varname=None, path=<FilterExpression "'bidabadi/font/font-awesome.css'">), <TextNode: '" type="text/css" media="'>, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.selectBox.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.yith-wcwl.js?ver=3.0.13'">), <TextNode: "'></script>\n\n\t<script typ">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/scripts.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/theme-my-login.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.blockUI.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/add-to-cart.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/js.cookie.min.js?ver=2.1.4'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/woocommerce.min.js?ver=4.4.1'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/cart-fragments.min.js?ver=4.4.1'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/script.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.prettyPhoto.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/core.min.js'">), <TextNode: "'></script>\n<!--\t<script ">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/widget.min.js'">), <TextNode: "'></script>-->\n\t<script t">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/mouse.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/sortable.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/tabs.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/accordion.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/plugins.js'">), <TextNode: "'></script>-->\n\t<script t">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/menu.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/animations.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jplayer.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/tran… <trimmed 13117 bytes string> |
blocks | {'cdn_scripts': <Block Node: cdn_scripts. Contents: [<TextNode: '\n <!-- jQuery '>, <TextNode: '\n '>]>, 'description': <Block Node: description. Contents: []>, 'extrahead': <Block Node: extrahead. Contents: []>, 'extrascripts': <Block Node: extrascripts. Contents: []>, 'extrastyles': <Block Node: extrastyles. Contents: []>, 'favicon': <Block Node: favicon. Contents: [<TextNode: '\n'>, <TextNode: '\n <link rel="s'>, StaticNode(varname=None, path=<FilterExpression "'bidabadi/image/bidabadigmbhlogo.png'">), <TextNode: '" />\n '>]>, 'html_class': <Block Node: html_class. Contents: [<TextNode: 'no-js'>]>, 'layout': <Block Node: layout. Contents: []>, 'onbodyload': <Block Node: onbodyload. Contents: []>, 'scripts': <Block Node: scripts. Contents: []>, 'seotag': <Block Node: seotag. Contents: []>, 'styles': <Block Node: styles. Contents: []>, 'title': <Block Node: title. Contents: [<Variable Node: shop_name>, <TextNode: ' - '>, <Variable Node: shop_tagline>]>, 'tracking': <Block Node: tracking. Contents: [<TextNode: '\n '>, <TextNode: '\n '>, <IncludeNode: template=<FilterExpression '"oscar/partials/google_analytics.html"'>>, <TextNode: '\n '>]>, 'viewport': <Block Node: viewport. Contents: [<TextNode: 'width=device-width, initi'>]>} |
compiled_parent | <Template template_string="{% load i18n %}{% l..."> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
node | <django.template.defaulttags.LoadNode object at 0x7fae8e121c70> |
self | <ExtendsNode: extends "oscar/base_rugeast.html"> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 167, in _render
def __repr__(self):
return '<%s template_string="%s...">' % (
self.__class__.__qualname__,
self.source[:20].replace("\n", ""),
)
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}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | <Template template_string="{% load i18n %}{% l..."> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | [<django.template.defaulttags.LoadNode object at 0x7fae8e121c70>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7fae8e121d60>, <TextNode: '\n<!DOCTYPE html>\n<html la'>, <Variable Node: LANGUAGE_CODE|default:"de">, <TextNode: '" class="'>, <Block Node: html_class. Contents: [<TextNode: 'no-js'>]>, <TextNode: '">\n <head>\n '>, <Block Node: seotag. Contents: []>, <TextNode: '\n\n <title>'>, <Block Node: title. Contents: [<Variable Node: shop_name>, <TextNode: ' - '>, <Variable Node: shop_tagline>]>, <TextNode: '</title>\n\n <meta h'>, <django.template.defaulttags.NowNode object at 0x7fae8e124400>, <TextNode: '" />\n <meta name="'>, <Block Node: description. Contents: []>, <TextNode: '" />\n <meta name="'>, <Block Node: viewport. Contents: [<TextNode: 'width=device-width, initi'>]>, <TextNode: '" />\n <meta name="'>, <Block Node: favicon. Contents: [<TextNode: '\n'>, <TextNode: '\n <link rel="s'>, StaticNode(varname=None, path=<FilterExpression "'bidabadi/image/bidabadigmbhlogo.png'">), <TextNode: '" />\n '>]>, <TextNode: '\n\n '>, <TextNode: '\n '>, <Block Node: styles. Contents: []>, <TextNode: '\n\n '>, <TextNode: '\n '>, <Block Node: extrastyles. Contents: []>, <TextNode: '\n\n '>, <Block Node: extrahead. Contents: []>, <TextNode: '\n\n '>, <Block Node: tracking. Contents: [<TextNode: '\n '>, <TextNode: '\n '>, <IncludeNode: template=<FilterExpression '"oscar/partials/google_analytics.html"'>>, <TextNode: '\n '>]>, <TextNode: '\n '>, <IncludeNode: template=<FilterExpression '"oscar/google_tag_head.html"'>>, <TextNode: '\n </head>\n\n'>, <TextNode: '\n <body>\n '>, <IncludeNode: template=<FilterExpression '"oscar/google_tag_body.html"'>>, <TextNode: '\n '>, <TextNode: '\n'>, <TextNode: '\n '>, <Block Node: layout. Contents: []>, <TextNode: '\n'>, <TextNode: '\n '>, <TextNode: '\n '>, <Block Node: cdn_scripts. Contents: [<TextNode: '\n <!-- jQuery '>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <TextNode: '\n '>, <Block Node: scripts. Contents: []>, <TextNode: '\n '>, <TextNode: '\n '>, <Block Node: extrascripts. Contents: []>, <TextNode: '\n\n '>, <TextNode: '\n <script>\n '>, <Block Node: onbodyload. Contents: []>, <TextNode: '\n });\n '>, <TextNode: '\n </body>\n</html>\n'>] |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fae8bbdfeb0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
node | <Block Node: layout. Contents: []> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | <Block Node: layout. Contents: []> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/loader_tags.py
, line 63, 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: layout. Contents: [<TextNode: '\n <header id="header">'>, <TextNode: '\n '>, <IncludeNode: template=<FilterExpression '"oscar/partials/nav_top.html"'>>, <TextNode: '\n\n '>, <TextNode: '\n '>, <IncludeNode: template=<FilterExpression '"oscar/partials/nav_menu_top.html"'>>, <TextNode: '\n </header>\n\n <div '>, <IncludeNode: template=<FilterExpression "'oscar/partials/alert_messages.html'">>, <TextNode: '\n </div>\n\n '>, <TextNode: '\n '>, <Block Node: content_wrapper. Contents: [<TextNode: '\n '>, <TextNode: '\n '>, <Block Node: content. Contents: []>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: footer_address. Contents: [<TextNode: '\n\n '>]>, <TextNode: '\n\n '>, <IncludeNode: template=<FilterExpression '"oscar/partials/footer.html"'>>, <TextNode: '\n'>]> |
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'title': [<Block Node: title. Contents: [<Variable Node: shop_name>, <TextNode: ' - '>, <Variable Node: shop_tagline>]>, <Block Node: title. Contents: [<TextNode: '\n'>, <Variable Node: product.get_title>, <TextNode: ' | '>, <Variable Node: block.super>, <TextNode: '\n'>]>], 'description': [<Block Node: description. Contents: []>, <Block Node: description. Contents: [<TextNode: '\n'>, <Variable Node: product.description|default:""|striptags>, <TextNode: '\n'>]>], 'extrastyles': [<Block Node: extrastyles. Contents: []>, <Block Node: extrastyles. Contents: [<TextNode: '\n\n<link rel="stylesheet" '>]>], 'breadcrumbs': [<Block Node: breadcrumbs. Contents: [<TextNode: '\n<ul class="breadcrumb">\n'>, <Variable Node: homepage_url>, <TextNode: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7fae8da68730>, <TextNode: '</a>\n </li>\n '>, <WithNode>, <TextNode: '\n</ul>\n'>]>], 'header': [<Block Node: header. Contents: [<TextNode: '\n'>]>], 'content': [<Block Node: content. Contents: []>], 'extrascripts': [<Block Node: extrascripts. Contents: []>, <Block Node: extrascripts. Contents: [<TextNode: '\n\n\t<!-- mfn_hook_bottom -'>, StaticNode(varname=None, path=<FilterExpression "'bidabadi/font/font-awesome.css'">), <TextNode: '" type="text/css" media="'>, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.selectBox.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.yith-wcwl.js?ver=3.0.13'">), <TextNode: "'></script>\n\n\t<script typ">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/scripts.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/theme-my-login.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.blockUI.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/add-to-cart.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/js.cookie.min.js?ver=2.1.4'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/woocommerce.min.js?ver=4.4.1'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/cart-fragments.min.js?ver=4.4.1'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/script.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.prettyPhoto.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/core.min.js'">), <TextNode: "'></script>\n<!--\t<script ">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/widget.min.js'">), <TextNode: "'></script>-->\n\t<script t">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/mouse.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/sortable.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/tabs.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/accordion.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/plugins.js'">), <TextNode: "'></script>-->\n\t<script t">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/menu.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/animations.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jplayer.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/tran… <trimmed 13117 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
push | <Block Node: layout. Contents: [<TextNode: '\n <header id="header">'>, <TextNode: '\n '>, <IncludeNode: template=<FilterExpression '"oscar/partials/nav_top.html"'>>, <TextNode: '\n\n '>, <TextNode: '\n '>, <IncludeNode: template=<FilterExpression '"oscar/partials/nav_menu_top.html"'>>, <TextNode: '\n </header>\n\n <div '>, <IncludeNode: template=<FilterExpression "'oscar/partials/alert_messages.html'">>, <TextNode: '\n </div>\n\n '>, <TextNode: '\n '>, <Block Node: content_wrapper. Contents: [<TextNode: '\n '>, <TextNode: '\n '>, <Block Node: content. Contents: []>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: footer_address. Contents: [<TextNode: '\n\n '>]>, <TextNode: '\n\n '>, <IncludeNode: template=<FilterExpression '"oscar/partials/footer.html"'>>, <TextNode: '\n'>]> |
self | <Block Node: layout. Contents: []> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | [<TextNode: '\n <header id="header">'>, <TextNode: '\n '>, <IncludeNode: template=<FilterExpression '"oscar/partials/nav_top.html"'>>, <TextNode: '\n\n '>, <TextNode: '\n '>, <IncludeNode: template=<FilterExpression '"oscar/partials/nav_menu_top.html"'>>, <TextNode: '\n </header>\n\n <div '>, <IncludeNode: template=<FilterExpression "'oscar/partials/alert_messages.html'">>, <TextNode: '\n </div>\n\n '>, <TextNode: '\n '>, <Block Node: content_wrapper. Contents: [<TextNode: '\n '>, <TextNode: '\n '>, <Block Node: content. Contents: []>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: footer_address. Contents: [<TextNode: '\n\n '>]>, <TextNode: '\n\n '>, <IncludeNode: template=<FilterExpression '"oscar/partials/footer.html"'>>, <TextNode: '\n'>] |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fae8bbdfc70> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
node | <Block Node: content_wrapper. Contents: [<TextNode: '\n '>, <TextNode: '\n '>, <Block Node: content. Contents: []>, <TextNode: '\n '>]> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | <Block Node: content_wrapper. Contents: [<TextNode: '\n '>, <TextNode: '\n '>, <Block Node: content. Contents: []>, <TextNode: '\n '>]> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/loader_tags.py
, line 63, 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_wrapper. Contents: [<TextNode: '\n '>, <TextNode: '\n '>, <Block Node: content. Contents: []>, <TextNode: '\n '>]> |
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'title': [<Block Node: title. Contents: [<Variable Node: shop_name>, <TextNode: ' - '>, <Variable Node: shop_tagline>]>, <Block Node: title. Contents: [<TextNode: '\n'>, <Variable Node: product.get_title>, <TextNode: ' | '>, <Variable Node: block.super>, <TextNode: '\n'>]>], 'description': [<Block Node: description. Contents: []>, <Block Node: description. Contents: [<TextNode: '\n'>, <Variable Node: product.description|default:""|striptags>, <TextNode: '\n'>]>], 'extrastyles': [<Block Node: extrastyles. Contents: []>, <Block Node: extrastyles. Contents: [<TextNode: '\n\n<link rel="stylesheet" '>]>], 'breadcrumbs': [<Block Node: breadcrumbs. Contents: [<TextNode: '\n<ul class="breadcrumb">\n'>, <Variable Node: homepage_url>, <TextNode: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7fae8da68730>, <TextNode: '</a>\n </li>\n '>, <WithNode>, <TextNode: '\n</ul>\n'>]>], 'header': [<Block Node: header. Contents: [<TextNode: '\n'>]>], 'content': [<Block Node: content. Contents: []>], 'extrascripts': [<Block Node: extrascripts. Contents: []>, <Block Node: extrascripts. Contents: [<TextNode: '\n\n\t<!-- mfn_hook_bottom -'>, StaticNode(varname=None, path=<FilterExpression "'bidabadi/font/font-awesome.css'">), <TextNode: '" type="text/css" media="'>, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.selectBox.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.yith-wcwl.js?ver=3.0.13'">), <TextNode: "'></script>\n\n\t<script typ">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/scripts.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/theme-my-login.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.blockUI.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/add-to-cart.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/js.cookie.min.js?ver=2.1.4'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/woocommerce.min.js?ver=4.4.1'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/cart-fragments.min.js?ver=4.4.1'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/script.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.prettyPhoto.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/core.min.js'">), <TextNode: "'></script>\n<!--\t<script ">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/widget.min.js'">), <TextNode: "'></script>-->\n\t<script t">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/mouse.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/sortable.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/tabs.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/accordion.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/plugins.js'">), <TextNode: "'></script>-->\n\t<script t">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/menu.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/animations.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jplayer.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/tran… <trimmed 13117 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
push | <Block Node: content_wrapper. Contents: [<TextNode: '\n '>, <TextNode: '\n '>, <Block Node: content. Contents: []>, <TextNode: '\n '>]> |
self | <Block Node: content_wrapper. Contents: [<TextNode: '\n '>, <TextNode: '\n '>, <Block Node: content. Contents: []>, <TextNode: '\n '>]> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | [<TextNode: '\n '>, <TextNode: '\n '>, <Block Node: content. Contents: []>, <TextNode: '\n '>] |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fae8bbdf640> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
node | <Block Node: content. Contents: []> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | <Block Node: content. Contents: []> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/loader_tags.py
, line 63, 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="container">\n'>, <IncludeNode: template=<FilterExpression '"oscar/catalogue/partials/gallery.html"'>>, <TextNode: '\n\n </div>\n '>, <Variable Node: product.title>, <TextNode: ' cm</h1>\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n\n </div>\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n </div>\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n <div class="'>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </ul>\n '>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n </div>\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n</div>\n\n\n'>, <django.template.defaulttags.LoadNode object at 0x7fae8db3cf40>, <TextNode: '\n'>, <django.template.library.InclusionNode object at 0x7fae8db19040>, <TextNode: '\n\n\n'>, <WithNode>, <TextNode: '\n\n'>, <django.template.library.InclusionNode object at 0x7fae8db19640>, <TextNode: '\n\n'>]> |
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'title': [<Block Node: title. Contents: [<Variable Node: shop_name>, <TextNode: ' - '>, <Variable Node: shop_tagline>]>, <Block Node: title. Contents: [<TextNode: '\n'>, <Variable Node: product.get_title>, <TextNode: ' | '>, <Variable Node: block.super>, <TextNode: '\n'>]>], 'description': [<Block Node: description. Contents: []>, <Block Node: description. Contents: [<TextNode: '\n'>, <Variable Node: product.description|default:""|striptags>, <TextNode: '\n'>]>], 'extrastyles': [<Block Node: extrastyles. Contents: []>, <Block Node: extrastyles. Contents: [<TextNode: '\n\n<link rel="stylesheet" '>]>], 'breadcrumbs': [<Block Node: breadcrumbs. Contents: [<TextNode: '\n<ul class="breadcrumb">\n'>, <Variable Node: homepage_url>, <TextNode: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7fae8da68730>, <TextNode: '</a>\n </li>\n '>, <WithNode>, <TextNode: '\n</ul>\n'>]>], 'header': [<Block Node: header. Contents: [<TextNode: '\n'>]>], 'content': [<Block Node: content. Contents: []>], 'extrascripts': [<Block Node: extrascripts. Contents: []>, <Block Node: extrascripts. Contents: [<TextNode: '\n\n\t<!-- mfn_hook_bottom -'>, StaticNode(varname=None, path=<FilterExpression "'bidabadi/font/font-awesome.css'">), <TextNode: '" type="text/css" media="'>, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.selectBox.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.yith-wcwl.js?ver=3.0.13'">), <TextNode: "'></script>\n\n\t<script typ">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/scripts.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/theme-my-login.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.blockUI.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/add-to-cart.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/js.cookie.min.js?ver=2.1.4'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/woocommerce.min.js?ver=4.4.1'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/cart-fragments.min.js?ver=4.4.1'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/script.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jquery.prettyPhoto.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/core.min.js'">), <TextNode: "'></script>\n<!--\t<script ">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/widget.min.js'">), <TextNode: "'></script>-->\n\t<script t">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/mouse.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/sortable.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/tabs.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/accordion.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/plugins.js'">), <TextNode: "'></script>-->\n\t<script t">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/menu.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/animations.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/jplayer.min.js'">), <TextNode: "'></script>\n\t<script type">, StaticNode(varname=None, path=<FilterExpression "'bidabadi/js/tran… <trimmed 13117 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
push | <Block Node: content. Contents: [<TextNode: '\n<div class="container">\n'>, <IncludeNode: template=<FilterExpression '"oscar/catalogue/partials/gallery.html"'>>, <TextNode: '\n\n </div>\n '>, <Variable Node: product.title>, <TextNode: ' cm</h1>\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n\n </div>\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n </div>\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n <div class="'>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </ul>\n '>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n </div>\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n</div>\n\n\n'>, <django.template.defaulttags.LoadNode object at 0x7fae8db3cf40>, <TextNode: '\n'>, <django.template.library.InclusionNode object at 0x7fae8db19040>, <TextNode: '\n\n\n'>, <WithNode>, <TextNode: '\n\n'>, <django.template.library.InclusionNode object at 0x7fae8db19640>, <TextNode: '\n\n'>]> |
self | <Block Node: content. Contents: []> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | [<TextNode: '\n<div class="container">\n'>, <IncludeNode: template=<FilterExpression '"oscar/catalogue/partials/gallery.html"'>>, <TextNode: '\n\n </div>\n '>, <Variable Node: product.title>, <TextNode: ' cm</h1>\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n\n </div>\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n </div>\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n <div class="'>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </ul>\n '>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n </div>\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n</div>\n\n\n'>, <django.template.defaulttags.LoadNode object at 0x7fae8db3cf40>, <TextNode: '\n'>, <django.template.library.InclusionNode object at 0x7fae8db19040>, <TextNode: '\n\n\n'>, <WithNode>, <TextNode: '\n\n'>, <django.template.library.InclusionNode object at 0x7fae8db19640>, <TextNode: '\n\n'>] |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fae8bbdf4f0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
node | <django.template.library.InclusionNode object at 0x7fae8db19040> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
self | <django.template.library.InclusionNode object at 0x7fae8db19040> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/library.py
, line 278, in render
new_context = context.new(_dict)
# Copy across the CSRF token, if present, because inclusion tags are
# often used for forms, and we need instructions for using CSRF
# protection to be as simple as possible.
csrf_token = context.get("csrf_token")
if csrf_token is not None:
new_context["csrf_token"] = csrf_token
return t.render(new_context)…
def parse_bits(
parser,
bits,
params,
Variable | Value |
---|---|
_dict | {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>} |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}] |
csrf_token | <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'> |
new_context | [{'True': True, 'False': False, 'None': None}, {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>}] |
resolved_args | [[{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Product: Nanaj 317x218>, 'product': <Product: Nanaj 317x218>, 'view': <apps.catalogue.views.ProductDetailView object at 0x7fae8dbc3f10>, 'alert_form': <ProductAlertForm bound=False, valid=Unknown, fields=(email)>, 'has_active_alert': False, 'basket': <SimpleLazyObject: <Basket: Open basket (owner: None, lines: 0)>>}], <Category: Nomadic- Village Carpets > Hamedan>] |
resolved_kwargs | {} |
self | <django.template.library.InclusionNode object at 0x7fae8db19040> |
t | <Template template_string="{% load i18n %}{% l..."> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 177, in render
"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
is True and an exception occurs during parsing, the exception is
annotated with contextual line information where it occurred in the
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>}] |
self | <Template template_string="{% load i18n %}{% l..."> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 167, in _render
def __repr__(self):
return '<%s template_string="%s...">' % (
self.__class__.__qualname__,
self.source[:20].replace("\n", ""),
)
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}, {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>}] |
self | <Template template_string="{% load i18n %}{% l..."> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>}] |
self | [<django.template.defaulttags.LoadNode object at 0x7fae8db341c0>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7fae8db342b0>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7fae8db34370>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7fae8db34430>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7fae8db344f0>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7fae8db345b0>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7fae8db34670>, <TextNode: '\n\n<section class="today m'>, <django.templatetags.i18n.TranslateNode object at 0x7fae8db34730>, <TextNode: '\n </h3>\n '>, <ForNode: for product in cat_products|slice:":8", tail_len: 27>, <TextNode: '\n </div>\n </div'>] |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fae8bbdf130> |
context | [{'True': True, 'False': False, 'None': None}, {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>}] |
node | <ForNode: for product in cat_products|slice:":8", tail_len: 27> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>}] |
self | <ForNode: for product in cat_products|slice:":8", tail_len: 27> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/defaulttags.py
, line 238, 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}, {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>}] |
i | 2 |
item | <Product: Hamadan 122x60> |
len_values | 8 |
loop_dict | {'counter': 3, 'counter0': 2, 'first': False, 'last': False, 'parentloop': {}, 'revcounter': 6, 'revcounter0': 5} |
node | <WithNode> |
nodelist | ['\n <div class="product-card">\n\n ', '\n' ' \n' '\n' '\n' ' <a href="/catalogue/hamadan-122x82_12088/" ' 'class="product-card-image">\n' '<!-- -->\n' '<!-- -->\n' '<!-- -->\n' '\n' '\n' ' <img ' 'src="/media/cache/49/49/49490387ae07d115adb71d0c81b5b5c0.jpg" alt="Hamadan ' '122x82">\n' '<!-- <span class="iwrapper"><i ' 'class="icon-basket"></i></span>-->\n' ' </a>\n' ' ', '\n', '\n <h2 class="product-card-title"><a href="', '/catalogue/hamadan-122x82_12088/', '">', 'Hamadan 122x82', 'cm</a></h2>\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n </div>\n ', '\n <div class="product-card">\n\n ', '\n' ' \n' '\n' '\n' ' <a href="/catalogue/hamadan-127x83_12087/" ' 'class="product-card-image">\n' '<!-- -->\n' '<!-- -->\n' '<!-- -->\n' '\n' '\n' ' <img ' 'src="/media/cache/87/88/87884a7900b1e9e5e1ef90d815622326.jpg" alt="Hamadan ' '127x83">\n' '<!-- <span class="iwrapper"><i ' 'class="icon-basket"></i></span>-->\n' ' </a>\n' ' ', '\n', '\n <h2 class="product-card-title"><a href="', '/catalogue/hamadan-127x83_12087/', '">', 'Hamadan 127x83', 'cm</a></h2>\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n </div>\n ', '\n <div class="product-card">\n\n '] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <ForNode: for product in cat_products|slice:":8", tail_len: 27> |
unpack | False |
values | <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>]> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>}] |
self | <WithNode> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/defaulttags.py
, line 541, in render
def __repr__(self):
return "<%s>" % self.__class__.__name__
def render(self, context):
values = {key: val.resolve(context) for key, val in self.extra_context.items()}
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}, {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>}] |
self | <WithNode> |
values | {'all_images': <QuerySet []>} |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>}] |
self | [<TextNode: '\n '>, <oscar.templatetags.image_tags.ThumbnailNode object at 0x7fae8db34880>, <TextNode: '\n'>, <TextNode: '\n'>, <TextNode: '\n <a href="'>, <Variable Node: product.get_absolute_url>, <TextNode: '" class="product-card-ima'>, <IfNode>, <TextNode: '-->\n\n\n <im'>, <Variable Node: thumb.url>, <TextNode: '" alt="'>, <Variable Node: product.get_title>, <TextNode: '">\n<!-- <s'>] |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fae8db9e6d0> |
context | [{'True': True, 'False': False, 'None': None}, {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>}] |
node | <oscar.templatetags.image_tags.ThumbnailNode object at 0x7fae8db34880> |
/var/www/rugeast/venv/lib/python3.8/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>}] |
self | <oscar.templatetags.image_tags.ThumbnailNode object at 0x7fae8db34880> |
/var/www/rugeast/venv/lib/python3.8/site-packages/oscar/templatetags/image_tags.py
, line 116, in render
return {"size": self.size_var.resolve(context)}
def render(self, context):
try:
return self._render(context)
except Exception as e:
if getattr(settings, "OSCAR_THUMBNAIL_DEBUG", settings.DEBUG):
raise e…
logger.exception(e)
return ""
def _render(self, context):
source = self.source_var.resolve(context)
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>}] |
self | <oscar.templatetags.image_tags.ThumbnailNode object at 0x7fae8db34880> |
/var/www/rugeast/venv/lib/python3.8/site-packages/oscar/templatetags/image_tags.py
, line 113, in render
self.options.append((key, expr))
def get_thumbnail_options(self, context):
return {"size": self.size_var.resolve(context)}
def render(self, context):
try:
return self._render(context)…
except Exception as e:
if getattr(settings, "OSCAR_THUMBNAIL_DEBUG", settings.DEBUG):
raise e
logger.exception(e)
return ""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>}] |
self | <oscar.templatetags.image_tags.ThumbnailNode object at 0x7fae8db34880> |
/var/www/rugeast/venv/lib/python3.8/site-packages/oscar/templatetags/image_tags.py
, line 129, in _render
source = self.source_var.resolve(context)
options = self.get_thumbnail_options(context)
for key, expr in self.options:
value = self.no_resolve.get(str(expr), expr.resolve(context))
options[key] = value
thumbnailer = get_thumbnailer()
thumbnail = thumbnailer.generate_thumbnail(source, **options)…
if self.context_name is None:
return escape(thumbnail.url)
else:
context[self.context_name] = thumbnail
return ""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {'cat_products': <ProductQuerySet [<Product: Hamadan 122x82>, <Product: Hamadan 127x83>, <Product: Hamadan 122x60>, <Product: Hamadan 129x74>, <Product: Hamadan 62x54>, <Product: Hamadan 224x149>, <Product: Hamadan 121x67>, <Product: Hamadan 98x74>, <Product: Rudbar 102x64>, <Product: Hamadan 95x71>, <Product: Hamadan 89x61>, <Product: Hosenabad 393x45>, <Product: Hamadan 86x54>, <Product: Hamadan 80x56>, <Product: Hamadan 364x263>, <Product: Lilian 165x109>, <Product: Hodenabad 395x98>, <Product: Hamadan 306x107>, <Product: Hamadan 425x103>, <Product: Hamadan 291x150>, '...(remaining elements truncated)...']>, 'request': <WSGIRequest: GET '/catalogue/nanaj-317x218_8127/'>, 'csrf_token': <SimpleLazyObject: 'H5OTHMcAREwXWQgGPS5Nhz3mXfZajEz7aypqLAPdnXJUK4BLVZRRBm54vEnyINRQ'>}] |
expr | <FilterExpression 'True'> |
key | 'upscale' |
options | {'size': '880x800', 'upscale': True} |
self | <oscar.templatetags.image_tags.ThumbnailNode object at 0x7fae8db34880> |
source | '' |
thumbnailer | <oscar.core.thumbnails.SorlThumbnail object at 0x7fae8ceffac0> |
value | True |
/var/www/rugeast/venv/lib/python3.8/site-packages/oscar/core/thumbnails.py
, line 29, in generate_thumbnail
# Sorl can accept only: "width x height", "width", "x height".
# https://sorl-thumbnail.readthedocs.io/en/latest/template.html#geometry
# So for example value '50x' must be converted to '50'.
size = opts.pop("size")
width, height = size.split("x")
# Set `size` to `width` if `height` is not provided.
size = size if height else width
return get_thumbnail(source, size, **opts)…
def delete_thumbnails(self, source):
from sorl.thumbnail import delete
from sorl.thumbnail.helpers import ThumbnailError
try:
Variable | Value |
---|---|
get_thumbnail | <function get_thumbnail at 0x7fae90ff4e50> |
height | '800' |
opts | {'upscale': True} |
self | <oscar.core.thumbnails.SorlThumbnail object at 0x7fae8ceffac0> |
size | '880x800' |
source | '' |
width | '880' |
/var/www/rugeast/venv/lib/python3.8/site-packages/sorl/thumbnail/shortcuts.py
, line 8, in get_thumbnail
from sorl.thumbnail import default
def get_thumbnail(file_, geometry_string, **options):
"""
A shortcut for the Backend ``get_thumbnail`` method
"""
return default.backend.get_thumbnail(file_, geometry_string, **options)…
def delete(file_, delete_file=True):
"""
A shortcut for the Backend ``delete`` method
"""
Variable | Value |
---|---|
file_ | '' |
geometry_string | '880x800' |
options | {'upscale': True} |
/var/www/rugeast/venv/lib/python3.8/site-packages/sorl/thumbnail/base.py
, line 76, in get_thumbnail
secondly it will create it.
"""
logger.debug('Getting thumbnail for file [%s] at [%s]', file_, geometry_string)
if file_:
source = ImageFile(file_)
else:
raise ValueError('falsey file_ argument in get_thumbnail()')…
# preserve image filetype
if settings.THUMBNAIL_PRESERVE_FORMAT:
options.setdefault('format', self._get_format(source))
for key, value in self.default_options.items():
Variable | Value |
---|---|
file_ | '' |
geometry_string | '880x800' |
options | {'upscale': True} |
self | <sorl.thumbnail.base.ThumbnailBackend object at 0x7fae8dd8ee20> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CSRF_COOKIE | 'DDLHeYNNGtn7YovfghWeuXcSIzyyzjsT' |
CSRF_COOKIE_NEEDS_UPDATE | True |
HTTP_ACCEPT | '*/*' |
HTTP_ACCEPT_ENCODING | 'gzip, br' |
HTTP_CDN_LOOP | 'cloudflare' |
HTTP_CF_CONNECTING_IP | '54.197.64.207' |
HTTP_CF_IPCOUNTRY | 'US' |
HTTP_CF_RAY | '86b9e7a81efa6faf-IAD' |
HTTP_CF_VISITOR | '{"scheme":"https"}' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'bidabadi.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '54.197.64.207, 172.70.175.192' |
HTTP_X_FORWARDED_PROTO | 'http' |
HTTP_X_REAL_IP | '172.70.175.192' |
PATH_INFO | '/catalogue/nanaj-317x218_8127/' |
QUERY_STRING | '' |
RAW_URI | '/catalogue/nanaj-317x218_8127/' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'bidabadi.com' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.1.0' |
gunicorn.socket | <socket.socket fd=8, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/var/www/rugeast/bidabadi/bidabadi.socket> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fae8c51aa90> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7fae8cb6bfd0> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
teemche.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ADMIN_ORDER_EMAIL | ['[email protected]'] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('oscar.apps.customer.auth_backends.EmailBackend', 'django.contrib.auth.backends.ModelBackend') |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/var/www/rugeast/bidabadi' |
CACHES | {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'KEY_PREFIX': '********************', 'LOCATION': 'redis://127.0.0.1:6379/1', 'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CELERY_ACCEPT_CONTENT | ['application/json'] |
CELERY_BROKER_URL | 'redis://localhost:6379/1' |
CELERY_ENABLE_UTC | False |
CELERY_RESULT_BACKEND | 'redis://localhost:6379/1' |
CELERY_TASK_SERIALIZER | 'json' |
CELERY_TIMEZONE | 'Asia/Tehran' |
CONTACT_MAIL_RECIPIENT | ['[email protected]'] |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_MASKED | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': True, 'AUTOCOMMIT': True, 'CONN_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': 'localhost', 'NAME': 'new2rugeast', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'rugeast'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATA_UPLOAD_MAX_NUMBER_FILES | 100 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
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_AUTO_FIELD | 'django.db.models.BigAutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_BODY | 'Your invoice is : {}' |
EMAIL_HOST | 'smtp.ionos.de' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '[email protected]' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT | 'Invoice' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
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 | 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' |
GOOGLE_ANALYTICS_ID | 'xxxx' |
HAYSTACK_CONNECTIONS | {'default': {'ENGINE': 'haystack.backends.simple_backend.SimpleEngine'}} |
IGNORABLE_404_URLS | [] |
IMPORT_PRODUCT_INCREASE_TAX | False |
IMPORT_PRODUCT_INCREASE_TAX_PERCENT | 19.0 |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'oscarapi', 'rosetta', 'django.contrib.sites', 'django.contrib.flatpages', 'core.apps.CoreConfig', 'apps.social', 'apps.slider', 'apps.newsletter', 'apps.contact', 'apps.importer', 'oscar.config.Shop', 'oscar.apps.analytics.apps.AnalyticsConfig', 'apps.checkout.apps.CheckoutConfig', 'apps.address.apps.AddressConfig', 'apps.shipping.apps.ShippingConfig', 'apps.catalogue.apps.CatalogueConfig', 'oscar.apps.catalogue.reviews.apps.CatalogueReviewsConfig', 'oscar.apps.communication.apps.CommunicationConfig', 'apps.partner.apps.PartnerConfig', 'oscar.apps.basket.apps.BasketConfig', 'oscar.apps.payment.apps.PaymentConfig', 'apps.offer.apps.OfferConfig', 'apps.order.apps.OrderConfig', 'apps.customer.apps.CustomerConfig', 'oscar.apps.search.apps.SearchConfig', 'oscar.apps.voucher.apps.VoucherConfig', 'oscar.apps.wishlists.apps.WishlistsConfig', 'apps.dashboard.apps.DashboardConfig', 'oscar.apps.dashboard.reports.apps.ReportsDashboardConfig', 'oscar.apps.dashboard.users.apps.UsersDashboardConfig', 'apps.dashboard.orders.apps.OrdersDashboardConfig', 'apps.dashboard.catalogue.apps.CatalogueDashboardConfig', 'oscar.apps.dashboard.offers.apps.OffersDashboardConfig', 'oscar.apps.dashboard.partners.apps.PartnersDashboardConfig', 'oscar.apps.dashboard.pages.apps.PagesDashboardConfig', 'oscar.apps.dashboard.ranges.apps.RangesDashboardConfig', 'oscar.apps.dashboard.reviews.apps.ReviewsDashboardConfig', 'oscar.apps.dashboard.vouchers.apps.VouchersDashboardConfig', 'oscar.apps.dashboard.communications.apps.CommunicationsDashboardConfig', 'oscar.apps.dashboard.shipping.apps.ShippingDashboardConfig', 'oscar_accounts.apps.AccountsConfig', 'oscar_accounts.dashboard.apps.AccountsDashboardConfig', 'widget_tweaks', 'haystack', 'treebeard', 'sorl.thumbnail', 'django_tables2', 'tracking'] |
INTERNAL_IPS | [] |
KAVENEGAR_API_KEY | '********************' |
LANGUAGES | (('en-gb', ''),) |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
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 | ('/var/www/rugeast/bidabadi/locale/',) |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/var/www/rugeast/bidabadi/public/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['tracking.middleware.VisitorTrackingMiddleware', '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', 'oscar.apps.basket.middleware.BasketMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
OSCAR_ACCOUNTS_REDIRECT_URL | 'customer:profile-view' |
OSCAR_ADDRESSES_PER_PAGE | 20 |
OSCAR_ALLOW_ANON_CHECKOUT | True |
OSCAR_ALLOW_ANON_REVIEWS | True |
OSCAR_BASKET_COOKIE_LIFETIME | 604800 |
OSCAR_BASKET_COOKIE_OPEN | 'oscar_open_basket' |
OSCAR_BASKET_COOKIE_SECURE | False |
OSCAR_COOKIES_DELETE_ON_LOGOUT | ['oscar_recently_viewed_products'] |
OSCAR_CURRENCY_FORMAT | {'EUR': {'format': '#,##0 €'}} |
OSCAR_CURRENCY_LOCALE | 'EUR' |
OSCAR_DASHBOARD_DEFAULT_ACCESS_FUNCTION | 'oscar.apps.dashboard.nav.default_access_fn' |
OSCAR_DASHBOARD_ITEMS_PER_PAGE | 50 |
OSCAR_DASHBOARD_NAVIGATION | [{'icon': 'icon-th-list', 'label': 'Dashboard', 'url_name': 'dashboard:index'}, {'children': [{'label': 'Products', 'url_name': 'dashboard:catalogue-product-list'}, {'access_fn': <function <lambda> at 0x7fae9119eaf0>, 'label': 'Product Types', 'url_name': 'dashboard:catalogue-class-list'}, {'label': 'Categories', 'url_name': 'dashboard:catalogue-category-list'}, {'label': 'Seo Boxes', 'url_name': 'dashboard:catalogue-seo-box-list'}], 'icon': 'icon-sitemap', 'label': 'Catalogue'}, {'children': [{'label': 'Orders', 'url_name': 'dashboard:order-list'}, {'label': 'Statistics', 'url_name': 'dashboard:order-stats'}], 'icon': 'icon-shopping-cart', 'label': 'Fulfilment'}, {'children': [{'label': 'Customers', 'url_name': 'dashboard:users-index'}], 'icon': 'icon-group', 'label': 'Customers'}, {'children': [{'label': 'Offers', 'url_name': 'dashboard:offer-list'}, {'label': 'Vouchers', 'url_name': 'dashboard:voucher-list'}, {'label': 'Voucher Sets', 'url_name': 'dashboard:voucher-set-list'}, {'label': 'Ranges', 'url_name': 'dashboard:range-list'}], 'icon': 'icon-bullhorn', 'label': 'Offers'}, {'label': 'Reports', 'url_name': 'dashboard:reports-index'}, {'children': [{'access_fn': <function <lambda> at 0x7fae9119eb80>, 'label': 'Bulk product import', 'url_name': 'csv_import_file_products'}], 'icon': 'icon-globe', 'label': 'Importer'}] |
OSCAR_DEFAULT_CURRENCY | 'EUR' |
OSCAR_DELETE_IMAGE_FILES | True |
OSCAR_DYNAMIC_CLASS_LOADER | 'oscar.core.loading.default_class_loader' |
OSCAR_EAGER_ALERTS | True |
OSCAR_EMAILS_PER_PAGE | 20 |
OSCAR_FROM_EMAIL | '[email protected]' |
OSCAR_GOOGLE_ANALYTICS_ID | '' |
OSCAR_HIDDEN_FEATURES | [] |
OSCAR_HOMEPAGE | '/' |
OSCAR_IMAGE_FOLDER | 'images/products/%Y/%m/' |
OSCAR_INITIAL_LINE_STATUS | 'Pending' |
OSCAR_INITIAL_ORDER_STATUS | 'Pending' |
OSCAR_MAX_BASKET_QUANTITY_THRESHOLD | 10000 |
OSCAR_MISSING_IMAGE_URL | 'image_not_found.jpg' |
OSCAR_MODERATE_REVIEWS | False |
OSCAR_NOTIFICATIONS_PER_PAGE | 20 |
OSCAR_OFFERS_IMPLEMENTED_TYPES | ['SITE', 'VOUCHER'] |
OSCAR_OFFERS_INCL_TAX | False |
OSCAR_OFFERS_PER_PAGE | 20 |
OSCAR_OFFER_ROUNDING_FUNCTION | 'core.handler.offer_round' |
OSCAR_ORDERS_PER_PAGE | 20 |
OSCAR_ORDER_STATUS_PIPELINE | {'Being processed': ('Processed', 'Cancelled'), 'Cancelled': (), 'Pending': ('Being processed', 'Cancelled')} |
OSCAR_PRODUCTS_PER_PAGE | 36 |
OSCAR_PRODUCT_SEARCH_HANDLER | 'core.search_handler.CustomProductSearchHandler' |
OSCAR_RECENTLY_VIEWED_COOKIE_LIFETIME | 604800 |
OSCAR_RECENTLY_VIEWED_COOKIE_NAME | 'teemche_history' |
OSCAR_RECENTLY_VIEWED_COOKIE_SECURE | False |
OSCAR_RECENTLY_VIEWED_PRODUCTS | 20 |
OSCAR_REQUIRED_ADDRESS_FIELDS | ('first_name', 'last_name', 'line1', 'line4', 'state', 'postcode', 'country', 'phone_number', 'phone_number_fields') |
OSCAR_REVIEWS_PER_PAGE | 20 |
OSCAR_SAVE_SENT_EMAILS_TO_DB | True |
OSCAR_SEARCH_FACETS | {'fields': {'product_class': {'field': 'product_class', 'name': 'Type'}, 'rating': {'field': 'rating', 'name': 'Rating'}}, 'queries': {'price_range': {'field': 'price', 'name': 'Price range', 'queries': [('0 to 20', '[0 TO 20]'), ('20 to 40', '[20 TO 40]'), ('40 to 60', '[40 TO 60]'), ('60+', '[60 TO *]')]}}} |
OSCAR_SEND_PLACED_ORDER | False |
OSCAR_SEND_REGISTRATION_EMAIL | False |
OSCAR_SHOP_NAME | 'Bidabadi' |
OSCAR_SHOP_TAGLINE | '' |
OSCAR_SLUG_ALLOW_UNICODE | False |
OSCAR_SLUG_BLACKLIST | [] |
OSCAR_SLUG_FUNCTION | 'oscar.core.utils.default_slugifier' |
OSCAR_SLUG_MAP | {} |
OSCAR_STATIC_BASE_URL | None |
OSCAR_STOCK_ALERTS_PER_PAGE | 20 |
OSCAR_THUMBNAILER | 'oscar.core.thumbnails.SorlThumbnail' |
OSCAR_URL_SCHEMA | 'http' |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PAYPAL_ACCESS_TOKEN | '********************' |
PAYPAL_CLIENT_ID | 'AdKy3ciNDD5Seo-WRuERpmDT7kMEZEr4PqO3TiwBBuMXx31_xAESw-IUEdVS0U9CsN-PWo0ocs_djgSc' |
PAYPAL_SECRET_KEY | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'teemche.urls' |
SECRET_KEY | '********************' |
SECRET_KEY_FALLBACKS | '********************' |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_CROSS_ORIGIN_OPENER_POLICY | 'same-origin' |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'teemche.settings' |
SHOP_THEME | 'rugeast' |
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 |
SITE_URL | 'https://nobelteppich.de' |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
STATICFILES_STORAGE | 'whitenoise.storage.CompressedManifestStaticFilesStorage' |
STATIC_ROOT | '/var/www/rugeast/bidabadi/public/static' |
STATIC_URL | '/static/' |
STORAGES | {'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'}, 'staticfiles': {'BACKEND': 'whitenoise.storage.CompressedManifestStaticFilesStorage'}} |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/rugeast/bidabadi/templates/rugeast'], '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', 'oscar.apps.search.context_processors.search_form', 'oscar.apps.checkout.context_processors.checkout', 'oscar.apps.communication.notifications.context_processors.notifications', 'oscar.core.context_processors.metadata']}}, {'APP_DIRS': True, 'BACKEND': 'lib.template.DjangoFace', 'DIRS': [], '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', 'oscar.apps.search.context_processors.search_form', 'oscar.apps.checkout.context_processors.checkout', 'oscar.apps.communication.notifications.context_processors.notifications', 'oscar.core.context_processors.metadata']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
THUMBNAIL_ALTERNATIVE_RESOLUTIONS | [1.5, 2] |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Europe/Berlin' |
TRACK_PAGEVIEWS | True |
TRACK_REFERER | True |
USER_DEFAULT_EXPIRE_DATE | 10 |
USE_DEPRECATED_PYTZ | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
VERIFICATION_TEMPLATE_NAME | 'dobare' |
WSGI_APPLICATION | 'teemche.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
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.