The 'imagen' attribute has no file associated with it.
Request Method: | GET |
---|---|
Request URL: | http://manpai.pe/producto/sniper-elite-v2/ |
Django Version: | 1.11.3 |
Exception Type: | ValueError |
Exception Value: | The 'imagen' attribute has no file associated with it. |
Exception Location: | /home/dev/webapps/env/lib/python3.5/site-packages/django/db/models/fields/files.py in _require_file, line 46 |
Python Executable: | /home/dev/webapps/env/bin/python |
Python Version: | 3.5.10 |
Python Path: | ['/home/dev/webapps/env/bin', '/home/dev/webapps/manpai2/manpai', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/home/dev/webapps/env/lib/python3.5/site-packages', '/home/dev/webapps/env/lib/python3.5/site-packages/odf', '/home/dev/webapps/env/lib/python3.5/site-packages/odf', '/home/dev/webapps/env/lib/python3.5/site-packages/odf', '/home/dev/webapps/env/lib/python3.5/site-packages/odf', '/home/dev/webapps/env/lib/python3.5/site-packages/odf', '/home/dev/webapps/env/lib/python3.5/site-packages/odf', '/home/dev/webapps/env/lib/python3.5/site-packages/odf'] |
Server time: | Vie, 29 Mar 2024 03:17:32 -0500 |
In template /home/dev/webapps/manpai2/manpai/frontend/frontend/templates/components/slider-product.html
, error at line 4
1 | <!-- Component slider-product--> |
---|---|
2 | <div class="slider-product"> |
3 | <div class="preview" id="js-slider-product"> |
4 | <img src="{{ juego.imagen.url }}" alt="{{ juego.imagen.alt }}" title="" width="674" height="674"/> |
5 | |
6 | {% for imagen in imagenes %} |
7 | <img src="{{ imagen.imagen.url }}" alt="{{ imagen.alt }}" title="" width="674" height="674"/> |
8 | {% endfor %} |
9 | </div> |
10 | </div> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in _resolve_lookup
detail and shouldn't be called by external code. Use Variable.resolve()
instead.
"""
current = context
try: # catch-all for silent variable failures
for bit in self.lookups:
try: # dictionary lookup
current = current[bit]...
# ValueError/IndexError are for numpy.array lookup on
# numpy < 1.9 and 1.9+ respectively
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(type(current), bit):
Variable | Value |
---|---|
bit | 'url' |
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
current | <ImageFieldFile: None> |
self | <Variable: 'juego.imagen.url'> |
template_name | 'product-detail.html' |
/home/dev/webapps/env/lib/python3.5/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response, assigned=available_attrs(get_response))
def inner(request):
try:
response = get_response(request)...
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | ValueError("The 'imagen' attribute has no file associated with it.",) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f63a8111e80>> |
request | <WSGIRequest: GET '/producto/sniper-elite-v2/'> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function producto_detalle at 0x7f63a2eb8c80> |
callback_args | () |
callback_kwargs | {'slug': 'sniper-elite-v2'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f63a331a390>> |
request | <WSGIRequest: GET '/producto/sniper-elite-v2/'> |
resolver | <RegexURLResolver 'config.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=content.views.producto_detalle, args=(), kwargs={'slug': 'sniper-elite-v2'}, url_name=producto_detalle, app_names=[], namespaces=['content']) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f63a8111e80> |
wrapped_callback | <function producto_detalle at 0x7f63a2eb8c80> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function producto_detalle at 0x7f63a2eb8c80> |
callback_args | () |
callback_kwargs | {'slug': 'sniper-elite-v2'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f63a331a390>> |
request | <WSGIRequest: GET '/producto/sniper-elite-v2/'> |
resolver | <RegexURLResolver 'config.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=content.views.producto_detalle, args=(), kwargs={'slug': 'sniper-elite-v2'}, url_name=producto_detalle, app_names=[], namespaces=['content']) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f63a8111e80> |
wrapped_callback | <function producto_detalle at 0x7f63a2eb8c80> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/utils/decorators.py
in _wrapped_view
if result is not None:
return result
if hasattr(middleware, 'process_view'):
result = middleware.process_view(request, view_func, args, kwargs)
if result is not None:
return result
try:
response = view_func(request, *args, **kwargs)...
except Exception as e:
if hasattr(middleware, 'process_exception'):
result = middleware.process_exception(request, e)
if result is not None:
return result
raise
Variable | Value |
---|---|
args | () |
kwargs | {'slug': 'sniper-elite-v2'} |
middleware | <django.views.decorators.csrf._EnsureCsrfCookie object at 0x7f63a83e8a20> |
request | <WSGIRequest: GET '/producto/sniper-elite-v2/'> |
result | None |
view_func | <function producto_detalle at 0x7f63a2eb8bf8> |
/home/dev/webapps/manpai2/manpai/content/views.py
in producto_detalle
@ensure_csrf_cookie
def producto_detalle(request, slug):
juego = Producto.objects.get(slug=slug)
imagenes = juego.galeria.order_by('position')
juegos_plataformas, juegos_ediciones = get_plataformas_ediciones(juego)
return render(request, 'product-detail.html', locals())...
# DEPRECATED
def page_list(request):
SLUG_JUEGOS = 'juegos'
SLUG_CARACTERISTICA = 'caracteristica'
Variable | Value |
---|---|
imagenes | <QuerySet []> |
juego | <Producto: Sniper Elite V2> |
juegos_ediciones | <QuerySet [<Producto: Sniper Elite V2>]> |
juegos_plataformas | <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]> |
request | <WSGIRequest: GET '/producto/sniper-elite-v2/'> |
slug | 'sniper-elite-v2' |
/home/dev/webapps/env/lib/python3.5/site-packages/django/shortcuts.py
in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Returns a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)...
return HttpResponse(content, content_type, status)
def redirect(to, *args, **kwargs):
"""
Returns an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'imagenes': <QuerySet []>, 'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'} |
request | <WSGIRequest: GET '/producto/sniper-elite-v2/'> |
status | None |
template_name | 'product-detail.html' |
using | None |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/loader.py
in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)...
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'imagenes': <QuerySet []>, 'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'} |
request | <WSGIRequest: GET '/producto/sniper-elite-v2/'> |
template | <django.template.backends.django.Template object at 0x7f63a296f6d8> |
template_name | 'product-detail.html' |
using | None |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/backends/django.py
in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)...
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
request | <WSGIRequest: GET '/producto/sniper-elite-v2/'> |
self | <django.template.backends.django.Template object at 0x7f63a296f6d8> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)...
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <django.template.base.Template object at 0x7f63a2dc5208> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <django.template.base.Template object at 0x7f63a2dc5208> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
node | <ExtendsNode: extends "layouts/base.html"> |
self | [<ExtendsNode: extends "layouts/base.html">] |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <ExtendsNode: extends "layouts/base.html"> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/loader_tags.py
in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)...
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f63a28d6860> |
blocks | {'content': <Block Node: content. Contents: []>, 'extraScripts': <Block Node: extraScripts. Contents: [<TextNode: '\n '>]>, 'footer': <Block Node: footer. Contents: [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f63a2ab9b70>, <TextNode: '\n '>]>, 'header': <Block Node: header. Contents: [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f63a2ab9c50>, <TextNode: '\n '>]>, 'inhead': <Block Node: inhead. Contents: []>, 'namepage': <Block Node: namepage. Contents: []>, 'scripts': <Block Node: scripts. Contents: [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f63a2ab9908>, <TextNode: '\n '>, <Block Node: extraScripts. Contents: [<TextNode: '\n '>]>, <TextNode: '\n '>]>, 'title': <Block Node: title. Contents: []>} |
compiled_parent | <django.template.base.Template object at 0x7f63a28d55c0> |
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
node | <django.template.defaulttags.LoadNode object at 0x7f63a2b4d390> |
self | <ExtendsNode: extends "layouts/base.html"> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <django.template.base.Template object at 0x7f63a28d55c0> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n\n ' |
bits | ['', '\n', '', '\n' '\n' '<!DOCTYPE html>\n' '<html lang="en">\n' ' <head>\n' ' <script>\n' ' window.manpai = {}\n' ' window.manpai.carrito = ', '{"bines": [421355, 454777, 411074, 454775, 491337, 454776, 411090, 411091, ' '411093, 473244, 473245, 422224, 477290, 377753, 377752, 377754, 544402, ' '544359, 549161, 477289, 439046, 421813, 422252, 477295, 377750], "items": ' '[], "envio": 0, "cantidad": 0, "total": "0", "subtotal": "0", "delivery": ' '{"str_province": "", "ubigeo": "", "str_district": "", "districts": [], ' '"provinces": [], "str_department": "", "reference": "", "address": ""}, ' '"client": {"cel": "", "lastname": "", "dni": "", "email": "", "firstname": ' '""}}', '\n window.manpai.carrito.subtotalInterbank = 0\n </script>\n ', '\n' '\n' '<link rel="shortcut icon" type="image/x-icon" ' 'href="/assets/img/favicon.ico"/>\n' '<link rel="icon" type="image/x-icon" href="/assets/img/favicon.ico"/>\n' '\n' '<meta charset="UTF-8"/>\n' '<meta name="viewport" content="width=device-width, user-scalable=no"/>\n' '<meta http-equiv="X-UA-Compatible" content="ie=edge"/>\n' '\n' '<link rel="stylesheet" href="/assets/css/main.v02.css"/>\n' '<link rel="stylesheet" ' 'href="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.5.0/tiny-slider.css"/>\n' '<link rel="stylesheet" ' 'href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/>', '\n <title>', 'Detalle de producto | Manpai', '</title>\n ', '', '\n </head>\n\n <body id="page-', 'product-detail', '" class="body-page">\n ', '\n' ' \n' '\n' '<header class="c-header">\n' ' <div class="header-top row jcsb aic">\n' ' <button class="button -icon -third opensearch js-opensearch"><i ' 'class="fa fa-bars" aria-hidden="true"></i></button>\n' ' <div class="searchbar">\n' ' <form class="search-bar" action="/buscar/">\n' ' <input class="inputsearch" type="text" placeholder="BUSCAR" ' 'name="q"/>\n' ' <button class="button -icon -third"><i class="fa fa-search" ' 'aria-hidden="true"></i></button>\n' ' </form>\n' ' <div class="plataformsaccordion">\n' ' <!-- Component: plataforms-accordion-->\n' ' <div class="c-plataforms-accordion mt40 wancho">\n' ' <div class="list tg-wrap">\n' ' \n' ' <div class="item blockmessage -ghost tg-block">\n' ' \n' ' <span class="name tg-head">Videojuegos</span>\n' ' <div class="sublist tg-body">\n' ' \n' ' <div class="item" href="#">\n' ' <a class="name" href="#">3DS</a>\n' ' </div>\n' ' \n' ' <div class="item" href="#">\n' ' <a class="name" href="#">PC-DVD</a>\n' ' </div>\n' ' \n' ' <div class="item" href="#">\n' ' <a class="name" href="#">PlayStation 3</a>\n' ' </div>\n' ' \n' ' <div class="item" href="#">\n' ' <a class="name" href="#">PlayStation 4</a>\n' ' </div>\n' ' \n' ' <div class="item" href="#">\n' ' <a class="name" href="#">Switch</a>\n' ' </div>\n' ' \n' ' <div class="item" href="#">\n' ' <a class="name" href="#">Wii U</a>\n' ' </div>\n' ' \n' ' <div class="item" href="#">\n' ' <a class="name" href="#">Xbox 360</a>\n' ' </div>\n' ' \n' ' <div class="item" href="#">\n' ' <a class="name" href="#">XBOX ONE</a>\n' ' </div>\n' ' \n' ' </div>\n' ' \n' ' </div>\n' ' \n' ' <div class="item blockmessage -ghost tg-block">\n' ' \n' ' <a class="name" href="#">Accesorios</a>\n' ' ... <trimmed 9198 bytes string> |
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
node | <Block Node: content. Contents: []> |
self | [<django.template.defaulttags.LoadNode object at 0x7f63a2b4d390>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f63a2b4d0b8>, <TextNode: '\n\n<!DOCTYPE html>\n<html l'>, <Variable Node: dict_cart|jsonify>, <TextNode: '\n window.manpai.carr'>, <django.template.loader_tags.IncludeNode object at 0x7f63a2ab99b0>, <TextNode: '\n <title>'>, <Block Node: title. Contents: []>, <TextNode: '</title>\n '>, <Block Node: inhead. Contents: []>, <TextNode: '\n </head>\n\n <body id="p'>, <Block Node: namepage. Contents: []>, <TextNode: '" class="body-page">\n '>, <Block Node: header. Contents: [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f63a2ab9c50>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: content. Contents: []>, <TextNode: '\n\n '>, <Block Node: footer. Contents: [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f63a2ab9b70>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: scripts. Contents: [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f63a2ab9908>, <TextNode: '\n '>, <Block Node: extraScripts. Contents: [<TextNode: '\n '>]>, <TextNode: '\n '>]>, <TextNode: '\n\n </body>\n</html>'>] |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <Block Node: content. Contents: []> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: '\n<div class="p-product-de'>, <django.template.loader_tags.IncludeNode object at 0x7f63a2ae5518>, <TextNode: '\n </div>\n <div '>, <django.template.loader_tags.IncludeNode object at 0x7f63a2a44898>, <TextNode: '\n </div>\n </div>\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f63a28d6860> |
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
push | <Block Node: content. Contents: [<TextNode: '\n<div class="p-product-de'>, <django.template.loader_tags.IncludeNode object at 0x7f63a2ae5518>, <TextNode: '\n </div>\n <div '>, <django.template.loader_tags.IncludeNode object at 0x7f63a2a44898>, <TextNode: '\n </div>\n </div>\n'>]> |
self | <Block Node: content. Contents: []> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n </div>\n <div class="aboutsell">\n ' |
bits | ['\n' '<div class="p-product-detail">\n' ' <!-- TODO: Recuperar los estilos del componente fileproduct... Revisarlo ' 'comparando con pug-->\n' ' <section class="fileproduct">\n' ' <div class="file-product">\n' ' <div class="aboutproduct">\n' ' ', '<!-- About-product -->\n' '<div class="about-product">\n' ' \n' '\n' '<!-- Component tab-images-->\n' '<div class="tab-images">\n' ' <div class="thumbnail" id="js-thumbnail-product">\n' '\n' ' \n' '\n' ' \n' ' </div>\n' ' <div class="preview">\n' ' \n' ' </div>\n' '</div>\n' ' <div class="information">\n' ' <div class="sumary mb40">\n' ' <h3 class="title -t5 mb10">Sniper Elite V2</h3>\n' ' <div class="text plaintext -p2"></div>\n' ' </div>\n' ' <div class="features">\n' ' <h3 class="title -t5 mb20">Features y caracterÃsticas</h3>\n' ' <ul class="list">\n' ' \n' ' </ul>\n' ' </div>\n' ' </div>\n' '</div>', '\n </div>\n <div class="aboutsell">\n '] |
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
node | <django.template.loader_tags.IncludeNode object at 0x7f63a2a44898> |
self | [<TextNode: '\n<div class="p-product-de'>, <django.template.loader_tags.IncludeNode object at 0x7f63a2ae5518>, <TextNode: '\n </div>\n <div '>, <django.template.loader_tags.IncludeNode object at 0x7f63a2a44898>, <TextNode: '\n </div>\n </div>\n'>] |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f63a2a44898> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/loader_tags.py
in render
values = {
name: var.resolve(context)
for name, var in six.iteritems(self.extra_context)
}
if self.isolated_context:
return template.render(context.new(values))
with context.push(**values):
return template.render(context)...
except Exception as e:
if context.template.engine.debug:
raise
template_name = getattr(context, 'template_name', None) or 'unknown'
warnings.warn(
"Rendering {%% include '%s' %%} raised %s. In Django 2.1, "
Variable | Value |
---|---|
cache | {'components/about-sell.html': <django.template.base.Template object at 0x7f63a2aa8828>} |
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f63a2a44898> |
template | <django.template.base.Template object at 0x7f63a2aa8828> |
template_name | 'components/about-sell.html' |
values | {} |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
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
is annotated with contextual line information where it occurred in the
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <django.template.base.Template object at 0x7f63a2aa8828> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <django.template.base.Template object at 0x7f63a2aa8828> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n\n <div class="sliderproduct">\n ' |
bits | ['', '\n' '\n' '<!-- Component about-sell -->\n' '<form class="about-sell" id="js-form-product">\n' ' <input name="id_product" id="js-id-product" type="hidden" ' 'value="id_product"/>\n' ' <input name="id_plataform" id="js-id-plataform" type="hidden" ' 'value="plataform_X"/>\n' ' <input type="hidden" id="js-input-sku" value="', '001802', '"/>\n\n <div class="title">\n <div class="tags">\n ', '', '\n\n <span class="tag -simple">', 'disparos', '</span>\n </div>\n\n <h1 class="name">\n ', 'Sniper Elite V2', ' ', 'Remastered', ' -\n <span id="js-name-plataform">', 'PlayStation 4', '</span>\n </h1>\n </div>\n\n ', '', '\n' '\n' ' <div class="subhead -separator">\n' ' <div class="price">\n' ' <span class="value">S/ ', '169.00', '</span>\n ', '', '\n </div>\n\n <div class="sku">\n Sku: <span id="js-stock">', '001802', '</span>\n' ' </div>\n' '\n' ' <div class="stock">\n' ' Stock: <span id="js-stock">', '0', '</span> unidades\n </div>\n </div>\n\n ', '', '\n\n <div class="sliderproduct">\n '] |
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
node | <django.template.loader_tags.IncludeNode object at 0x7f63a2ad5ac8> |
self | [<django.template.defaulttags.LoadNode object at 0x7f63a2de7c18>, <TextNode: '\n\n<!-- Component about-se'>, <Variable Node: juego.sku>, <TextNode: '"/>\n\n <div class="title"'>, <IfNode>, <TextNode: '\n\n <span class="tag '>, <Variable Node: juego.genero>, <TextNode: '</span>\n </div>\n\n <'>, <Variable Node: juego.name>, <TextNode: ' '>, <Variable Node: juego.edicion>, <TextNode: ' -\n <span id="js-nam'>, <Variable Node: juego.plataforma__full_name>, <TextNode: '</span>\n </h1>\n </div'>, <IfNode>, <TextNode: '\n\n <div class="subhead -'>, <Variable Node: juego.precio|decimal_point>, <TextNode: '</span>\n '>, <IfNode>, <TextNode: '\n </div>\n\n <div cla'>, <Variable Node: juego.sku>, <TextNode: '</span>\n </div>\n\n <'>, <Variable Node: juego.stock>, <TextNode: '</span> unidades\n </di'>, <IfNode>, <TextNode: '\n\n <div class="sliderpro'>, <django.template.loader_tags.IncludeNode object at 0x7f63a2ad5ac8>, <TextNode: '\n </div>\n\n <div class="'>, <django.template.loader_tags.IncludeNode object at 0x7f63a2ad5cf8>, <TextNode: '\n </div>\n\n <div class="'>, <IfNode>, <TextNode: '" id="js-add-to-cart" typ'>, <django.template.loader_tags.IncludeNode object at 0x7f63a2ad5550>, <TextNode: '\n</div>\n'>] |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f63a2ad5ac8> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/loader_tags.py
in render
values = {
name: var.resolve(context)
for name, var in six.iteritems(self.extra_context)
}
if self.isolated_context:
return template.render(context.new(values))
with context.push(**values):
return template.render(context)...
except Exception as e:
if context.template.engine.debug:
raise
template_name = getattr(context, 'template_name', None) or 'unknown'
warnings.warn(
"Rendering {%% include '%s' %%} raised %s. In Django 2.1, "
Variable | Value |
---|---|
cache | {'components/slider-product.html': <django.template.base.Template object at 0x7f63a2ad5cc0>} |
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f63a2ad5ac8> |
template | <django.template.base.Template object at 0x7f63a2ad5cc0> |
template_name | 'components/slider-product.html' |
values | {} |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
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
is annotated with contextual line information where it occurred in the
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <django.template.base.Template object at 0x7f63a2ad5cc0> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <django.template.base.Template object at 0x7f63a2ad5cc0> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('<!-- Component slider-product-->\n' '<div class="slider-product">\n' ' <div class="preview" id="js-slider-product">\n' ' <img src="') |
bits | ['<!-- Component slider-product-->\n' '<div class="slider-product">\n' ' <div class="preview" id="js-slider-product">\n' ' <img src="'] |
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
node | <Variable Node: juego.imagen.url> |
self | [<TextNode: '<!-- Component slider-pro'>, <Variable Node: juego.imagen.url>, <TextNode: '" alt="'>, <Variable Node: juego.imagen.alt>, <TextNode: '" title="" width="674" he'>, <For Node: for imagen in imagenes, tail_len: 5>, <TextNode: '\n </div>\n</div>'>] |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <Variable Node: juego.imagen.url> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in render
self.filter_expression = filter_expression
def __repr__(self):
return "<Variable Node: %s>" % self.filter_expression
def render(self, context):
try:
output = self.filter_expression.resolve(context)...
except UnicodeDecodeError:
# Unicode conversion can fail sometimes for reasons out of our
# control (e.g. exception rendering). In that case, we fail
# quietly.
return ''
return render_value_in_context(output, context)
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <Variable Node: juego.imagen.url> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in resolve
self.filters = filters
self.var = var_obj
def resolve(self, context, ignore_failures=False):
if isinstance(self.var, Variable):
try:
obj = self.var.resolve(context)...
except VariableDoesNotExist:
if ignore_failures:
obj = None
else:
string_if_invalid = context.template.engine.string_if_invalid
if string_if_invalid:
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
ignore_failures | False |
self | <django.template.base.FilterExpression object at 0x7f63a2ad57b8> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in resolve
var)
self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR))
def resolve(self, context):
"""Resolve this variable against a given context."""
if self.lookups is not None:
# We're dealing with a variable that needs to be resolved
value = self._resolve_lookup(context)...
else:
# We're dealing with a literal, so it's already been "resolved"
value = self.literal
if self.translate:
is_safe = isinstance(value, SafeData)
msgid = value.replace('%', '%%')
Variable | Value |
---|---|
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
self | <Variable: 'juego.imagen.url'> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/template/base.py
in _resolve_lookup
# ValueError/IndexError are for numpy.array lookup on
# numpy < 1.9 and 1.9+ respectively
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(type(current), bit):
raise AttributeError
current = getattr(current, bit)...
except (TypeError, AttributeError):
# Reraise if the exception was raised by a @property
if not isinstance(current, BaseContext) and bit in dir(current):
raise
try: # list-index lookup
current = current[int(bit)]
Variable | Value |
---|---|
bit | 'url' |
context | [{'None': None, 'False': False, 'True': True}, {}, {}, {'juego': <Producto: Sniper Elite V2>, 'juegos_ediciones': <QuerySet [<Producto: Sniper Elite V2>]>, 'imagenes': <QuerySet []>, 'juegos_plataformas': <QuerySet [<Producto: Sniper Elite V2>, <Producto: Sniper Elite V2>]>, 'request': <WSGIRequest: GET '/producto/sniper-elite-v2/'>, 'slug': 'sniper-elite-v2'}] |
current | <ImageFieldFile: None> |
self | <Variable: 'juego.imagen.url'> |
template_name | 'product-detail.html' |
/home/dev/webapps/env/lib/python3.5/site-packages/django/db/models/fields/files.py
in url
@property
def path(self):
self._require_file()
return self.storage.path(self.name)
@property
def url(self):
self._require_file()...
return self.storage.url(self.name)
@property
def size(self):
self._require_file()
if not self._committed:
Variable | Value |
---|---|
self | <ImageFieldFile: None> |
/home/dev/webapps/env/lib/python3.5/site-packages/django/db/models/fields/files.py
in _require_file
# The standard File contains most of the necessary properties, but
# FieldFiles can be instantiated without a name, so that needs to
# be checked for here.
def _require_file(self):
if not self:
raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)...
def _get_file(self):
self._require_file()
if not hasattr(self, '_file') or self._file is None:
self._file = self.storage.open(self.name, 'rb')
return self._file
Variable | Value |
---|---|
self | <ImageFieldFile: None> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CSRF_COOKIE | 'QAyEUCCdTP9OvlJooZlVoJ9h9GbF6KMZukv3OAd1nkxqvQOtOMtx5bijw8h6NtTh' |
CSRF_COOKIE_USED | True |
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'manpai.pe' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '3.237.44.242' |
PATH_INFO | '/producto/sniper-elite-v2/' |
QUERY_STRING | '' |
RAW_URI | '/producto/sniper-elite-v2/' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'manpai.pe' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.0.4' |
gunicorn.socket | <socket.socket fd=9, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/home/dev/webapps/run/gunicorn.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f63a280c908> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f63a280c780> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
config.settings.production
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['manpai.pe', 'www.manpai.pe', '161.35.12.167'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/dev/webapps/manpai2/manpai' |
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_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
CULQI_API_KEY | '********************' |
CULQI_CODIGO_COMERCIO | 'pk_live_j2M044Gf0ZdeflEo' |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': 'localhost', 'NAME': 'manpai', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'manpai'}} |
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', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'hola@manpai.pe' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.sendgrid.net' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'apikey' |
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 |
ENV | {'ALLOWED_HOSTS': ['manpai.pe', 'www.manpai.pe', '161.35.12.167'], 'CULQI_API_KEY': '********************', 'CULQI_CODIGO_COMERCIO': 'pk_live_j2M044Gf0ZdeflEo', 'DATABASE_HOST': 'localhost', 'DATABASE_NAME': 'manpai', 'DATABASE_PASSWORD': '********************', 'DATABASE_USER': 'manpai', 'DEFAULT_FROM_EMAIL': 'hola@manpai.pe', 'EMAIL_HOST': 'smtp.sendgrid.net', 'EMAIL_HOST_PASSWORD': '********************', 'EMAIL_HOST_USER': 'apikey', 'EMAIL_PORT': 587, 'SECRET_KEY': '********************', 'SERVER_EMAIL': 'hola@manpai.pe', 'SITE_URL': 'http://manpai.pe'} |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'django_filters', 'django_summernote', 'sorl.thumbnail', 'import_export', 'core', 'generic', 'content', 'productos', 'cart', 'culqi', 'logs', 'ubigeo'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'es' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/home/dev/webapps/media/' |
MEDIA_URL | '/media_2018/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIDDLEWARE_CLASSES | ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'config.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'hola@manpai.pe' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'config.settings.production' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_URL | 'http://manpai.pe' |
STATICFILES_DIRS | ['/home/dev/webapps/manpai2/manpai/frontend/frontend/assets/'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/dev/webapps/static/' |
STATIC_URL | '/assets/' |
SUMMERNOTE_CONFIG | {'toolbar': [['font', ['bold', 'italic', 'underline', 'strikethrough', 'clear']], ['para', ['ul', 'ol', 'paragraph']], ['table', ['table']], ['insert', ['link', 'picture', 'video', 'hr']], ['view', ['codeview']], ['help', ['help']]]} |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/dev/webapps/manpai2/manpai/frontend/frontend/templates/'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'cart.context_processors.cart', 'content.context_processors.content', 'content.context_processors.content_footer']}}] |
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 | 'America/Lima' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'config.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.