Reverse for 'categoria' with arguments '('',)' not found. 1 pattern(s) tried: ['cat/(?P<categoria>[^/]+)\\Z']
Request Method: | GET |
---|---|
Request URL: | http://showroomvirtuale.ipino.it/art/808750disk-e-acciaio-bianco-opaco156 |
Django Version: | 3.2.13 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'categoria' with arguments '('',)' not found. 1 pattern(s) tried: ['cat/(?P<categoria>[^/]+)\\Z'] |
Exception Location: | /home/ipino/shop/venv/lib/python3.8/site-packages/django/urls/resolvers.py, line 698, in _reverse_with_prefix |
Python Executable: | /home/ipino/shop/venv/bin/python |
Python Version: | 3.8.10 |
Python Path: | ['/home/ipino/shop/ipino-shop', '/home/ipino/shop/venv/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/ipino/shop/venv/lib/python3.8/site-packages', '/home/ipino/shop/venv/lib/python3.8/site-packages/odf', '/home/ipino/shop/venv/lib/python3.8/site-packages/odf', '/home/ipino/shop/venv/lib/python3.8/site-packages/odf', '/home/ipino/shop/venv/lib/python3.8/site-packages/odf', '/home/ipino/shop/venv/lib/python3.8/site-packages/odf', '/home/ipino/shop/venv/lib/python3.8/site-packages/odf', '/home/ipino/shop/venv/lib/python3.8/site-packages/odf'] |
Server time: | Thu, 28 Mar 2024 17:37:04 +0100 |
In template /home/ipino/shop/ipino-shop/frontend/templates/frontend/layout.html
, error at line 9
1 | {% load static frontend %} |
---|---|
2 | <!DOCTYPE html> |
3 | <html> |
4 | <head> |
5 | <meta charset="utf-8"> |
6 | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
7 | <title>Ipino Shop</title> |
8 | <link rel="preconnect" href="https://fonts.gstatic.com"> |
9 | <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" |
10 | rel="stylesheet"> |
11 | <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}"> |
12 | <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/> |
13 | <link rel="stylesheet" href="{% static 'css/owl.carousel.min.css' %}"> |
14 | <link rel="stylesheet" href="{% static 'css/site.css' %}"> |
15 | </head> |
16 | |
17 | <body> |
18 | <nav class="navbar navbar-expand-lg d-none d-lg-flex navbar-light bg-white fixed-top" style="height:50px"> |
19 | <div class="collapse navbar-collapse" id="navbarSupportedContent"> |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/core/handlers/exception.py
, line 47, in inner
response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
return response
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 | NoReverseMatch("Reverse for 'categoria' with arguments '('',)' not found. 1 pattern(s) tried: ['cat/(?P<categoria>[^/]+)\\\\Z']") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f99459e81f0>> |
request | <WSGIRequest: GET '/art/808750disk-e-acciaio-bianco-opaco156'> |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/core/handlers/base.py
, line 204, in _get_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 ArticoloView at 0x7f99447584c0> |
callback_args | () |
callback_kwargs | {'articolo': '808750disk-e-acciaio-bianco-opaco156'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f9945044b50>> |
request | <WSGIRequest: GET '/art/808750disk-e-acciaio-bianco-opaco156'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f99459e81f0> |
wrapped_callback | <function ArticoloView at 0x7f99447584c0> |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/template/response.py
, line 105, 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"> |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/template/response.py
, line 83, 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 | {'articolo': '808750disk-e-acciaio-bianco-opaco156', 'view': <frontend.views.ArticoloView object at 0x7f994475ad00>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7f993ffaa370> |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/template/backends/django.py
, line 61, in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)…
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articolo': '808750disk-e-acciaio-bianco-opaco156', 'view': <frontend.views.ArticoloView object at 0x7f994475ad00>}] |
request | <WSGIRequest: GET '/art/808750disk-e-acciaio-bianco-opaco156'> |
self | <django.template.backends.django.Template object at 0x7f993ffaa370> |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/template/base.py
, line 170, 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}, {}, {}, {'articolo': '808750disk-e-acciaio-bianco-opaco156', 'view': <frontend.views.ArticoloView object at 0x7f994475ad00>}] |
self | <django.template.base.Template object at 0x7f993fff4a30> |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/template/base.py
, line 162, in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
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}, {}, {}, {'articolo': '808750disk-e-acciaio-bianco-opaco156', 'view': <frontend.views.ArticoloView object at 0x7f994475ad00>}] |
self | <django.template.base.Template object at 0x7f993fff4a30> |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/template/base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articolo': '808750disk-e-acciaio-bianco-opaco156', 'view': <frontend.views.ArticoloView object at 0x7f994475ad00>}] |
node | <ExtendsNode: extends 'frontend/layout.html'> |
self | [<ExtendsNode: extends 'frontend/layout.html'>] |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articolo': '808750disk-e-acciaio-bianco-opaco156', 'view': <frontend.views.ArticoloView object at 0x7f994475ad00>}] |
self | <ExtendsNode: extends 'frontend/layout.html'> |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/template/loader_tags.py
, line 150, in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)…
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, extra_context=None, isolated_context=False, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f99447641f0> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n'>]>, 'footer': <Block Node: footer. Contents: [<TextNode: '\n\n <footer class="py-5'>, <django.templatetags.static.StaticNode object at 0x7f99445c32e0>, <TextNode: '" style="max-width: 100px'>]>, 'script': <Block Node: script. Contents: [<TextNode: '\n'>]>} |
compiled_parent | <django.template.base.Template object at 0x7f993ffec190> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articolo': '808750disk-e-acciaio-bianco-opaco156', 'view': <frontend.views.ArticoloView object at 0x7f994475ad00>}] |
node | <django.template.defaulttags.LoadNode object at 0x7f994402f340> |
self | <ExtendsNode: extends 'frontend/layout.html'> |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/template/base.py
, line 162, in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
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}, {}, {}, {'articolo': '808750disk-e-acciaio-bianco-opaco156', 'view': <frontend.views.ArticoloView object at 0x7f994475ad00>}] |
self | <django.template.base.Template object at 0x7f993ffec190> |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/template/base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('\n' ' <li class="nav-item primary">\n' ' <a class="nav-link text-uppercase"\n' ' href="https://www.ipino.it" target="_blank">IPINO.IT</a>\n' ' </li>\n' '\n' ' </ul>\n' ' </div>\n' '</nav>\n') |
bits | ['', '\n' '<!DOCTYPE html>\n' '<html>\n' '<head>\n' ' <meta charset="utf-8">\n' ' <meta name="viewport" content="width=device-width, initial-scale=1, ' 'shrink-to-fit=no">\n' ' <title>Ipino Shop</title>\n' ' <link rel="preconnect" href="https://fonts.gstatic.com">\n' ' <link ' 'href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap"\n' ' rel="stylesheet">\n' ' <link rel="stylesheet" href="', '/static/css/bootstrap.min.css', '">\n' ' <link ' 'href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" ' 'rel="stylesheet"/>\n' ' <link rel="stylesheet" href="', '/static/css/owl.carousel.min.css', '">\n <link rel="stylesheet" href="', '/static/css/site.css', '">\n' '</head>\n' '\n' '<body>\n' '<nav class="navbar navbar-expand-lg d-none d-lg-flex navbar-light bg-white ' 'fixed-top" style="height:50px">\n' ' <div class="collapse navbar-collapse" id="navbarSupportedContent">\n' ' <ul class="navbar-nav ml-auto">\n' ' <li class="nav-item secondary">\n' ' <a class="nav-link" target="_blank" ' 'href="https://ipino.it/consulenza-online/">Consulenza Online</a>\n' ' </li>\n' ' ', '\n' ' <li class="nav-item secondary">\n' ' <a class="nav-link" href="/login/">Accedi</a>\n' ' </li>\n' ' ', '\n' ' <li class="nav-item secondary">\n' ' <form class="form-inline my-2 my-lg-0" action="', '/ricerca', '">\n' ' <input class="form-control form-control-sm sch_area ' 'mr-sm-2" type="search" placeholder="Cerca"\n' ' aria-label="Cerca" name="q" value="', '', '">\n' ' </form>\n' ' </li>\n' ' </ul>\n' ' </div>\n' '</nav>\n' '<!-- Navigation -->\n' '<nav class="navbar navbar-expand-lg navbar-light bg-blue mt-50 " ' 'style="min-height:80px;">\n' ' <div class="navbar-brand" href="#">\n' ' <a href="', '/', '" class="text-white" style="text-decoration:none">\n <img src="', '/static/images/ipino.png', '" width="120" class="img-fluid">\n' ' </a>\n' '\n' ' <div class="float-right d-flex d-lg-none">\n' ' ', '\n' ' <a class="btn bg-transparent text-white" href="/login/">\n' ' <i class="fa fa-lock"></i>\n' ' </a>\n' ' ', '\n' ' <a class="btn bg-transparent text-white ml-2" ' 'data-toggle="collapse" data-target="#navbarSupportedContent"\n' ' aria-controls="navbarSupportedContent" aria-expanded="false" ' 'aria-label="Toggle navigation">\n' ' <i class="fa fa-bars"></i>\n' ' </a>\n' ' </div>\n' '\n' ' </div>\n' ' <div class="collapse navbar-collapse" id="navbarSupportedContent">\n' ' <ul class="navbar-nav ml-auto">\n' ' ', '\n' ' \n' ' \n' ' <li class="nav-item primary dropdown">\n' ' <a class="nav-link text-uppercase" href="#" ' 'id="navbarDropdown" role="button"\n' ' data-toggle="dropdown" aria-haspopup="true" ' 'aria-expanded="false">\n' ' CALDAIE\n' ' </a>\n' ' <div class="dropdown-menu rounded-0 p-1 border-0 ' 'bg-blue dropdown-menu"\n' ' aria-labelledby="navbarDropdown">\n' ' \n' ' <a class="dropdown-item mont text-white ' 'text-uppercase py-2"\n' ' ' 'href="/cat/caldaie-a-pellet-223">CALDAIE A PELLET</a>\n' ' \n' ' <a class="dropdown-item mont text-white ' 'text-uppercase py-2"\n' ' ' 'href="/cat/… <trimmed 17830 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articolo': '808750disk-e-acciaio-bianco-opaco156', 'view': <frontend.views.ArticoloView object at 0x7f994475ad00>}] |
node | <Block Node: content. Contents: [<TextNode: '\n'>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f994402f340>, <TextNode: '\n<!DOCTYPE html>\n<html>\n<'>, <django.templatetags.static.StaticNode object at 0x7f994402f490>, <TextNode: '">\n <link href="https:'>, <django.templatetags.static.StaticNode object at 0x7f994402f6d0>, <TextNode: '">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x7f994402fa00>, <TextNode: '">\n</head>\n\n<body>\n<nav c'>, <IfNode>, <TextNode: '\n <li class="n'>, <django.template.defaulttags.URLNode object at 0x7f99440512b0>, <TextNode: '">\n <i'>, <Variable Node: q>, <TextNode: '">\n </form'>, <django.template.defaulttags.URLNode object at 0x7f9944051580>, <TextNode: '" class="text-white" styl'>, <django.templatetags.static.StaticNode object at 0x7f99440519d0>, <TextNode: '" width="120" class="img-'>, <IfNode>, <TextNode: '\n <a class="bt'>, <ForNode: for categoria in categorie, tail_len: 3>, <TextNode: '\n <li class="n'>, <Block Node: content. Contents: [<TextNode: '\n'>]>, <TextNode: '\n'>, <Block Node: footer. Contents: [<TextNode: '\n\n <footer class="py-5'>, <django.templatetags.static.StaticNode object at 0x7f99445c32e0>, <TextNode: '" style="max-width: 100px'>]>, <TextNode: '\n<a target="_blank"\n hr'>, <django.templatetags.static.StaticNode object at 0x7f99444eb490>, <TextNode: '" style="width: 40px;"/> '>, <django.templatetags.static.StaticNode object at 0x7f99444eb160>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f99444ebd60>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f99444eb1f0>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f99444ebfd0>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f99444eb580>, <TextNode: '"></script>\n<script src="'>, <Block Node: script. Contents: [<TextNode: '\n'>]>, <TextNode: '\n</body>\n\n</html>'>] |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articolo': '808750disk-e-acciaio-bianco-opaco156', 'view': <frontend.views.ArticoloView object at 0x7f994475ad00>}] |
self | <Block Node: content. Contents: [<TextNode: '\n'>]> |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/template/loader_tags.py
, line 62, in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)…
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: '\n\n <div class="contain'>, <django.template.defaulttags.URLNode object at 0x7f99440e0be0>, <TextNode: '">'>, <Variable Node: articolo.categoria.nome>, <TextNode: '</a>\n '>, <Variable Node: articolo.nome_shop|default:'-'>, <TextNode: '\n </h5>\n '>, <ForNode: for message in messages, tail_len: 3>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </div>\n '>, <django.template.defaulttags.URLNode object at 0x7f9944088ca0>, <TextNode: '" method="post">\n '>, <django.template.defaulttags.CsrfTokenNode object at 0x7f9944088040>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n <div'>, <Variable Node: articolo.id>, <TextNode: '"\n '>, <Variable Node: articolo.id>, <TextNode: '"\n '>, <Variable Node: articolo.id>, <TextNode: '" data-disponibile="'>, <Variable Node: disponibile>, <TextNode: '" name="quantita"\n '>, <IfNode>, <TextNode: '\n '>, <Variable Node: articolo.slug>, <TextNode: '" name="articolo">\n '>, <Variable Node: articolo.descrizione_shop|default_if_none:""|safe>, <TextNode: '\n '>, <ForNode: for scheda in articolo.schede_tecniche, tail_len: 5>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n <div class="containe'>, <django.templatetags.static.StaticNode object at 0x7f99445bca30>, <TextNode: '" class="img-fluid">\n '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f99447641f0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articolo': '808750disk-e-acciaio-bianco-opaco156', 'view': <frontend.views.ArticoloView object at 0x7f994475ad00>}] |
push | <Block Node: content. Contents: [<TextNode: '\n\n <div class="contain'>, <django.template.defaulttags.URLNode object at 0x7f99440e0be0>, <TextNode: '">'>, <Variable Node: articolo.categoria.nome>, <TextNode: '</a>\n '>, <Variable Node: articolo.nome_shop|default:'-'>, <TextNode: '\n </h5>\n '>, <ForNode: for message in messages, tail_len: 3>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </div>\n '>, <django.template.defaulttags.URLNode object at 0x7f9944088ca0>, <TextNode: '" method="post">\n '>, <django.template.defaulttags.CsrfTokenNode object at 0x7f9944088040>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n <div'>, <Variable Node: articolo.id>, <TextNode: '"\n '>, <Variable Node: articolo.id>, <TextNode: '"\n '>, <Variable Node: articolo.id>, <TextNode: '" data-disponibile="'>, <Variable Node: disponibile>, <TextNode: '" name="quantita"\n '>, <IfNode>, <TextNode: '\n '>, <Variable Node: articolo.slug>, <TextNode: '" name="articolo">\n '>, <Variable Node: articolo.descrizione_shop|default_if_none:""|safe>, <TextNode: '\n '>, <ForNode: for scheda in articolo.schede_tecniche, tail_len: 5>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n <div class="containe'>, <django.templatetags.static.StaticNode object at 0x7f99445bca30>, <TextNode: '" class="img-fluid">\n '>]> |
self | <Block Node: content. Contents: [<TextNode: '\n'>]> |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/template/base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('\n' '\n' ' <div class="container-fluid">\n' ' <div class="row bg-azure">\n' ' <div class="col-12 text-center">\n' ' <h5 class="mont-wide text-uppercase py-4 mt-2">\n' ' <a href="') |
bits | ['\n' '\n' ' <div class="container-fluid">\n' ' <div class="row bg-azure">\n' ' <div class="col-12 text-center">\n' ' <h5 class="mont-wide text-uppercase py-4 mt-2">\n' ' <a href="'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articolo': '808750disk-e-acciaio-bianco-opaco156', 'view': <frontend.views.ArticoloView object at 0x7f994475ad00>}] |
node | <django.template.defaulttags.URLNode object at 0x7f99440e0be0> |
self | [<TextNode: '\n\n <div class="contain'>, <django.template.defaulttags.URLNode object at 0x7f99440e0be0>, <TextNode: '">'>, <Variable Node: articolo.categoria.nome>, <TextNode: '</a>\n '>, <Variable Node: articolo.nome_shop|default:'-'>, <TextNode: '\n </h5>\n '>, <ForNode: for message in messages, tail_len: 3>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </div>\n '>, <django.template.defaulttags.URLNode object at 0x7f9944088ca0>, <TextNode: '" method="post">\n '>, <django.template.defaulttags.CsrfTokenNode object at 0x7f9944088040>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n <div'>, <Variable Node: articolo.id>, <TextNode: '"\n '>, <Variable Node: articolo.id>, <TextNode: '"\n '>, <Variable Node: articolo.id>, <TextNode: '" data-disponibile="'>, <Variable Node: disponibile>, <TextNode: '" name="quantita"\n '>, <IfNode>, <TextNode: '\n '>, <Variable Node: articolo.slug>, <TextNode: '" name="articolo">\n '>, <Variable Node: articolo.descrizione_shop|default_if_none:""|safe>, <TextNode: '\n '>, <ForNode: for scheda in articolo.schede_tecniche, tail_len: 5>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n <div class="containe'>, <django.templatetags.static.StaticNode object at 0x7f99445bca30>, <TextNode: '" class="img-fluid">\n '>] |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articolo': '808750disk-e-acciaio-bianco-opaco156', 'view': <frontend.views.ArticoloView object at 0x7f994475ad00>}] |
self | <django.template.defaulttags.URLNode object at 0x7f99440e0be0> |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/template/defaulttags.py
, line 449, in render
current_app = context.request.resolver_match.namespace
except AttributeError:
current_app = None
# Try to look up the URL. If it fails, raise NoReverseMatch unless the
# {% url ... as var %} construct is used, in which case return nothing.
url = ''
try:
url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)…
except NoReverseMatch:
if self.asvar is None:
raise
if self.asvar:
context[self.asvar] = url
Variable | Value |
---|---|
NoReverseMatch | <class 'django.urls.exceptions.NoReverseMatch'> |
args | [''] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articolo': '808750disk-e-acciaio-bianco-opaco156', 'view': <frontend.views.ArticoloView object at 0x7f994475ad00>}] |
current_app | 'frontend' |
kwargs | {} |
reverse | <function reverse at 0x7f9947f09f70> |
self | <django.template.defaulttags.URLNode object at 0x7f99440e0be0> |
url | '' |
view_name | 'frontend:categoria' |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/urls/base.py
, line 86, in reverse
(key, ':'.join(resolved_path))
)
else:
raise NoReverseMatch("%s is not a registered namespace" % key)
if ns_pattern:
resolver = get_ns_resolver(ns_pattern, resolver, tuple(ns_converters.items()))
return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)…
reverse_lazy = lazy(reverse, str)
def clear_url_caches():
Variable | Value |
---|---|
app_list | ['frontend'] |
args | [''] |
current_app | 'frontend' |
current_ns | 'frontend' |
current_path | [] |
extra | '' |
kwargs | {} |
ns | 'frontend' |
ns_converters | {} |
ns_pattern | '' |
path | ['frontend'] |
prefix | '/' |
resolved_path | ['frontend'] |
resolver | <URLResolver <module 'frontend.urls' from '/home/ipino/shop/ipino-shop/frontend/urls.py'> (frontend:frontend) ''> |
urlconf | 'gewi_shop.urls' |
view | 'categoria' |
viewname | 'frontend:categoria' |
/home/ipino/shop/venv/lib/python3.8/site-packages/django/urls/resolvers.py
, line 698, in _reverse_with_prefix
(lookup_view_s, arg_msg, len(patterns), patterns)
)
else:
msg = (
"Reverse for '%(view)s' not found. '%(view)s' is not "
"a valid view function or pattern name." % {'view': lookup_view_s}
)
raise NoReverseMatch(msg)…
Variable | Value |
---|---|
_prefix | '/' |
arg_msg | "arguments '('',)'" |
args | ('',) |
candidate_pat | '/cat/%(categoria)s' |
candidate_subs | {'categoria': ''} |
converters | {'categoria': <django.urls.converters.StringConverter object at 0x7f9947f03700>} |
defaults | {} |
k | 'categoria' |
kwargs | {} |
lookup_view | 'categoria' |
lookup_view_s | 'categoria' |
m | None |
match | True |
msg | ("Reverse for 'categoria' with arguments '('',)' not found. 1 pattern(s) " "tried: ['cat/(?P<categoria>[^/]+)\\\\Z']") |
n | None |
params | ['categoria'] |
pattern | 'cat/(?P<categoria>[^/]+)\\Z' |
patterns | ['cat/(?P<categoria>[^/]+)\\Z'] |
possibilities | [([('cat/%(categoria)s', ['categoria'])], 'cat/(?P<categoria>[^/]+)\\Z', {}, {'categoria': <django.urls.converters.StringConverter object at 0x7f9947f03700>})] |
possibility | [('cat/%(categoria)s', ['categoria'])] |
result | 'cat/%(categoria)s' |
self | <URLResolver <module 'frontend.urls' from '/home/ipino/shop/ipino-shop/frontend/urls.py'> (frontend:frontend) ''> |
text_candidate_subs | {'categoria': ''} |
v | '' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'showroomvirtuale.ipino.it' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '44.204.94.166, 172.29.172.22' |
HTTP_X_FORWARDED_PROTO | 'http' |
HTTP_X_REAL_IP | '172.29.172.22' |
PATH_INFO | '/art/808750disk-e-acciaio-bianco-opaco156' |
QUERY_STRING | '' |
RAW_URI | '/art/808750disk-e-acciaio-bianco-opaco156' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'showroomvirtuale.ipino.it' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.1.0' |
gunicorn.socket | <socket.socket fd=10, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/home/ipino/shop/shop.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f994468bd60> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7f9944067460> |
wsgi.input_terminated | True |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
gewi_shop.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ADMIN_EMAIL | 'marcello@mastersoft.it' |
ALLOWED_HOSTS | ['ipino-shop.gewi.it', 'showroomvirtuale.ipino.it'] |
API_PASSWORD | '********************' |
API_URL | '********************' |
API_USERNAME | '********************' |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'frontend.Customer' |
BASE_DIR | '/home/ipino/shop/ipino-shop' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_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 |
CURRENCY | '€' |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': '', 'NAME': 'ipino_shop', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'ipino'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%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.AutoField' |
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 | 'info@ipino.it' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.ipino.it' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'info@ipino.it' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
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' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'bootstrap4', 'crum', 'versatileimagefield', 'frontend', 'cart', 'payment', 'import_export'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGE_CODE | 'it' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | '/login/' |
LOGOUT_REDIRECT_URL | '/login/' |
LOGOUT_URL | '/logout/' |
MANAGERS | [] |
MEDIA_ROOT | 'media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MESSAGE_TAGS | {10: 'alert-info', 20: 'alert-info', 25: 'alert-success', 30: 'alert-warning', 40: 'alert-danger'} |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'crum.CurrentRequestUserMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NOME_SITO | 'Showroom virtuale Ipino SRL' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'gewi_shop.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | '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 | True |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'gewi_shop.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
STATICFILES_DIRS | ['/home/ipino/shop/ipino-shop/frontend/static'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/ipino/shop/public_html/static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', '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', 'frontend.context_processors.categorie']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Europe/Rome' |
URL_SCHEMA | 'https' |
USE_I18N | True |
USE_L10N | False |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
VERSATILEIMAGEFIELD_SETTINGS | {'filtered_directory_name': 'filtered', 'placeholder_directory_name': 'placeholder', 'sized_directory_name': 'resized'} |
WSGI_APPLICATION | 'gewi_shop.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.