The 'video' attribute has no file associated with it.
Request Method: | GET |
---|---|
Request URL: | http://cnpc.cult.cu/galeria/galeria_descrip/2/ |
Django Version: | 3.2.15 |
Exception Type: | ValueError |
Exception Value: | The 'video' attribute has no file associated with it. |
Exception Location: | /var/venvs/cnpc/lib/python3.7/site-packages/django/db/models/fields/files.py, line 40, in _require_file |
Python Executable: | /var/venvs/cnpc/bin/python3 |
Python Version: | 3.7.3 |
Python Path: | ['/var/projects/cnpc_project', '/var/venvs/cnpc/bin', '/var/venvs/cnpc/lib/python37.zip', '/var/venvs/cnpc/lib/python3.7', '/var/venvs/cnpc/lib/python3.7/lib-dynload', '/usr/lib/python3.7', '/var/venvs/cnpc/lib/python3.7/site-packages'] |
Server time: | Fri, 29 Mar 2024 07:12:48 -0400 |
In template /var/projects/cnpc_project/templates/base/head.html
, error at line 17
7 | <meta charset="UTF-8"> |
---|---|
8 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
9 | <meta content="width=device-width, initial-scale=1.0" name="viewport"> |
10 | |
11 | <title>Portal del Consejo nacional de patrimonio cultural - {{ title }}</title> |
12 | |
13 | <meta property="og:title" content="Portal del Consejo nacional de patrimonio cultural" - {{ title }} /> |
14 | <meta property="og:type" content="article"> |
15 | <meta property="og:url" content="http://cnpc.cult.cu.html"> |
16 | <meta property="og:site_name" content="Consejo Nacional Patrimonio Cultural"> |
17 | <meta property="og:description" content="Portal del Consejo nacional de patrimonio cultural" /> |
18 | |
19 | |
20 | |
21 | |
22 | <!-- Favicons --> |
23 | <link href="{% static 'img/favicon.png' %}" rel="icon"> |
24 | |
25 | <link href="{% static 'css/styles.css' %}" rel="stylesheet"> |
26 | |
27 | <!-- Google Fonts --> |
/var/venvs/cnpc/lib/python3.7/site-packages/django/template/base.py
, line 829, in _resolve_lookup
detail and shouldn't be called by external code. Use Variable.resolve()
instead.
"""
current = context
try: # catch-all for silent variable failures
for bit in self.lookups:
try: # dictionary lookup
current = current[bit]…
# ValueError/IndexError are for numpy.array lookup on
# numpy < 1.9 and 1.9+ respectively
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(type(current), bit):
Variable | Value |
---|---|
bit | 'url' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
current | <FieldFile: None> |
self | <Variable: 'galeria.video.url'> |
template_name | 'galeria_descrip.html' |
/var/venvs/cnpc/lib/python3.7/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 | ValueError("The 'video' attribute has no file associated with it.") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f78f2f5add8>> |
request | <WSGIRequest: GET '/galeria/galeria_descrip/2/'> |
/var/venvs/cnpc/lib/python3.7/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 GaleriaDetailView at 0x7f78f27ed950> |
callback_args | () |
callback_kwargs | {'pk': 2} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f78f2ef0080>> |
request | <WSGIRequest: GET '/galeria/galeria_descrip/2/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f78f2f5add8> |
wrapped_callback | <function GaleriaDetailView at 0x7f78f27ed950> |
/var/venvs/cnpc/lib/python3.7/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"> |
/var/venvs/cnpc/lib/python3.7/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 | {'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'entity': 'Galería', 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'redes_sociales': <QuerySet []>, 'title': 'Galería', 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7f78f22b5358> |
/var/venvs/cnpc/lib/python3.7/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}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
request | <WSGIRequest: GET '/galeria/galeria_descrip/2/'> |
self | <django.template.backends.django.Template object at 0x7f78f22b5358> |
/var/venvs/cnpc/lib/python3.7/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}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
self | <django.template.base.Template object at 0x7f78f24e8f98> |
/var/venvs/cnpc/lib/python3.7/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}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
self | <django.template.base.Template object at 0x7f78f24e8f98> |
/var/venvs/cnpc/lib/python3.7/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}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
node | <ExtendsNode: extends 'base/body.html'> |
self | [<ExtendsNode: extends 'base/body.html'>] |
/var/venvs/cnpc/lib/python3.7/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}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
self | <ExtendsNode: extends 'base/body.html'> |
/var/venvs/cnpc/lib/python3.7/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 0x7f78f2287208> |
compiled_parent | <django.template.base.Template object at 0x7f78f24e81d0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
node | <ExtendsNode: extends 'base/head.html'> |
self | <ExtendsNode: extends 'base/body.html'> |
/var/venvs/cnpc/lib/python3.7/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}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
self | <django.template.base.Template object at 0x7f78f24e81d0> |
/var/venvs/cnpc/lib/python3.7/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}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
node | <ExtendsNode: extends 'base/head.html'> |
self | [<ExtendsNode: extends 'base/head.html'>] |
/var/venvs/cnpc/lib/python3.7/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}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
self | <ExtendsNode: extends 'base/head.html'> |
/var/venvs/cnpc/lib/python3.7/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 0x7f78f2287208> |
blocks | {'body': <Block Node: body. Contents: [<TextNode: ' '>]>} |
compiled_parent | <django.template.base.Template object at 0x7f78f24e8518> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
node | <django.template.defaulttags.LoadNode object at 0x7f78f24ff080> |
self | <ExtendsNode: extends 'base/head.html'> |
/var/venvs/cnpc/lib/python3.7/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}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
self | <django.template.base.Template object at 0x7f78f24e8518> |
/var/venvs/cnpc/lib/python3.7/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 | '" rel="stylesheet">\n\n</head>\n\n' |
bits | ['', '\n' '\n' '<!DOCTYPE html>\n' '<html lang="es">\n' '\n' '<head>\n' ' <meta charset="UTF-8">\n' ' <meta http-equiv="X-UA-Compatible" content="IE=edge">\n' ' <meta content="width=device-width, initial-scale=1.0" name="viewport">\n' '\n' ' <title>Portal del Consejo nacional de patrimonio cultural - ', 'Galería', '</title>\n' '\n' ' <meta property="og:title" content="Portal del Consejo nacional de ' 'patrimonio cultural" - ', 'Galería', ' />\n' ' <meta property="og:type" content="article">\n' ' <meta property="og:url" content="http://cnpc.cult.cu.html">\n' ' <meta property="og:site_name" content="Consejo Nacional Patrimonio ' 'Cultural">\n' ' <meta property="og:description" content="Portal del Consejo nacional de ' 'patrimonio cultural" />\n' ' \n' '\n' '\n' ' \n' ' <!-- Favicons -->\n' ' <link href="', '/static/img/favicon.png', '" rel="icon">\n\n <link href="', '/static/css/styles.css', '" rel="stylesheet">\n' '\n' ' <!-- Google Fonts -->\n' ' <link ' 'href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" ' 'rel="stylesheet">\n' '\n' ' <!-- CSS Files -->\n' ' <link href="', '/static/lib/animate.css/animate.min.css', '" rel="stylesheet">\n <link href="', '/static/lib/aos/aos.css', '" rel="stylesheet">\n <!-- Bootstrap -->\n <link href="', '/static/lib/bootstrap/css/bootstrap.min.css', '" rel="stylesheet">\n <!-- Bootstrap Icons -->\n <link href="', '/static/lib/bootstrap-icons/bootstrap-icons.css', '" rel="stylesheet">\n <!-- Glightbox -->\n <link href="', '/static/lib/glightbox/css/glightbox.min.css', '" rel="stylesheet"> \n <!-- Swiper -->\n <link href="', '/static/lib/swiper/swiper-bundle.min.css', '" rel="stylesheet">\n\n <!-- My CSS File -->\n <link href="', '/static/css/styles.css', '" rel="stylesheet">\n\n</head>\n\n'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
node | <Block Node: body. Contents: [<TextNode: ' '>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f78f24ff080>, <TextNode: '\n\n<!DOCTYPE html>\n<html l'>, <Variable Node: title>, <TextNode: '</title>\n\n <meta prope'>, <Variable Node: title>, <TextNode: ' />\n <meta property="o'>, <django.templatetags.static.StaticNode object at 0x7f78f24ff5c0>, <TextNode: '" rel="icon">\n\n <link '>, <django.templatetags.static.StaticNode object at 0x7f78f24ff7b8>, <TextNode: '" rel="stylesheet">\n\n '>, <django.templatetags.static.StaticNode object at 0x7f78f24ff320>, <TextNode: '" rel="stylesheet">\n <'>, <django.templatetags.static.StaticNode object at 0x7f78f24ff3c8>, <TextNode: '" rel="stylesheet">\n <'>, <django.templatetags.static.StaticNode object at 0x7f78f24ff0b8>, <TextNode: '" rel="stylesheet">\n <'>, <django.templatetags.static.StaticNode object at 0x7f78f24ff0f0>, <TextNode: '" rel="stylesheet">\n <'>, <django.templatetags.static.StaticNode object at 0x7f78f24ff828>, <TextNode: '" rel="stylesheet"> \n '>, <django.templatetags.static.StaticNode object at 0x7f78f24ffd30>, <TextNode: '" rel="stylesheet">\n\n '>, <django.templatetags.static.StaticNode object at 0x7f78f24ff8d0>, <TextNode: '" rel="stylesheet">\n\n</he'>, <Block Node: body. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n</html>'>] |
/var/venvs/cnpc/lib/python3.7/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}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
self | <Block Node: body. Contents: [<TextNode: ' '>]> |
/var/venvs/cnpc/lib/python3.7/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: body. Contents: [<TextNode: '\n<body>\n\n <div class="'>, <django.template.loader_tags.IncludeNode object at 0x7f78f25c5c88>, <TextNode: '\n </div>\n\n'>, <Block Node: carousel. Contents: [<TextNode: '\n\n <div cl'>, <ForNode: for carrusel_image_inicial in carrusel_princ_image_inicial, tail_len: 3>, <TextNode: '\n '>, <ForNode: for carrusel in carrusel_princ, tail_len: 3>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f78f25c5f28>, <TextNode: '">Inicio</a></li>\n '>, <Variable Node: url_list>, <TextNode: '">'>, <Variable Node: entity>, <TextNode: '</a></li>\n '>, <django.template.defaulttags.CommentNode object at 0x7f78f22a6828>, <TextNode: '\n '>, <Block Node: content. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n </div>\n'>, <Block Node: baners. Contents: [<TextNode: '\n\n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f78f22a6550>, <TextNode: '\n </div>\n\n'>]>, <TextNode: '\n \n '>]>, <TextNode: '\n\n <div cl'>, <Block Node: content_home. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n </div>\n'>, <Block Node: baners_home. Contents: [<TextNode: '\n\n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f78f22a6438>, <TextNode: '\n </div>\n\n'>]>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f78f22a6128>, <TextNode: '\n\n </div>\n '>, <django.templatetags.static.StaticNode object at 0x7f78f22a6b00>, <TextNode: '"></script> \n <scri'>, <django.templatetags.static.StaticNode object at 0x7f78f22a6ac8>, <TextNode: '"></script>\n <!-- Glig'>, <django.templatetags.static.StaticNode object at 0x7f78f22a6dd8>, <TextNode: '"></script> \n <!-- E'>, <django.templatetags.static.StaticNode object at 0x7f78f24ffb70>, <TextNode: '"></script>\n <!-- Temp'>, <django.templatetags.static.StaticNode object at 0x7f78f24ffb00>, <TextNode: '"></script>\n\n <!-- Ext'>, <Block Node: Extra_JsFiles. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n <!-- Block javascri'>, <Block Node: javascript. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n</body>\n\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f78f2287208> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
push | <Block Node: body. Contents: [<TextNode: '\n<body>\n\n <div class="'>, <django.template.loader_tags.IncludeNode object at 0x7f78f25c5c88>, <TextNode: '\n </div>\n\n'>, <Block Node: carousel. Contents: [<TextNode: '\n\n <div cl'>, <ForNode: for carrusel_image_inicial in carrusel_princ_image_inicial, tail_len: 3>, <TextNode: '\n '>, <ForNode: for carrusel in carrusel_princ, tail_len: 3>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f78f25c5f28>, <TextNode: '">Inicio</a></li>\n '>, <Variable Node: url_list>, <TextNode: '">'>, <Variable Node: entity>, <TextNode: '</a></li>\n '>, <django.template.defaulttags.CommentNode object at 0x7f78f22a6828>, <TextNode: '\n '>, <Block Node: content. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n </div>\n'>, <Block Node: baners. Contents: [<TextNode: '\n\n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f78f22a6550>, <TextNode: '\n </div>\n\n'>]>, <TextNode: '\n \n '>]>, <TextNode: '\n\n <div cl'>, <Block Node: content_home. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n </div>\n'>, <Block Node: baners_home. Contents: [<TextNode: '\n\n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f78f22a6438>, <TextNode: '\n </div>\n\n'>]>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f78f22a6128>, <TextNode: '\n\n </div>\n '>, <django.templatetags.static.StaticNode object at 0x7f78f22a6b00>, <TextNode: '"></script> \n <scri'>, <django.templatetags.static.StaticNode object at 0x7f78f22a6ac8>, <TextNode: '"></script>\n <!-- Glig'>, <django.templatetags.static.StaticNode object at 0x7f78f22a6dd8>, <TextNode: '"></script> \n <!-- E'>, <django.templatetags.static.StaticNode object at 0x7f78f24ffb70>, <TextNode: '"></script>\n <!-- Temp'>, <django.templatetags.static.StaticNode object at 0x7f78f24ffb00>, <TextNode: '"></script>\n\n <!-- Ext'>, <Block Node: Extra_JsFiles. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n <!-- Block javascri'>, <Block Node: javascript. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n</body>\n\n'>]> |
self | <Block Node: body. Contents: [<TextNode: ' '>]> |
/var/venvs/cnpc/lib/python3.7/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 </div>\n\n ' |
bits | ['\n' '<body>\n' '\n' ' <div class="site-wrapper">\n' ' <div class="container fluid">\n' ' <div class="row">\n' ' <div class="col-12">\n' ' ', '\n' ' <!-- menu -->\n' ' <header id="header" class="d-flex align-items-center ' 'justify-content-between">\n' ' <div class="container d-flex align-items-center ">\n' '\n' ' \n' ' <a class="logo" ' 'href="https://www.google.com/search?q=consejo+nacional+de+patrimonio+cultural&tbm=isch&ved=2ahUKEwj14YWh5or7AhU7QEIHHcIGB9wQ2-cCegQIABAA&oq=consejo+nacional+de+patrimonio+cultural&gs_lcp=CgNpbWcQAzIFCAAQgAQ">\n' ' <img class=""\n' ' ' 'src="/media/config_site/Information_Ent/2022/10/CNPC.png" \n' ' alt=""\n' ' title="Consejo Nacional de Patrimonio ' 'Cultural">\n' ' </a>\n' ' \n' ' \n' ' <nav id="navbar" class="navbar">\n' ' <ul>\n' ' <li><a class="nav-link scrollto "\n' ' href="/">Inicio</a></li>\n' ' <li><a class="nav-link scrollto "\n' ' href="/config_site/quienes_somos">¿Quiénes ' 'Somos?</a></li>\n' ' <li><a class="nav-link scrollto " \n' ' href=" ' '/acontecer/acontecer_list">Acontecer Patrimonial</a></li>\n' ' <li class="dropdown"><a ' 'href="#"><span>Patrimonio</span> <i class="bi bi-chevron-down"></i></a>\n' ' <ul>\n' ' <li><a ' 'href="/patrimonio/patrimonio_mundial">Patrimonio Mundial</a></li>\n' ' <li><a ' 'href="/patrimonio/patrimonio_cultural">Patrimonio Cubano</a></li>\n' ' <li class="dropdown"><a ' 'href="#"><span>Patrimonio Monumental</span> <i class="bi ' 'bi-chevron-right"></i></a>\n' ' <ul>\n' ' <li><a ' 'href="/patrimonio/comision_nacional_monumentos">Comisión Nacional</a></li>\n' ' <li><a ' 'href="/patrimonio/icomos_cuba">ICOMOS Cuba</a></li>\n' ' <li><a ' 'href="/patrimonio/monumentos_nacionales">Monumentos Nacionales</a></li>\n' ' <li><a ' 'href="/patrimonio/monumentos_locales">Monumentos Locales</a></li>\n' ' <li><a ' 'href="/patrimonio/zonas_proteccion">Zonas de Protección</a></li>\n' ' </ul>\n' ' </li>\n' ' <li class="dropdown"><a ' 'href="#"><span>Patrimonio Inmaterial</span> <i class="bi ' 'bi-chevron-right"></i></a>\n' ' <ul>\n' ' <li><a ' 'href="/patrimonio/comision_SPCI">CRESPIAL</a></li>\n' ' <li><a ' 'href="/patrimonio/convencion_PCI">CONVENCIÓN DEL PCI</a></li>\n' ' <li><a ' 'href="/patrimonio/comite_Intergubernamental">COMITÉ ' 'INTERGUBERNAMENTAL</a></li>\n' ' <li><a ' 'href="/patrimonio/principios_eticos_PCI">PRINCIPIOS ÉTICOS DEL PCI</a></li>\n' ' <li><a ' 'href="/patrimonio/comision_nacional_PCI">COMISIÓN NACIONAL</a></li>\n' ' <li><a ' 'href="/patrimonio/PCI_Nacional_list">PCI NACIONAL</a></li>\n' ' <!-- <li><a ' 'href="/patrimonio/metodologias_inventario_PI">Metodologia para el inventario ' 'automatizado</a></li> … <trimmed 6764 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
node | <Block Node: carousel. Contents: [<TextNode: '\n\n <div cl'>, <ForNode: for carrusel_image_inicial in carrusel_princ_image_inicial, tail_len: 3>, <TextNode: '\n '>, <ForNode: for carrusel in carrusel_princ, tail_len: 3>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f78f25c5f28>, <TextNode: '">Inicio</a></li>\n '>, <Variable Node: url_list>, <TextNode: '">'>, <Variable Node: entity>, <TextNode: '</a></li>\n '>, <django.template.defaulttags.CommentNode object at 0x7f78f22a6828>, <TextNode: '\n '>, <Block Node: content. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n </div>\n'>, <Block Node: baners. Contents: [<TextNode: '\n\n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f78f22a6550>, <TextNode: '\n </div>\n\n'>]>, <TextNode: '\n \n '>]> |
self | [<TextNode: '\n<body>\n\n <div class="'>, <django.template.loader_tags.IncludeNode object at 0x7f78f25c5c88>, <TextNode: '\n </div>\n\n'>, <Block Node: carousel. Contents: [<TextNode: '\n\n <div cl'>, <ForNode: for carrusel_image_inicial in carrusel_princ_image_inicial, tail_len: 3>, <TextNode: '\n '>, <ForNode: for carrusel in carrusel_princ, tail_len: 3>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f78f25c5f28>, <TextNode: '">Inicio</a></li>\n '>, <Variable Node: url_list>, <TextNode: '">'>, <Variable Node: entity>, <TextNode: '</a></li>\n '>, <django.template.defaulttags.CommentNode object at 0x7f78f22a6828>, <TextNode: '\n '>, <Block Node: content. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n </div>\n'>, <Block Node: baners. Contents: [<TextNode: '\n\n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f78f22a6550>, <TextNode: '\n </div>\n\n'>]>, <TextNode: '\n \n '>]>, <TextNode: '\n\n <div cl'>, <Block Node: content_home. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n </div>\n'>, <Block Node: baners_home. Contents: [<TextNode: '\n\n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f78f22a6438>, <TextNode: '\n </div>\n\n'>]>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f78f22a6128>, <TextNode: '\n\n </div>\n '>, <django.templatetags.static.StaticNode object at 0x7f78f22a6b00>, <TextNode: '"></script> \n <scri'>, <django.templatetags.static.StaticNode object at 0x7f78f22a6ac8>, <TextNode: '"></script>\n <!-- Glig'>, <django.templatetags.static.StaticNode object at 0x7f78f22a6dd8>, <TextNode: '"></script> \n <!-- E'>, <django.templatetags.static.StaticNode object at 0x7f78f24ffb70>, <TextNode: '"></script>\n <!-- Temp'>, <django.templatetags.static.StaticNode object at 0x7f78f24ffb00>, <TextNode: '"></script>\n\n <!-- Ext'>, <Block Node: Extra_JsFiles. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n <!-- Block javascri'>, <Block Node: javascript. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n</body>\n\n'>] |
/var/venvs/cnpc/lib/python3.7/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}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
self | <Block Node: carousel. Contents: [<TextNode: '\n\n <div cl'>, <ForNode: for carrusel_image_inicial in carrusel_princ_image_inicial, tail_len: 3>, <TextNode: '\n '>, <ForNode: for carrusel in carrusel_princ, tail_len: 3>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f78f25c5f28>, <TextNode: '">Inicio</a></li>\n '>, <Variable Node: url_list>, <TextNode: '">'>, <Variable Node: entity>, <TextNode: '</a></li>\n '>, <django.template.defaulttags.CommentNode object at 0x7f78f22a6828>, <TextNode: '\n '>, <Block Node: content. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n </div>\n'>, <Block Node: baners. Contents: [<TextNode: '\n\n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f78f22a6550>, <TextNode: '\n </div>\n\n'>]>, <TextNode: '\n \n '>]> |
/var/venvs/cnpc/lib/python3.7/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: carousel. Contents: [<TextNode: '\n\n <div cl'>, <ForNode: for carrusel_image_inicial in carrusel_princ_image_inicial, tail_len: 3>, <TextNode: '\n '>, <ForNode: for carrusel in carrusel_princ, tail_len: 3>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f78f25c5f28>, <TextNode: '">Inicio</a></li>\n '>, <Variable Node: url_list>, <TextNode: '">'>, <Variable Node: entity>, <TextNode: '</a></li>\n '>, <django.template.defaulttags.CommentNode object at 0x7f78f22a6828>, <TextNode: '\n '>, <Block Node: content. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n </div>\n'>, <Block Node: baners. Contents: [<TextNode: '\n\n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f78f22a6550>, <TextNode: '\n </div>\n\n'>]>, <TextNode: '\n \n '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f78f2287208> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
push | <Block Node: carousel. Contents: [<TextNode: '\n\n <div cl'>, <ForNode: for carrusel_image_inicial in carrusel_princ_image_inicial, tail_len: 3>, <TextNode: '\n '>, <ForNode: for carrusel in carrusel_princ, tail_len: 3>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f78f25c5f28>, <TextNode: '">Inicio</a></li>\n '>, <Variable Node: url_list>, <TextNode: '">'>, <Variable Node: entity>, <TextNode: '</a></li>\n '>, <django.template.defaulttags.CommentNode object at 0x7f78f22a6828>, <TextNode: '\n '>, <Block Node: content. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n </div>\n'>, <Block Node: baners. Contents: [<TextNode: '\n\n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f78f22a6550>, <TextNode: '\n </div>\n\n'>]>, <TextNode: '\n \n '>]> |
self | <Block Node: carousel. Contents: [<TextNode: '\n\n <div cl'>, <ForNode: for carrusel_image_inicial in carrusel_princ_image_inicial, tail_len: 3>, <TextNode: '\n '>, <ForNode: for carrusel in carrusel_princ, tail_len: 3>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f78f25c5f28>, <TextNode: '">Inicio</a></li>\n '>, <Variable Node: url_list>, <TextNode: '">'>, <Variable Node: entity>, <TextNode: '</a></li>\n '>, <django.template.defaulttags.CommentNode object at 0x7f78f22a6828>, <TextNode: '\n '>, <Block Node: content. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n </div>\n'>, <Block Node: baners. Contents: [<TextNode: '\n\n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f78f22a6550>, <TextNode: '\n </div>\n\n'>]>, <TextNode: '\n \n '>]> |
/var/venvs/cnpc/lib/python3.7/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' ' </ol>\n' ' </div> \n' '\n' ' ') |
bits | ['\n' '\n' ' <div class="col-12 col-lg-9">\n' ' \n' ' <section id="hero" style="height:350px;">\n' ' <div id="heroCarousel" data-bs-interval="5000" ' 'class="carousel slide carousel-fade" data-bs-ride="carousel">\n' ' <ol class="carousel-indicators" ' 'id="hero-carousel-indicators"></ol>\n' ' <div class="carousel-inner" role="listbox">\n' ' ', '\n' ' <!-- Slide Active -->\n' ' <div class="carousel-item active ' 'img-responsive align-content-center rounded" \n' ' style="background-image: ' 'url(/media/config_site/Carrusel_Princ/2022/10/19/shutterstock_12870277661.jpg)">\n' ' </div>\n' ' ', '\n ', '\n' ' <!-- Slides -->\n' ' <div class="carousel-item img-responsive ' 'align-content-center rounded" \n' ' style="background-image: ' 'url(/media/config_site/Carrusel_Princ/2022/10/19/No-al-bloqueo-408x272.jpg)">\n' ' </div>\n' ' \n' ' <!-- Slides -->\n' ' <div class="carousel-item img-responsive ' 'align-content-center rounded" \n' ' style="background-image: ' 'url(/media/config_site/Carrusel_Princ/2022/10/19/valle-vinales-cuba-a-1-776x460.jpg)">\n' ' </div>\n' ' ', '\n' ' </div>\n' ' <a class="carousel-control-prev" ' 'href="#heroCarousel" role="button" data-bs-slide="prev">\n' ' <span class="carousel-control-prev-icon bi ' 'bi-chevron-compact-left" aria-hidden="true"></span>\n' ' </a>\n' ' <a class="carousel-control-next" ' 'href="#heroCarousel" role="button" data-bs-slide="next">\n' ' <span class="carousel-control-next-icon bi ' 'bi-chevron-compact-right" aria-hidden="true"></span>\n' ' </a>\n' ' </div>\n' ' </section>\n' '\n' ' <div class="nav_ol">\n' ' <ol class="breadcrumb float-sm-right">\n' ' <li class="breadcrumb-item"><a href="', '/', '">Inicio</a></li>\n' ' <li class="breadcrumb-item"><a href="', '', '">', 'Galería', '</a></li>\n ', '', '\n' ' </ol>\n' ' </div> \n' '\n' ' '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
node | <Block Node: content. Contents: [<TextNode: ' '>]> |
self | [<TextNode: '\n\n <div cl'>, <ForNode: for carrusel_image_inicial in carrusel_princ_image_inicial, tail_len: 3>, <TextNode: '\n '>, <ForNode: for carrusel in carrusel_princ, tail_len: 3>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f78f25c5f28>, <TextNode: '">Inicio</a></li>\n '>, <Variable Node: url_list>, <TextNode: '">'>, <Variable Node: entity>, <TextNode: '</a></li>\n '>, <django.template.defaulttags.CommentNode object at 0x7f78f22a6828>, <TextNode: '\n '>, <Block Node: content. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n </div>\n'>, <Block Node: baners. Contents: [<TextNode: '\n\n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f78f22a6550>, <TextNode: '\n </div>\n\n'>]>, <TextNode: '\n \n '>] |
/var/venvs/cnpc/lib/python3.7/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}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
self | <Block Node: content. Contents: [<TextNode: ' '>]> |
/var/venvs/cnpc/lib/python3.7/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 '>, <ForNode: for galeria in galeria_descrip, tail_len: 3>, <TextNode: '\n\n <div class='>, <ForNode: for categorias in menu_categoria, tail_len: 5>, <TextNode: '\n </ul'>, <ForNode: for galeria in galeria_categoria, tail_len: 3>, <TextNode: '\n </div>\n '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f78f2287208> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
push | <Block Node: content. Contents: [<TextNode: '\n\n '>, <ForNode: for galeria in galeria_descrip, tail_len: 3>, <TextNode: '\n\n <div class='>, <ForNode: for categorias in menu_categoria, tail_len: 5>, <TextNode: '\n </ul'>, <ForNode: for galeria in galeria_categoria, tail_len: 3>, <TextNode: '\n </div>\n '>]> |
self | <Block Node: content. Contents: [<TextNode: ' '>]> |
/var/venvs/cnpc/lib/python3.7/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 ' |
bits | ['\n\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
node | <ForNode: for galeria in galeria_descrip, tail_len: 3> |
self | [<TextNode: '\n\n '>, <ForNode: for galeria in galeria_descrip, tail_len: 3>, <TextNode: '\n\n <div class='>, <ForNode: for categorias in menu_categoria, tail_len: 5>, <TextNode: '\n </ul'>, <ForNode: for galeria in galeria_categoria, tail_len: 3>, <TextNode: '\n </div>\n '>] |
/var/venvs/cnpc/lib/python3.7/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}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
self | <ForNode: for galeria in galeria_descrip, tail_len: 3> |
/var/venvs/cnpc/lib/python3.7/site-packages/django/template/defaulttags.py
, line 214, in render
unpacked_vars = dict(zip(self.loopvars, item))
pop_context = True
context.update(unpacked_vars)
else:
context[self.loopvars[0]] = item
for node in self.nodelist_loop:
nodelist.append(node.render_annotated(context))…
if pop_context:
# Pop the loop variables pushed on to the context to avoid
# the context ending up in an inconsistent state when other
# tags (e.g., include and with) push data to context.
context.pop()
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
i | 0 |
item | <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023> |
len_values | 1 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': True, 'parentloop': {}, 'revcounter': 1, 'revcounter0': 0} |
node | <IfNode> |
nodelist | ['\n\n '] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <ForNode: for galeria in galeria_descrip, tail_len: 3> |
unpack | False |
values | <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]> |
/var/venvs/cnpc/lib/python3.7/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}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
self | <IfNode> |
/var/venvs/cnpc/lib/python3.7/site-packages/django/template/defaulttags.py
, line 315, in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)…
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | (== (literal <django.template.base.FilterExpression object at 0x7f78f2563fd0>) (literal <django.template.base.FilterExpression object at 0x7f78f2731320>)) |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
match | True |
nodelist | [<TextNode: '\n\n '>, <Variable Node: galeria.video.url>, <TextNode: '" type="video/mp4"/>\n '>, <Variable Node: galeria.name>, <TextNode: '</strong>\n '>, <Variable Node: galeria.description>, <TextNode: '\n '>] |
self | <IfNode> |
/var/venvs/cnpc/lib/python3.7/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="col-12" data-aos="fade-up">\n' ' \n' ' <video class="embed-responsive ' 'embed-responsive-16by9 rounded"\n' ' style="width:100%; height:100%;"\n' ' controls autoplay loop ' 'preload="auto">\n' ' <source ' 'class="embed-responsive-item" \n' ' src="') |
bits | ['\n' '\n' ' <div class="col-12" data-aos="fade-up">\n' ' \n' ' <video class="embed-responsive ' 'embed-responsive-16by9 rounded"\n' ' style="width:100%; height:100%;"\n' ' controls autoplay loop ' 'preload="auto">\n' ' <source ' 'class="embed-responsive-item" \n' ' src="'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
node | <Variable Node: galeria.video.url> |
self | [<TextNode: '\n\n '>, <Variable Node: galeria.video.url>, <TextNode: '" type="video/mp4"/>\n '>, <Variable Node: galeria.name>, <TextNode: '</strong>\n '>, <Variable Node: galeria.description>, <TextNode: '\n '>] |
/var/venvs/cnpc/lib/python3.7/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}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
self | <Variable Node: galeria.video.url> |
/var/venvs/cnpc/lib/python3.7/site-packages/django/template/base.py
, line 988, in render
self.filter_expression = filter_expression
def __repr__(self):
return "<Variable Node: %s>" % self.filter_expression
def render(self, context):
try:
output = self.filter_expression.resolve(context)…
except UnicodeDecodeError:
# Unicode conversion can fail sometimes for reasons out of our
# control (e.g. exception rendering). In that case, we fail
# quietly.
return ''
return render_value_in_context(output, context)
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
self | <Variable Node: galeria.video.url> |
/var/venvs/cnpc/lib/python3.7/site-packages/django/template/base.py
, line 671, in resolve
self.filters = filters
self.var = var_obj
def resolve(self, context, ignore_failures=False):
if isinstance(self.var, Variable):
try:
obj = self.var.resolve(context)…
except VariableDoesNotExist:
if ignore_failures:
obj = None
else:
string_if_invalid = context.template.engine.string_if_invalid
if string_if_invalid:
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
ignore_failures | False |
self | <django.template.base.FilterExpression object at 0x7f78f2731630> |
/var/venvs/cnpc/lib/python3.7/site-packages/django/template/base.py
, line 796, in resolve
var)
self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR))
def resolve(self, context):
"""Resolve this variable against a given context."""
if self.lookups is not None:
# We're dealing with a variable that needs to be resolved
value = self._resolve_lookup(context)…
else:
# We're dealing with a literal, so it's already been "resolved"
value = self.literal
if self.translate:
is_safe = isinstance(value, SafeData)
msgid = value.replace('%', '%%')
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
self | <Variable: 'galeria.video.url'> |
/var/venvs/cnpc/lib/python3.7/site-packages/django/template/base.py
, line 837, in _resolve_lookup
# ValueError/IndexError are for numpy.array lookup on
# numpy < 1.9 and 1.9+ respectively
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(type(current), bit):
raise AttributeError
current = getattr(current, bit)…
except (TypeError, AttributeError):
# Reraise if the exception was raised by a @property
if not isinstance(current, BaseContext) and bit in dir(current):
raise
try: # list-index lookup
current = current[int(bit)]
Variable | Value |
---|---|
bit | 'url' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'gallery': <Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>, 'view': <apps.galeria.views.GaleriaDetailView object at 0x7f78f27c3f98>, 'baners_princ': <QuerySet [<Baners_Princ: Oficina del Historiador>, <Baners_Princ: Ministerio de Cultura>, <Baners_Princ: Visitas virtuales>, <Baners_Princ: Vicepresidencia de Cuba>, <Baners_Princ: La Papeleta>]>, 'carrusel_princ': <QuerySet [<Carrusel_Princ: No más bloqueo>, <Carrusel_Princ: viñales>]>, 'carrusel_princ_image_inicial': <QuerySet [<Carrusel_Princ: trinidad>]>, 'information_ent': <QuerySet [<Information_Ent: Consejo Nacional de Patrimonio Cultural>]>, 'redes_sociales': <QuerySet []>, 'carrusel_footer': <QuerySet [<Carrusel_Footer: Consejo Nacional de las Artes Plásticas>, <Carrusel_Footer: CUBARTE>, <Carrusel_Footer: Casas de Cultura>, <Carrusel_Footer: ministerio de cultura>]>, 'legislaciones_list': <QuerySet [<Legislaciones: Ley de Protección al patrimonio Cultural y al Patrimonio Natural>]>, 'Boletin_Electronico': <QuerySet [<Boletin_Electronico: Boletín Patrimonio, Sociedad y Cultura>]>, 'title': 'Galería', 'entity': 'Galería', 'menu_categoria': <QuerySet [<Category: Premios nacionales>, <Category: Anuncios>]>, 'galeria_list': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_descrip': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>, 'galeria_categoria': <QuerySet [<Gallery: Convocatoria al Primer Congreso Internacional de Patrimonio Cultural 2023>]>}] |
current | <FieldFile: None> |
self | <Variable: 'galeria.video.url'> |
template_name | 'galeria_descrip.html' |
/var/venvs/cnpc/lib/python3.7/site-packages/django/db/models/fields/files.py
, line 63, 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 | <FieldFile: None> |
/var/venvs/cnpc/lib/python3.7/site-packages/django/db/models/fields/files.py
, line 40, in _require_file
# The standard File contains most of the necessary properties, but
# FieldFiles can be instantiated without a name, so that needs to
# be checked for here.
def _require_file(self):
if not self:
raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)…
def _get_file(self):
self._require_file()
if getattr(self, '_file', None) is None:
self._file = self.storage.open(self.name, 'rb')
return self._file
Variable | Value |
---|---|
self | <FieldFile: None> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'cnpc.cult.cu' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '54.82.20.97' |
HTTP_X_FORWARDED_PROTO | 'http' |
HTTP_X_REAL_IP | '54.82.20.97' |
PATH_INFO | '/galeria/galeria_descrip/2/' |
QUERY_STRING | '' |
RAW_URI | '/galeria/galeria_descrip/2/' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'cnpc.cult.cu' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.1.0' |
gunicorn.socket | <socket.socket fd=9, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/var/projects/cnpc_project/cnpc.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f78f27c3400> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7f78f27c35c0> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
config.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | PosixPath('/var/projects/cnpc_project') |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CKEDITOR_CONFIGS | {'default': {'altura': 300, 'ancho': 800, 'extraPlugins': 'codesnippet', 'tabSpaces': 4}} |
CKEDITOR_IMAGE_BACKEND | 'pillow' |
CKEDITOR_UPLOAD_PATH | PosixPath('/var/projects/cnpc_project/media/uploads') |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'localhost', 'NAME': 'cnpc_db', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'postgres'}} |
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.BigAutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | '200.0.24.140' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'cnpcweb@cnpc.cult.cu' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USER | 'cnpcweb@cnpc.cult.cu' |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
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', 'django_comments', 'ckeditor', 'ckeditor_uploader', 'apps.config_site', 'apps.homepage', 'apps.acontecer', 'apps.legislaciones', 'apps.galeria', 'apps.enlaces', 'apps.directorio', 'apps.patrimonio', 'apps.search'] |
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 | 'es-es' |
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 | {'disable_existing_loggers': False, 'filters': {'require_debug_true': {'()': 'django.utils.log.RequireDebugTrue'}}, 'formatters': {'collect': {'format': '%(message)s'}, 'simple': {'format': '[%(levelname)s][%(asctime)s][%(filename)s:%(lineno)d]%(message)s'}, 'standard': {'format': '[%(asctime)s][%(threadName)s:%(thread)d][task_id:%(name)s][%(filename)s:%(lineno)d][%(levelname)s][%(message)s]'}}, 'handlers': {'consola': {'class': 'logging.StreamHandler', 'filtros': ['require_debug_true'], 'formatter': 'simple', 'level': 'DEBUG'}, 'default': {'backupCount': 3, 'class': 'logging.handlers.RotatingFileHandler', 'encoding': 'utf-8', 'filename': '/ logs /all.log', 'formatter': 'standard', 'level': 'INFO', 'maxBytes': 52428800}, 'error': {'backupCount': 5, 'class': 'logging.handlers.RotatingFileHandler', 'encoding': 'utf-8', 'filename': '/ logs /error.log', 'formatter': 'standard', 'level': 'ERROR', 'maxBytes': 52428800}, 'recoger': {'backupCount': 5, 'class': 'logging.handlers.RotatingFileHandler', 'encoding': 'utf-8', 'filename': '/logs/collect.log', 'formatter': 'collect', 'level': 'INFO', 'maxBytes': 52428800}, 'scprits_handler': {'backupCount': 5, 'class': 'logging.handlers.RotatingFileHandler', 'filename': '/logs/script.log', 'formatter': 'standard', 'level': 'DEBUG', 'maxBytes': 5242880}}, 'loggers': {'collect': {'handlers': ['console', 'collect'], 'level': 'INFO'}, 'django': {'handlers': ['default', 'console', 'error'], 'level': 'DEBUG', 'propagate': True}, 'scripts': {'handlers': ['scprits_handler'], 'level': 'INFO', 'propagate': False}}, 'versión': 1} |
LOGGING_CONFIG | None |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | 'index' |
MANAGERS | [] |
MEDIA_ROOT | '/var/projects/cnpc_project/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'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'config.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 | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'config.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 | ['/var/projects/cnpc_project/static/'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/static_root/' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [PosixPath('/var/projects/cnpc_project/templates')], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
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/Havana' |
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 | '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.