Reverse for 'category-detail' with keyword arguments '{'slug': 'opinion', 'language_code': 'es'}' not found. 1 pattern(s) tried: ['seccion/(?P<slug>[-\\w]+)/$']
Request Method: | GET |
---|---|
Request URL: | http://www.masiosare.org/seccion/politica/225/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/ |
Django Version: | 1.11.20 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'category-detail' with keyword arguments '{'slug': 'opinion', 'language_code': 'es'}' not found. 1 pattern(s) tried: ['seccion/(?P<slug>[-\\w]+)/$'] |
Exception Location: | /home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/urls/resolvers.py in _reverse_with_prefix, line 497 |
Python Executable: | /home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/bin/python3 |
Python Version: | 3.5.2 |
Python Path: | ['/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/bin', '/home/ubuntu/conexiones/desarrollo/masiosare/masiosare', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages'] |
Server time: | Vie, 29 Mar 2024 06:41:41 -0600 |
In template /home/ubuntu/conexiones/desarrollo/masiosare/masiosare/masiosare/templates/base.html
, error at line 87
77 | </div> |
---|---|
78 | <nav class="navbar navbar-expand-lg navbar-dark bg-primary"> |
79 | <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#gralmenu" aria-controls="gralmenu" aria-expanded="false" aria-label="Toggle navigation"> |
80 | <span class="navbar-toggler-icon"></span> |
81 | </button> |
82 | <div class="collapse navbar-collapse justify-content-center " id="gralmenu"> |
83 | <ul class="navbar-nav "> |
84 | {% for menu in menus %} |
85 | <li class="nav-item active"> |
86 | <a class="nav-link" href="{{menu.get_absolute_url}}"> |
87 | {{menu.name|upper}} |
88 | {% if menu.get_absolute_url == request.path %} |
89 | <span class="sr-only">(current)</span> |
90 | {% endif %} |
91 | </a> |
92 | </li> |
93 | {% endfor %} |
94 | <li> |
95 | {% if request.user.is_anonymous %} |
96 | <a class="nav-link" href="{% url 'followers:create-follower' %}" style="color: skyblue;">Suscribirse</a> |
97 | {% endif %} |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response, assigned=available_attrs(get_response))
def inner(request):
try:
response = get_response(request)...
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | NoReverseMatch("Reverse for 'category-detail' with keyword arguments '{'slug': 'opinion', 'language_code': 'es'}' not found. 1 pattern(s) tried: ['seccion/(?P<slug>[-\\\\w]+)/$']",) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fafa56a74a8>> |
request | <WSGIRequest: GET '/seccion/politica/225/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/'> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/core/handlers/base.py
in _get_response
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
return response
def process_exception_by_middleware(self, exception, request):
"""
Pass the exception to the exception middleware. If no middleware
Variable | Value |
---|---|
callback | <function ArticleDetailView at 0x7fafa55a5d90> |
callback_args | () |
callback_kwargs | {'category_slug': 'politica', 'pk': '225', 'slug': 'nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fafa55d30f0>> |
request | <WSGIRequest: GET '/seccion/politica/225/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/'> |
resolver | <RegexURLResolver 'masiosare.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=articles.views.ArticleDetailView, args=(), kwargs={'slug': 'nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo', 'category_slug': 'politica', 'pk': '225'}, url_name=article-detail, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fafa56a74a8> |
wrapped_callback | <function ArticleDetailView at 0x7fafa55a5d90> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/core/handlers/base.py
in _get_response
raise ValueError(
"%s.process_template_response didn't return an "
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
return response
def process_exception_by_middleware(self, exception, request):
Variable | Value |
---|---|
callback | <function ArticleDetailView at 0x7fafa55a5d90> |
callback_args | () |
callback_kwargs | {'category_slug': 'politica', 'pk': '225', 'slug': 'nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fafa55d30f0>> |
request | <WSGIRequest: GET '/seccion/politica/225/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/'> |
resolver | <RegexURLResolver 'masiosare.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=articles.views.ArticleDetailView, args=(), kwargs={'slug': 'nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo', 'category_slug': 'politica', 'pk': '225'}, url_name=article-detail, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fafa56a74a8> |
wrapped_callback | <function ArticleDetailView at 0x7fafa55a5d90> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Returns the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content...
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
retval | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/response.py
in rendered_content
This *does not* set the final content of the response. To set the
response content, you must either call render(), or set the
content explicitly using the value of this property.
"""
template = self.resolve_template(self.template_name)
context = self.resolve_context(self.context_data)
content = template.render(context, self._request)...
return content
def add_post_render_callback(self, callback):
"""Adds a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
context | {'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7fafa4da3390> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/backends/django.py
in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)...
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
request | <WSGIRequest: GET '/seccion/politica/225/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/'> |
self | <django.template.backends.django.Template object at 0x7fafa4da3390> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)...
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
self | <django.template.base.Template object at 0x7fafa47ad160> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
self | <django.template.base.Template object at 0x7fafa47ad160> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
self | <ExtendsNode: extends "base.html"> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/loader_tags.py
in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)...
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7fafa5205ef0> |
blocks | {'content': <Block Node: content. Contents: []>, 'js_custom': <Block Node: js_custom. Contents: []>, 'metadata_dublin_core': <Block Node: metadata_dublin_core. Contents: [<TextNode: '\n <meta name="dc.t'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.title>, <TextNode: '">\n <meta name="dc'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.description>, <TextNode: '">\n <meta name="dc'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.dcm_subject>, <TextNode: '">\n <meta name="dc'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.dcm_keywords>, <TextNode: '">\n <meta name="dc'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.dcm_language>, <TextNode: '">\n <meta name="dc'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.dcm_source>, <TextNode: '">\n '>]>, 'metadata_main': <Block Node: metadata_main. Contents: [<TextNode: '\n <title>'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.title>, <TextNode: '</title>\n <meta na'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.description>, <TextNode: '">\n '>]>, 'metadata_open_graph': <Block Node: metadata_open_graph. Contents: [<TextNode: '\n <meta property="'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.title>, <TextNode: '" />\n <meta proper'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.description>, <TextNode: '" />\n <meta proper'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.og_type>, <TextNode: '" />\n <meta proper'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.og_imageurl>, <TextNode: '" />\n '>, <IfNode>, <TextNode: '\n <meta property="'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.fb_admins>, <TextNode: '"/>\n '>]>, 'metadata_twitter_card': <Block Node: metadata_twitter_card. Contents: [<TextNode: '\n <meta name="twit'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.title>, <TextNode: '">\n <meta name="tw'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.description>, <TextNode: '">\n <meta name="tw'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.twc_imageurl>, <TextNode: '">\n <meta name="tw'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.twc_card>, <TextNode: '">\n <meta name="tw'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.twc_site>, <TextNode: '">\n <meta name="tw'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.twc_creator>, <TextNode: '">\n '>]>, 'url_canonical': <Block Node: url_canonical. Contents: [<TextNode: '\n <link rel="canon'>, <Variable Node: request.current_page.get_title_obj.metacanonicalextension.url>, <TextNode: '" />\n '>]>} |
compiled_parent | <django.template.base.Template object at 0x7fafa4da35c0> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
node | <django.template.defaulttags.LoadNode object at 0x7fafa52cc550> |
self | <ExtendsNode: extends "base.html"> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
self | <django.template.base.Template object at 0x7fafa4da35c0> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '">\n\n ' |
bits | ['', '\n\n<!doctype html>\n<html>\n <head>\n ', '\n' '<title>Nuevo Congreso, misma corrupción: se regalarán autos último ' 'modelo</title>\n' '<meta name="description" content="Los coordinadores parlamentarios acuerdan ' 'comprar 22 Jettas y una camioneta “operativa”; con el “regalito” pretende ' 'Tania Valentina mantenerse en la Junta Política y de Gobierno">\n', '\n\n <!-- Canonical -->\n ', '\n' '<!-- Canonical -->\n' '<link rel="canonical" ' 'href="https://www.masiosare.org/politica/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/" ' '/>\n' '<!-- /Canonical -->\n', '\n' ' <!-- /Canonical -->\n' '\n' ' <!-- Open Graph Meta Tags -->\n' ' ', '\n' '<!-- Open Graph Meta Tags -->\n' '<meta property="og:title" content="Nuevo Congreso, misma corrupción: se ' 'regalarán autos último modelo" />\n' '<meta property="og:description" content="Los coordinadores parlamentarios ' 'acuerdan comprar 22 Jettas y una camioneta “operativa”; con el “regalito” ' 'pretende Tania Valentina mantenerse en la Junta Política y de Gobierno" />\n' '<meta property="og:type" content="article" />\n' '<meta property="og:site_name" content="Masiosare" />\n' '<meta property="og:image" ' 'content="https://www.masiosare.org/media/filer_public/b6/3e/b63e4867-f256-41a3-a679-077b4009a550/nuevos-diputados-mismos-vicios-congreso-archivo.jpg" ' '/>\n' '<meta property="og:url" ' 'content="https://www.masiosare.org/politica/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/" ' '/>\n' '<meta property="fb:app_id" content="masiosareagencia"/>\n' '<!-- /Open Graph Meta Tags -->\n', '\n' ' <!-- /Open Graph Meta Tags -->\n' '\n' ' <!-- Twitter cards -->\n' ' ', '\n' '<!-- Twitter cards -->\n' '<meta name="twitter:card" content="summary_large_image">\n' '<meta name="twitter:site" content="@masiosaremor">\n' '<meta name="twitter:creator" content="@masiosaremor">\n' '<meta name="twitter:title" content="Nuevo Congreso, misma corrupción: se ' 'regalarán autos último modelo">\n' '<meta name="twitter:description" content="Los coordinadores parlamentarios ' 'acuerdan comprar 22 Jettas y una camioneta “operativa”; con el “regalito” ' 'pretende Tania Valentina mantenerse en la Junta Política y de Gobierno">\n' '<meta name="twitter:image" ' 'content="https://www.masiosare.org/media/filer_public/b6/3e/b63e4867-f256-41a3-a679-077b4009a550/nuevos-diputados-mismos-vicios-congreso-archivo.jpg">\n' '<meta name="twitter:image:alt" content="">\n' '<!-- /Twitter cards -->\n', '\n' ' <!-- /Twitter cards -->\n' '\n' ' <!-- Dublin Core Metadata -->\n' ' ', '\n' '<!-- Dublin Core Metadata -->\n' '<meta name="dc.title" content="Nuevo Congreso, misma corrupción: se ' 'regalarán autos último modelo">\n' '<meta name="dc.description" content="Los coordinadores parlamentarios ' 'acuerdan comprar 22 Jettas y una camioneta “operativa”; con el “regalito” ' 'pretende Tania Valentina mantenerse en la Junta Política y de Gobierno">\n' '<meta name="dc.subject" content="">\n' '<meta name="dc.keywords" content="">\n' '<meta name="dc.language" content="es">\n' '<!-- /Dublin Core Metadata -->\n', '\n' ' <!-- /Dublin Core Metadata -->\n' '\n' ' <meta charset="UTF-8">\n' ' <meta name="viewport" content="width=device-width, ' 'initial-scale=1.0">\n' ' <meta http-equiv="X-UA-Compatible" content="ie=edge">\n' ' <link rel="icon" href="', '/static/journal/img/masiosare.png', '" type="image/gif">\n' ' <meta name="keywords" content="">\n' ' <link ' 'href="https://fonts.googleapis.com/css?family=Open+Sans:300,400|Raleway:300,400,700" ' 'rel="stylesheet">\n' ' <link rel="stylesheet" ' 'href="https://cdn.jsdelivr.net/npm/evil-icons@1.9.0/assets/evil-icons.min.css">\n' ' <link rel="stylesheet" href="', '/static/journal/css/bootstrap.css', '">\n <link rel="stylesheet" href="', '/static/journal/css/styles.css', '">\n' ' <link rel="stylesheet... <trimmed 4444 bytes string> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
node | <Tag: render_block> |
self | [<django.template.defaulttags.LoadNode object at 0x7fafa52cc550>, <TextNode: '\n\n<!doctype html>\n<html>\n'>, <Block Node: metadata_main. Contents: [<TextNode: '\n <title>'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.title>, <TextNode: '</title>\n <meta na'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.description>, <TextNode: '">\n '>]>, <TextNode: '\n\n <!-- Canonical '>, <Block Node: url_canonical. Contents: [<TextNode: '\n <link rel="canon'>, <Variable Node: request.current_page.get_title_obj.metacanonicalextension.url>, <TextNode: '" />\n '>]>, <TextNode: '\n <!-- /Canonical '>, <Block Node: metadata_open_graph. Contents: [<TextNode: '\n <meta property="'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.title>, <TextNode: '" />\n <meta proper'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.description>, <TextNode: '" />\n <meta proper'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.og_type>, <TextNode: '" />\n <meta proper'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.og_imageurl>, <TextNode: '" />\n '>, <IfNode>, <TextNode: '\n <meta property="'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.fb_admins>, <TextNode: '"/>\n '>]>, <TextNode: '\n <!-- /Open Graph'>, <Block Node: metadata_twitter_card. Contents: [<TextNode: '\n <meta name="twit'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.title>, <TextNode: '">\n <meta name="tw'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.description>, <TextNode: '">\n <meta name="tw'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.twc_imageurl>, <TextNode: '">\n <meta name="tw'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.twc_card>, <TextNode: '">\n <meta name="tw'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.twc_site>, <TextNode: '">\n <meta name="tw'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.twc_creator>, <TextNode: '">\n '>]>, <TextNode: '\n <!-- /Twitter ca'>, <Block Node: metadata_dublin_core. Contents: [<TextNode: '\n <meta name="dc.t'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.title>, <TextNode: '">\n <meta name="dc'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.description>, <TextNode: '">\n <meta name="dc'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.dcm_subject>, <TextNode: '">\n <meta name="dc'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.dcm_keywords>, <TextNode: '">\n <meta name="dc'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.dcm_language>, <TextNode: '">\n <meta name="dc'>, <Variable Node: request.current_page.get_title_obj.seometadataextension.dcm_source>, <TextNode: '">\n '>]>, <TextNode: '\n <!-- /Dublin Cor'>, <django.templatetags.static.StaticNode object at 0x7fafa50957b8>, <TextNode: '" type="image/gif">\n '>, <django.templatetags.static.StaticNode object at 0x7fafa5095550>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7fafa50958d0>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7fafa5095f28>, <TextNode: '">\n\n '>, <Tag: render_block>] |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
self | <Tag: render_block> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/classytags/core.py
in render
"""
INTERNAL method to prepare rendering
Usually you should not override this method, but rather use render_tag.
"""
items = self.kwargs.items()
kwargs = dict([(key, value.resolve(context)) for key, value in items])
kwargs.update(self.blocks)
return self.render_tag(context, **kwargs)...
def render_tag(self, context, **kwargs):
"""
The method you should override in your custom tags
"""
raise NotImplementedError
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
items | dict_items([('postprocessor', <TemplateConstant: None>), ('name', <classytags.values.StringValue object at 0x7fafa5095e48>)]) |
kwargs | {'name': 'css', 'nodelist': [<TextNode: '\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7fafa4df7278>, <TextNode: '\n </head>\n\n <body>\n'>, <Tag: cms_toolbar>], 'postprocessor': None} |
self | <Tag: render_block> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/sekizai/templatetags/sekizai_tags.py
in render_tag
Argument('postprocessor', required=False, default=None, resolve=False),
parser_class=SekizaiParser,
)
def render_tag(self, context, name, postprocessor, nodelist):
if not validate_context(context):
return nodelist.render(context)
rendered_contents = nodelist.render(context)...
varname = get_varname()
data = '\n'.join(context[varname][name])
if postprocessor:
func = import_processor(postprocessor)
data = func(context, data, name)
return '%s\n%s' % (data, rendered_contents)
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
name | 'css' |
nodelist | [<TextNode: '\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7fafa4df7278>, <TextNode: '\n </head>\n\n <body>\n'>, <Tag: cms_toolbar>] |
postprocessor | None |
self | <Tag: render_block> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n </head>\n\n <body>\n ' |
bits | ['\n\n ', '<!-- Global site tag (gtag.js) - Google Analytics -->\n' ' <script async ' 'src="https://www.googletagmanager.com/gtag/js?id=UA-141086291-1"></script>\n' ' <script>\n' ' window.dataLayer = window.dataLayer || [];\n' ' function gtag(){dataLayer.push(arguments);}\n' " gtag('js', new Date());\n" '\n' " gtag('config', 'UA-141086291-1');\n" ' </script>\n' '\n' ' <script async ' 'src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5854818054107314"\n' ' crossorigin="anonymous"></script>\n' '\n', '\n </head>\n\n <body>\n '] |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
node | <Tag: cms_toolbar> |
self | [<TextNode: '\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7fafa4df7278>, <TextNode: '\n </head>\n\n <body>\n'>, <Tag: cms_toolbar>] |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
self | <Tag: cms_toolbar> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/classytags/core.py
in render
"""
INTERNAL method to prepare rendering
Usually you should not override this method, but rather use render_tag.
"""
items = self.kwargs.items()
kwargs = dict([(key, value.resolve(context)) for key, value in items])
kwargs.update(self.blocks)
return self.render_tag(context, **kwargs)...
def render_tag(self, context, **kwargs):
"""
The method you should override in your custom tags
"""
raise NotImplementedError
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
items | dict_items([('name', <TemplateConstant: None>)]) |
kwargs | {'name': None, 'nodelist': [<TextNode: '\n <header>\n '>, <django.templatetags.static.StaticNode object at 0x7fafa4df7208>, <TextNode: '" alt="Masiosare"></a>\n '>, <For Node: for menu in menus, tail_len: 7>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <Block Node: content. Contents: []>, <TextNode: '\n </div>\n '>, <Tag: show_menu>, <TextNode: '\n '>, <django.templatetags.static.StaticNode object at 0x7fafa50ad748>, <TextNode: '"></script>\n\n '>, <Tag: render_block>]} |
self | <Tag: cms_toolbar> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/cms/templatetags/cms_tags.py
in render_tag
return nodelist.render(context)
toolbar = get_toolbar_from_request(request)
if toolbar and toolbar.show_toolbar:
toolbar.init_toolbar(request)
return toolbar.render_with_structure(context, nodelist)
return nodelist.render(context)...
class CMSEditableObject(InclusionTag):
"""
Templatetag that links a content extracted from a generic django model
to the model admin changeform.
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
name | None |
nodelist | [<TextNode: '\n <header>\n '>, <django.templatetags.static.StaticNode object at 0x7fafa4df7208>, <TextNode: '" alt="Masiosare"></a>\n '>, <For Node: for menu in menus, tail_len: 7>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <Block Node: content. Contents: []>, <TextNode: '\n </div>\n '>, <Tag: show_menu>, <TextNode: '\n '>, <django.templatetags.static.StaticNode object at 0x7fafa50ad748>, <TextNode: '"></script>\n\n '>, <Tag: render_block>] |
request | <WSGIRequest: GET '/seccion/politica/225/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/'> |
self | <Tag: cms_toolbar> |
toolbar | <cms.toolbar.toolbar.CMSToolbar object at 0x7fafa51d9e10> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('\n' ' </li>\n' ' </ul>\n' ' </div>\n' ' </nav>\n' ' </header>\n' '\n' ' <main class="bg-light pt-5">\n' ' <div class="container">\n' ' ') |
bits | ['\n' ' <header>\n' ' <div class="text-center pb-3">\n' ' <h1 class="sr-only">Masiosare agencia de noticias</h1>\n' ' <a class="navbar-brand " href="/"><img src="', '/static/journal/img/logo_masiosare.jpg', '" alt="Masiosare"></a>\n' ' </div>\n' ' <nav class="navbar navbar-expand-lg navbar-dark bg-primary">\n' ' <button class="navbar-toggler" type="button" ' 'data-toggle="collapse" data-target="#gralmenu" aria-controls="gralmenu" ' 'aria-expanded="false" aria-label="Toggle navigation">\n' ' <span class="navbar-toggler-icon"></span>\n' ' </button>\n' ' <div class="collapse navbar-collapse justify-content-center ' '" id="gralmenu">\n' ' <ul class="navbar-nav ">\n' ' ', '', '\n <li>\n ', '\n' ' <a class="nav-link" href="/suscriptores/" ' 'style="color: skyblue;">Suscribirse</a>\n' ' ', '\n' ' </li>\n' ' <li>\n' ' ', '\n' ' <a class="nav-link" ' 'href="/es/suscriptores/cuenta/login/" style="color: skyblue;">Iniciar ' 'Sesión</a>\n' ' ', '\n' ' </li>\n' ' </ul>\n' ' </div>\n' ' </nav>\n' ' </header>\n' '\n' ' <main class="bg-light pt-5">\n' ' <div class="container">\n' ' '] |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
node | <Block Node: content. Contents: []> |
self | [<TextNode: '\n <header>\n '>, <django.templatetags.static.StaticNode object at 0x7fafa4df7208>, <TextNode: '" alt="Masiosare"></a>\n '>, <For Node: for menu in menus, tail_len: 7>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <Block Node: content. Contents: []>, <TextNode: '\n </div>\n '>, <Tag: show_menu>, <TextNode: '\n '>, <django.templatetags.static.StaticNode object at 0x7fafa50ad748>, <TextNode: '"></script>\n\n '>, <Tag: render_block>] |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
self | <Block Node: content. Contents: []> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: '\n<div class="row">\n <d'>, <IfNode>, <TextNode: '\n <figcaption>'>, <Variable Node: article.image_desc>, <TextNode: ' - '>, <Variable Node: article.image_credit>, <TextNode: '</figcaption>\n </f'>, <Variable Node: object.name>, <TextNode: '</h1>\n '>, <IfNode>, <TextNode: '\n\n <p class="autor'>, <Variable Node: object.author>, <TextNode: ', Visitas: '>, <Variable Node: object.views>, <TextNode: '</p>\n <p>Publicado'>, <Variable Node: object.creation_date|date:"d/m/y h:i">, <TextNode: '</strong></p>\n\n <!'>, <Variable Node: SITE_PROTOCOL_URL>, <Variable Node: object.get_absolute_url>, <TextNode: '&layout=button&size=small'>, <Variable Node: object.name>, <TextNode: '&count=horizontal"\n '>, <Variable Node: SITE_PROTOCOL_URL>, <Variable Node: object.get_absolute_url>, <TextNode: '" target="_blank">\n '>, <Variable Node: SITE_PROTOCOL_URL>, <Variable Node: object.get_absolute_url>, <TextNode: '&title='>, <Variable Node: object.name>, <TextNode: '" target="_blank">\n '>, <Variable Node: SITE_PROTOCOL_URL>, <Variable Node: object.get_absolute_url>, <TextNode: '" target="_blank">\n '>, <Variable Node: SITE_PROTOCOL_URL>, <Variable Node: object.get_absolute_url>, <TextNode: '&text='>, <Variable Node: object.name>, <TextNode: '" target="_blank">\n '>, <Variable Node: object.content|safe>, <TextNode: '\n </div>\n <div clas'>, <For Node: for article in articles_list, tail_len: 7>, <TextNode: '\n </section>\n '>, <For Node: for article in articles_more_views, tail_len: 17>, <TextNode: '\n </section>\n <'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7fafa5205ef0> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
push | <Block Node: content. Contents: [<TextNode: '\n<div class="row">\n <d'>, <IfNode>, <TextNode: '\n <figcaption>'>, <Variable Node: article.image_desc>, <TextNode: ' - '>, <Variable Node: article.image_credit>, <TextNode: '</figcaption>\n </f'>, <Variable Node: object.name>, <TextNode: '</h1>\n '>, <IfNode>, <TextNode: '\n\n <p class="autor'>, <Variable Node: object.author>, <TextNode: ', Visitas: '>, <Variable Node: object.views>, <TextNode: '</p>\n <p>Publicado'>, <Variable Node: object.creation_date|date:"d/m/y h:i">, <TextNode: '</strong></p>\n\n <!'>, <Variable Node: SITE_PROTOCOL_URL>, <Variable Node: object.get_absolute_url>, <TextNode: '&layout=button&size=small'>, <Variable Node: object.name>, <TextNode: '&count=horizontal"\n '>, <Variable Node: SITE_PROTOCOL_URL>, <Variable Node: object.get_absolute_url>, <TextNode: '" target="_blank">\n '>, <Variable Node: SITE_PROTOCOL_URL>, <Variable Node: object.get_absolute_url>, <TextNode: '&title='>, <Variable Node: object.name>, <TextNode: '" target="_blank">\n '>, <Variable Node: SITE_PROTOCOL_URL>, <Variable Node: object.get_absolute_url>, <TextNode: '" target="_blank">\n '>, <Variable Node: SITE_PROTOCOL_URL>, <Variable Node: object.get_absolute_url>, <TextNode: '&text='>, <Variable Node: object.name>, <TextNode: '" target="_blank">\n '>, <Variable Node: object.content|safe>, <TextNode: '\n </div>\n <div clas'>, <For Node: for article in articles_list, tail_len: 7>, <TextNode: '\n </section>\n '>, <For Node: for article in articles_more_views, tail_len: 17>, <TextNode: '\n </section>\n <'>]> |
self | <Block Node: content. Contents: []> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('\n' ' </section>\n' ' <section class="pt-4">\n' ' <h3 class="line__desc">LO MÁS LEIDO</h3>\n' ' ') |
bits | ['\n' '<div class="row">\n' ' <div class="col-lg-7">\n' ' <figure class="m-2">\n' ' ', '\n' ' <img ' 'src="/media/filer_public/b6/3e/b63e4867-f256-41a3-a679-077b4009a550/nuevos-diputados-mismos-vicios-congreso-archivo.jpg" ' 'class="img-fluid" alt="">\n' ' ', '\n <figcaption>', 'Nuevos diputados con los mismos vicios que los anteriores. La cara de la ' 'corrupción sigue siendo el Congreso local', ' - ', 'Foto: Congreso de Morelos', '</figcaption>\n </figure>\n <h1 class="title-art">', 'Nuevo Congreso, misma corrupción: se regalarán autos último modelo', '</h1>\n ', '\n' ' <p class="sub-title">Los coordinadores parlamentarios acuerdan ' 'comprar 22 Jettas y una camioneta “operativa”; con el “regalito” pretende ' 'Tania Valentina mantenerse en la Junta Política y de Gobierno</p>\n' ' ', '\n\n <p class="autor">POR: ', 'Jaime Luis Brito', ', Visitas: ', '2113', '</p>\n <p>Publicado: <strong>', '11/07/19 09:07', '</strong></p>\n' '\n' ' <!-- <iframe ' 'src="https://www.facebook.com/plugins/share_button.php?href=', 'https://www.masiosare.org', '/politica/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/', '&layout=button&size=small&width=81&height=20&appId" width="81" height="20" ' 'style="border:none;overflow:hidden" scrolling="no" frameborder="0" ' 'allowTransparency="true" allow="encrypted-media"></iframe>\n' ' <iframe id="tweet-button" allowtransparency="true" frameborder="0" ' 'scrolling="no"\n' ' src="http://platform.twitter.com/widgets/tweet_button.html?text=', 'Nuevo Congreso, misma corrupción: se regalarán autos último modelo', '&count=horizontal"\n' ' style="width:110px; height:20px;"></iframe>-->\n' '\n' ' <p>\n' ' <span class="m-2"><i class="fa fa-share-alt"></i> Compartir la ' 'nota por:</span>\n' ' <a href="https://www.facebook.com/sharer/sharer.php?u=', 'https://www.masiosare.org', '/politica/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/', '" target="_blank">\n' ' <i class="fa-brands fa-facebook fa-2x m-2"></i>\n' ' </a>\n' ' <a href="https://twitter.com/intent/tweet?url=', 'https://www.masiosare.org', '/politica/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/', '&title=', 'Nuevo Congreso, misma corrupción: se regalarán autos último modelo', '" target="_blank">\n' ' <i class="fa-brands fa-twitter-square fa-2x m-2"></i>\n' ' </a>\n' ' <a href="https://api.whatsapp.com/send?text=', 'https://www.masiosare.org', '/politica/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/', '" target="_blank">\n' ' <i class="fa-brands fa-whatsapp-square fa-2x m-2"></i>\n' ' </a>\n' ' <a href="https://t.me/share/url?url=', 'https://www.masiosare.org', '/politica/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/', '&text=', 'Nuevo Congreso, misma corrupción: se regalarán autos último modelo', '" target="_blank">\n' ' <i class="fa-brands fa-telegram-plane fa-2x m-2"></i>\n' ' </a>\n' ' </p>\n' '\n' ' ', '<p> </p>\r\n' '<p class="MsoNormal" style="text-align: justify;">La lucha por los ' 'órganos de control del Congreso local se reavivió al acercarse ' 'la conclusión del primer año de ejercicio de la presente ' 'Legislatura. Para mantenerse, la impresentable diputada Tania Valentina ' 'Rodríguez Ruiz, líder del Partido del Trabajo en la entidad, ' 'quien con tan sólo la preparatoria, se mantiene como la conductora de ' 'ese poder, acude a las malas prácticas de antaño para quedarse ' 'en la Junta Política y de Gobierno un año más.</p>\r\n' '<p class="MsoNormal" style="text-align: justify;">Esta mañana, en la ' 'reunión de la Conferencia para los T... <trimmed 10195 bytes string> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
node | <For Node: for article in articles_more_views, tail_len: 17> |
self | [<TextNode: '\n<div class="row">\n <d'>, <IfNode>, <TextNode: '\n <figcaption>'>, <Variable Node: article.image_desc>, <TextNode: ' - '>, <Variable Node: article.image_credit>, <TextNode: '</figcaption>\n </f'>, <Variable Node: object.name>, <TextNode: '</h1>\n '>, <IfNode>, <TextNode: '\n\n <p class="autor'>, <Variable Node: object.author>, <TextNode: ', Visitas: '>, <Variable Node: object.views>, <TextNode: '</p>\n <p>Publicado'>, <Variable Node: object.creation_date|date:"d/m/y h:i">, <TextNode: '</strong></p>\n\n <!'>, <Variable Node: SITE_PROTOCOL_URL>, <Variable Node: object.get_absolute_url>, <TextNode: '&layout=button&size=small'>, <Variable Node: object.name>, <TextNode: '&count=horizontal"\n '>, <Variable Node: SITE_PROTOCOL_URL>, <Variable Node: object.get_absolute_url>, <TextNode: '" target="_blank">\n '>, <Variable Node: SITE_PROTOCOL_URL>, <Variable Node: object.get_absolute_url>, <TextNode: '&title='>, <Variable Node: object.name>, <TextNode: '" target="_blank">\n '>, <Variable Node: SITE_PROTOCOL_URL>, <Variable Node: object.get_absolute_url>, <TextNode: '" target="_blank">\n '>, <Variable Node: SITE_PROTOCOL_URL>, <Variable Node: object.get_absolute_url>, <TextNode: '&text='>, <Variable Node: object.name>, <TextNode: '" target="_blank">\n '>, <Variable Node: object.content|safe>, <TextNode: '\n </div>\n <div clas'>, <For Node: for article in articles_list, tail_len: 7>, <TextNode: '\n </section>\n '>, <For Node: for article in articles_more_views, tail_len: 17>, <TextNode: '\n </section>\n <'>] |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
self | <For Node: for article in articles_more_views, tail_len: 17> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/defaulttags.py
in render
unpacked_vars = dict(zip(self.loopvars, item))
pop_context = True
context.update(unpacked_vars)
else:
context[self.loopvars[0]] = item
for node in self.nodelist_loop:
nodelist.append(node.render_annotated(context))...
if pop_context:
# The loop variables were pushed on to the context so pop them
# off again. This is necessary because the tag lets the length
# of loopvars differ to the length of each set of items and we
# don't want to leave any vars from the previous loop on the
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
i | 0 |
item | <Article: Hombres, guardemos silencio, reflexionemos> |
len_values | 3 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 3, 'revcounter0': 2} |
node | <Variable Node: article.category.get_absolute_url> |
nodelist | ['\n' ' <article class="row align-items-center no-gutters article">\n' ' <div class="col-9 col-sm-6 col-md-9 ">\n' ' <div class="texto-nota">\n' ' <span class="info_grals"><a href="'] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <For Node: for article in articles_more_views, tail_len: 17> |
unpack | False |
values | <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
self | <Variable Node: article.category.get_absolute_url> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in render
self.filter_expression = filter_expression
def __repr__(self):
return "<Variable Node: %s>" % self.filter_expression
def render(self, context):
try:
output = self.filter_expression.resolve(context)...
except UnicodeDecodeError:
# Unicode conversion can fail sometimes for reasons out of our
# control (e.g. exception rendering). In that case, we fail
# quietly.
return ''
return render_value_in_context(output, context)
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
self | <Variable Node: article.category.get_absolute_url> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in resolve
self.filters = filters
self.var = var_obj
def resolve(self, context, ignore_failures=False):
if isinstance(self.var, Variable):
try:
obj = self.var.resolve(context)...
except VariableDoesNotExist:
if ignore_failures:
obj = None
else:
string_if_invalid = context.template.engine.string_if_invalid
if string_if_invalid:
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
ignore_failures | False |
self | <django.template.base.FilterExpression object at 0x7fafa51cdb00> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in resolve
var)
self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR))
def resolve(self, context):
"""Resolve this variable against a given context."""
if self.lookups is not None:
# We're dealing with a variable that needs to be resolved
value = self._resolve_lookup(context)...
else:
# We're dealing with a literal, so it's already been "resolved"
value = self.literal
if self.translate:
is_safe = isinstance(value, SafeData)
msgid = value.replace('%', '%%')
Variable | Value |
---|---|
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
self | <Variable: 'article.category.get_absolute_url'> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/template/base.py
in _resolve_lookup
if callable(current):
if getattr(current, 'do_not_call_in_templates', False):
pass
elif getattr(current, 'alters_data', False):
current = context.template.engine.string_if_invalid
else:
try: # method call (assuming no args required)
current = current()...
except TypeError:
try:
inspect.getcallargs(current)
except TypeError: # arguments *were* required
current = context.template.engine.string_if_invalid # invalid method call
else:
Variable | Value |
---|---|
bit | 'get_absolute_url' |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'articles_list': <QuerySet [<Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>, 'view': <articles.views.ArticleDetailView object at 0x7fafa51d9e48>, 'object': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'article': <Article: Nuevo Congreso, misma corrupción: se regalarán autos último modelo>, 'articles_more_views': <QuerySet [<Article: Hombres, guardemos silencio, reflexionemos>, <Article: Covid-19: Montan hospital móvil para que Cuauhtémoc Blanco grabe un spot>, <Article: Morelos: Pacientes de Covid-19 firman su consentimiento para morir>]>}] |
current | <bound method Category.get_absolute_url of <Category: Opinión>> |
self | <Variable: 'article.category.get_absolute_url'> |
template_name | 'article/article_detail.html' |
/home/ubuntu/conexiones/desarrollo/masiosare/masiosare/articles/models.py
in get_absolute_url
def __int__(self):
return self.pk
def get_absolute_url(self):
return reverse('category-detail', kwargs={
'language_code': self.language_code,
'slug': self.slug...
})
def get_cuatro_columnas_articles(self):
return self.article_set.filter(is_video=False)[:4]
def get_tres_columnas_articles(self):
Variable | Value |
---|---|
self | <Category: Opinión> |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/urls/base.py
in reverse
(key, ':'.join(resolved_path))
)
else:
raise NoReverseMatch("%s is not a registered namespace" % key)
if ns_pattern:
resolver = get_ns_resolver(ns_pattern, resolver)
return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))...
reverse_lazy = lazy(reverse, six.text_type)
def clear_url_caches():
Variable | Value |
---|---|
args | [] |
current_app | None |
current_path | None |
kwargs | {'language_code': 'es', 'slug': 'opinion'} |
ns_pattern | '' |
parts | ['category-detail'] |
path | [] |
prefix | '/' |
resolved_path | [] |
resolver | <RegexURLResolver 'masiosare.urls' (None:None) ^/> |
urlconf | 'masiosare.urls' |
view | 'category-detail' |
viewname | 'category-detail' |
/home/ubuntu/conexiones/desarrollo/masiosare/tmp/venv/lib/python3.5/site-packages/django/urls/resolvers.py
in _reverse_with_prefix
(lookup_view_s, arg_msg, len(patterns), patterns)
)
else:
msg = (
"Reverse for '%(view)s' not found. '%(view)s' is not "
"a valid view function or pattern name." % {'view': lookup_view_s}
)
raise NoReverseMatch(msg)...
class LocaleRegexURLResolver(RegexURLResolver):
"""
A URL resolver that always matches the active language code as URL prefix.
Variable | Value |
---|---|
_prefix | '/' |
arg_msg | "keyword arguments '{'slug': 'opinion', 'language_code': 'es'}'" |
args | () |
defaults | {} |
kwargs | {'language_code': 'es', 'slug': 'opinion'} |
lookup_view | 'category-detail' |
lookup_view_s | 'category-detail' |
m | None |
msg | ("Reverse for 'category-detail' with keyword arguments '{'slug': 'opinion', " "'language_code': 'es'}' not found. 1 pattern(s) tried: " "['seccion/(?P<slug>[-\\\\w]+)/$']") |
n | None |
params | ['slug'] |
pattern | 'seccion/(?P<slug>[-\\w]+)/$' |
patterns | ['seccion/(?P<slug>[-\\w]+)/$'] |
possibilities | [([('seccion/%(slug)s/', ['slug'])], 'seccion/(?P<slug>[-\\w]+)/$', {})] |
possibility | [('seccion/%(slug)s/', ['slug'])] |
result | 'seccion/%(slug)s/' |
self | <RegexURLResolver 'masiosare.urls' (None:None) ^/> |
text_args | [] |
text_kwargs | {'language_code': 'es', 'slug': 'opinion'} |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'www.masiosare.org' |
HTTP_REFERER | 'http://www.masiosare.org/seccion/politica/225/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '54.174.85.205' |
PATH_INFO | '/seccion/politica/225/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/' |
QUERY_STRING | '' |
RAW_URI | '/seccion/politica/225/nuevo-congreso-misma-corrupcion-se-regalaran-autos-ultimo-modelo/' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'www.masiosare.org' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/19.9.0' |
gunicorn.socket | <socket.socket fd=9, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/home/ubuntu/conexiones/desarrollo/masiosare/run/gunicorn.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fafa51d9a90> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7fafa51d97b8> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
masiosare.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['masiosare.org', 'www.masiosare.org', '*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/ubuntu/conexiones/desarrollo/masiosare/masiosare' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CMS_LANGUAGES | {1: [{'code': 'es', 'fallbacks': ['en', 'fr', 'it'], 'hide_untranslated': False, 'name': 'es', 'public': True, 'redirect_on_fallback': True}, {'code': 'en', 'fallbacks': ['es', 'fr', 'it'], 'hide_untranslated': False, 'name': 'en', 'public': True, 'redirect_on_fallback': True}, {'code': 'fr', 'fallbacks': ['es', 'en', 'it'], 'hide_untranslated': False, 'name': 'fr', 'public': True, 'redirect_on_fallback': True}, {'code': 'it', 'fallbacks': ['es', 'en', 'fr'], 'hide_untranslated': False, 'name': 'it', 'public': True, 'redirect_on_fallback': True}], 'default': {'hide_untranslated': False, 'public': True, 'redirect_on_fallback': True}, <class 'cms.utils.conf.VERIFIED'>: True} |
CMS_PERMISSION | True |
CMS_PLACEHOLDER_CONF | {} |
CMS_TEMPLATES | (('fullwidth.html', 'Fullwidth'), ('sidebar_left.html', 'Sidebar Left'), ('sidebar_right.html', 'Sidebar Right'), ('layouts/main.html', 'Inicio'), ('layouts/about.html', 'Somos'), ('layouts/category.html', 'Categoria'), ('layouts/contact.html', 'Contacto'), ('layouts/service.html', 'Otros Servicios')) |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'rds-conexiones-001.cuuetwz7p9sv.us-west-2.rds.amazonaws.com', 'NAME': 'masiosaredb2', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'master.admin'}} |
DATABASE_ROUTERS | [] |
DATA_DIR | '/home/ubuntu/conexiones/desarrollo/masiosare/masiosare' |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | 'False' |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.zoho.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'hola@masiosare.org' |
EMAIL_PORT | '587' |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
EXTRA_APPS | ('tinymce', 'widget_tweaks') |
FILER_IMAGE_MODEL | 'filer.Image' |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ('djangocms_admin_style', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.admin', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'django.contrib.messages', 'cms', 'menus', 'sekizai', 'treebeard', 'djangocms_text_ckeditor', 'filer', 'easy_thumbnails', 'djangocms_column', 'djangocms_file', 'djangocms_link', 'djangocms_picture', 'djangocms_style', 'djangocms_snippet', 'djangocms_googlemap', 'djangocms_video', 'masiosare', 'audits', 'catalogs', 'articles', 'plugins', 'contacts', 'followers', 'tinymce', 'widget_tweaks') |
INTERNAL_IPS | [] |
LANGUAGES | (('es', 'Español'),) |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'es' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LAYOUTS | (('layouts/main.html', 'Inicio'), ('layouts/about.html', 'Somos'), ('layouts/category.html', 'Categoria'), ('layouts/contact.html', 'Contacto'), ('layouts/service.html', 'Otros Servicios')) |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | '/' |
MANAGERS | [] |
MEDIA_ROOT | '/home/ubuntu/conexiones/desarrollo/masiosare/masiosare/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ('cms.middleware.utils.ApphookReloadMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware') |
MIDDLEWARE_CLASSES | ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
PROJECT_APPS | ('audits', 'catalogs', 'articles', 'plugins', 'contacts', 'followers') |
ROOT_URLCONF | 'masiosare.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | '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_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 | 'masiosare.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 |
SITE_PROTOCOL_URL | 'https://www.masiosare.org' |
SITE_URL | 'www.masiosare.org' |
STATICFILES_DIRS | ('/home/ubuntu/conexiones/desarrollo/masiosare/masiosare/masiosare/static',) |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/ubuntu/conexiones/desarrollo/masiosare/masiosare/static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/ubuntu/conexiones/desarrollo/masiosare/masiosare/masiosare/templates', '/home/ubuntu/conexiones/desarrollo/masiosare/masiosare/website/templates', '/home/ubuntu/conexiones/desarrollo/masiosare/masiosare/demo/templates'], 'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.i18n', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.media', 'django.template.context_processors.csrf', 'django.template.context_processors.tz', 'sekizai.context_processors.sekizai', 'django.template.context_processors.static', 'website.context_processors.new_categories_list', 'cms.context_processors.cms_settings'], 'loaders': ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'django.template.loaders.eggs.Loader']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
THUMBNAIL_PROCESSORS | ('easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', 'filer.thumbnail_processors.scale_and_crop_with_subject_location', 'easy_thumbnails.processors.filters') |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'America/Mexico_City' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | None |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.