Esa página no contiene resultados
Request Method: | GET |
---|---|
Request URL: | https://nuevaescuelamexicana.sep.gob.mx/tag/recurso/viernes_2?&page=90 |
Django Version: | 4.2 |
Exception Type: | EmptyPage |
Exception Value: | Esa página no contiene resultados |
Exception Location: | /opt/nemmx/venv/lib/python3.8/site-packages/django/core/paginator.py, line 54, in validate_number |
Raised during: | courses.views.ListadoEtiquetaView |
Python Executable: | /opt/nemmx/venv/bin/python |
Python Version: | 3.8.10 |
Python Path: | ['/opt/nemmx', '/opt/nemmx', '/opt/nemmx/venv/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/opt/nemmx/venv/lib/python3.8/site-packages'] |
Server time: | Fri, 29 Mar 2024 03:42:49 -0600 |
In template /opt/nemmx/templates/global/v2/paginacion.html
, error at line 18
8 | <a class="page-link" href="{% if q %}?{{ qs }}&page={{ paginacion.previous_page_number }}{% else %}?&page={{ paginacion.previous_page_number }}{% endif %}"><i class="fas fa-arrow-circle-left"></i> Anterior </a> |
---|---|
9 | </li> |
10 | {% else %} |
11 | <li class="page-item disabled"> |
12 | <a class="page-link">Primera</a> |
13 | </li> |
14 | <li class="page-item disabled"> |
15 | <a class="page-link"><i class="fas fa-arrow-circle-left"></i>Anterior</a> |
16 | </li> |
17 | {% endif %} |
18 | {% for i in rango|default_if_none:paginacion.paginator.get_elided_page_range %} |
19 | {% if paginacion.number == i %} |
20 | <li class="active page-item"><span class="page-link">{{ i }} <span class="sr-only">(current)</span></span> |
21 | </li> |
22 | {% else %} |
23 | {% if i == paginacion.paginator.ELLIPSIS %} |
24 | <li class="page-item"><span class="page-link">{{ i }}</span></li> |
25 | {% else %} |
26 | <li class="page-item"><a class="page-link" href="{% if q %}?{{ qs }}&page={{ i }}{% else %}?&page={{ i }}{% endif %}">{{ i }}</a></li> |
27 | {% endif %} |
28 | {% endif %} |
/opt/nemmx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py
, line 55, in inner
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | EmptyPage('Esa página no contiene resultados') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fa8058bf8b0>> |
request | <WSGIRequest: GET '/tag/recurso/viernes_2?&page=90'> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/core/handlers/base.py
, line 197, in _get_response
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function View.as_view.<locals>.view at 0x7fa8049f54c0> |
callback_args | () |
callback_kwargs | {'tag_slug': 'viernes_2', 'tipo': 'recurso'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>> |
request | <WSGIRequest: GET '/tag/recurso/viernes_2?&page=90'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fa8058bf8b0> |
wrapped_callback | <function View.as_view.<locals>.view at 0x7fa8049f54c0> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/views/generic/base.py
, line 104, in view
self = cls(**initkwargs)
self.setup(request, *args, **kwargs)
if not hasattr(self, "request"):
raise AttributeError(
"%s instance has no 'request' attribute. Did you override "
"setup() and forget to call super()?" % cls.__name__
)
return self.dispatch(request, *args, **kwargs)…
view.view_class = cls
view.view_initkwargs = initkwargs
# __name__ and __qualname__ are intentionally left unchanged as
# view_class should be used to robustly determine the name of the view
Variable | Value |
---|---|
args | () |
cls | <class 'courses.views.ListadoEtiquetaView'> |
initkwargs | {} |
kwargs | {'tag_slug': 'viernes_2', 'tipo': 'recurso'} |
request | <WSGIRequest: GET '/tag/recurso/viernes_2?&page=90'> |
self | <courses.views.ListadoEtiquetaView object at 0x7fa80402a490> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/views/generic/base.py
, line 143, in dispatch
# request method isn't on the approved list.
if request.method.lower() in self.http_method_names:
handler = getattr(
self, request.method.lower(), self.http_method_not_allowed
)
else:
handler = self.http_method_not_allowed
return handler(request, *args, **kwargs)…
def http_method_not_allowed(self, request, *args, **kwargs):
logger.warning(
"Method Not Allowed (%s): %s",
request.method,
request.path,
Variable | Value |
---|---|
args | () |
handler | <bound method ListadoEtiquetaView.get of <courses.views.ListadoEtiquetaView object at 0x7fa80402a490>> |
kwargs | {'tag_slug': 'viernes_2', 'tipo': 'recurso'} |
request | <WSGIRequest: GET '/tag/recurso/viernes_2?&page=90'> |
self | <courses.views.ListadoEtiquetaView object at 0x7fa80402a490> |
/opt/nemmx/courses/views.py
, line 823, in get
paginator = Paginator(fichas, 15)
page_number = request.GET.get('page')
if not page_number:
page_number = 1
page_obj = paginator.get_page(page_number)
page_range = paginator.get_elided_page_range(number=page_number)
return render(request, 'global/v2/listado.html',…
{'tag': tag, 'fichas': page_obj, 'rango': page_range, 'tipo': tipo})
class AgregarRecursoFichaView(View):
def post(self, request):
if request.user.is_superuser:
Variable | Value |
---|---|
fichas | <QuerySet [<Resource: "Mi postura crítica frente a los textos publicitarios" Un k’o ri zonï k’o ye xiskuama kï pòò d’a jñaa>, <Resource: 3, 2, 1... ¡Arte! ¡Todos a escena!>, <Resource: 3. 2. 1 ¡Acción!>, <Resource: 69 Formas de hablar e imaginar>, <Resource: A cada escultura su técnica>, <Resource: A cuidar nuestros sentidos>, <Resource: A los tiburones... ¡no!>, <Resource: A través del tiempo>, <Resource: A tu salud>, <Resource: A veces diferentes, otras veces semejantes>, <Resource: A veces sí y a veces no>, <Resource: A veces sí y a veces no>, <Resource: ADN: el código secreto de los seres vivos>, <Resource: Abre los ojos y te ahorrarás enojos>, <Resource: Acciones en el salón de clases>, <Resource: Acciones para prevenir y reducir el deterioro ambiental>, <Resource: Acontecimientos y tramas del Renacimiento >, <Resource: Acuerdos de familia>, <Resource: Acuerdos para vivir en mi comunidad>, <Resource: Adaptación festiva a un año de evolución artística>, '...(remaining elements truncated)...']> |
page_number | '90' |
page_obj | <Page 86 of 86> |
page_range | <generator object Paginator.get_elided_page_range at 0x7fa812081ba0> |
paginator | <django.core.paginator.Paginator object at 0x7fa8037b5e20> |
request | <WSGIRequest: GET '/tag/recurso/viernes_2?&page=90'> |
self | <courses.views.ListadoEtiquetaView object at 0x7fa80402a490> |
tag | <Tag: Viernes> |
tag_slug | 'viernes_2' |
tipo | 'recurso' |
/opt/nemmx/venv/lib/python3.8/site-packages/django/shortcuts.py
, line 24, in render
def render(
request, template_name, context=None, content_type=None, status=None, using=None
):
"""
Return an HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)…
return HttpResponse(content, content_type, status)
def redirect(to, *args, permanent=False, **kwargs):
"""
Return an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tag': <Tag: Viernes>, 'tipo': 'recurso'} |
request | <WSGIRequest: GET '/tag/recurso/viernes_2?&page=90'> |
status | None |
template_name | 'global/v2/listado.html' |
using | None |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/loader.py
, line 62, in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)…
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tag': <Tag: Viernes>, 'tipo': 'recurso'} |
request | <WSGIRequest: GET '/tag/recurso/viernes_2?&page=90'> |
template | <django.template.backends.django.Template object at 0x7fa812016a30> |
template_name | 'global/v2/listado.html' |
using | None |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/backends/django.py
, line 61, in render
return self.template.origin
def render(self, context=None, request=None):
context = make_context(
context, request, autoescape=self.backend.engine.autoescape
)
try:
return self.template.render(context)…
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
request | <WSGIRequest: GET '/tag/recurso/viernes_2?&page=90'> |
self | <django.template.backends.django.Template object at 0x7fa812016a30> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/base.py
, line 175, in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)…
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
self | <Template template_string="{% extends 'global/v..."> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/test/utils.py
, line 112, in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal that can be
intercepted by the test Client.
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)…
class _TestState:
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
self | <Template template_string="{% extends 'global/v..."> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
self | [<ExtendsNode: extends 'global/v2/base.html'>] |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fa803a6d2e0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
node | <ExtendsNode: extends 'global/v2/base.html'> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/base.py
, line 966, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
self | <ExtendsNode: extends 'global/v2/base.html'> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/loader_tags.py
, line 157, in render
}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)…
class IncludeNode(Node):
context_key = "__include_context"
def __init__(
Variable | Value |
---|---|
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'title': [<Block Node: title. Contents: [<TextNode: '\n Nueva Escuela Me'>]>, <Block Node: title. Contents: [<TextNode: '\n Etiqueta '>, <Variable Node: tag>, <TextNode: ' para '>, <Variable Node: tipo>, <TextNode: '- Nueva Escuela Mexicana\n'>]>], 'seo': [<Block Node: seo. Contents: [<TextNode: '\n '>]>, <Block Node: seo. Contents: [<TextNode: '\n <!-- Facebook-->\n '>, <Variable Node: request.scheme>, <TextNode: '://'>, <Variable Node: request.get_host>, <URLNode view_name=''courses:listado-etiquetas-ficha'' args=[] kwargs={'tag_slug': <FilterExpression 'tag.slug'>, 'tipo': <FilterExpression 'tipo'>} as=None>, <TextNode: '"/>\n <meta property="o'>, <Variable Node: tag>, <TextNode: ' para '>, <Variable Node: tipo>, <TextNode: '- Nueva Escuela Mexicana"'>, <Variable Node: tag>, <TextNode: ' - Nueva Escuela Mexicana'>, <Variable Node: tag>, <TextNode: ' ">\n <meta name="descr'>, <Variable Node: tag>, <TextNode: '">\n'>]>], 'nav': [<Block Node: nav. Contents: [<TextNode: '\n '>]>, <Block Node: nav. Contents: [<TextNode: '\n'>]>], 'content': [<Block Node: content. Contents: [<TextNode: '\n '>]>], 'extra_javascript': [<Block Node: extra_javascript. Contents: [<TextNode: '\n'>]>, <Block Node: extra_javascript. Contents: [<TextNode: '\n\n\n'>]>]})> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n '>]>, 'extra_javascript': <Block Node: extra_javascript. Contents: [<TextNode: '\n'>]>, 'nav': <Block Node: nav. Contents: [<TextNode: '\n '>]>, 'seo': <Block Node: seo. Contents: [<TextNode: '\n '>]>, 'title': <Block Node: title. Contents: [<TextNode: '\n Nueva Escuela Me'>]>} |
compiled_parent | <Template template_string="<!DOCTYPE html><htm..."> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
node | <django.template.defaulttags.LoadNode object at 0x7fa804896a30> |
self | <ExtendsNode: extends 'global/v2/base.html'> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/test/utils.py
, line 112, in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal that can be
intercepted by the test Client.
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)…
class _TestState:
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
self | <Template template_string="<!DOCTYPE html><htm..."> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
self | [<TextNode: '<!DOCTYPE html>\n<html>\n<h'>, <django.template.defaulttags.LoadNode object at 0x7fa804896a30>, <TextNode: '\n <!-- Google Tag Mana'>, <Block Node: title. Contents: [<TextNode: '\n Nueva Escuela Me'>]>, <TextNode: '</title>\n <!-- favicon'>, StaticNode(varname=None, path=<FilterExpression "'ico/NEM.png'">), <TextNode: '">\n <!--\n <link rel'>, StaticNode(varname=None, path=<FilterExpression "'ico/apple-touch-icon.png'">), <TextNode: '">\n <link rel="icon" t'>, StaticNode(varname=None, path=<FilterExpression "'ico/favicon-32x32.png'">), <TextNode: '">\n <link rel="icon" t'>, StaticNode(varname=None, path=<FilterExpression "'ico/favicon-16x16.png'">), <TextNode: '">\n -->\n <link rel='>, StaticNode(varname=None, path=<FilterExpression "'ico/site.webmanifest'">), <TextNode: '">\n <link rel="mask-ic'>, StaticNode(varname=None, path=<FilterExpression "'ico/safari-pinned-tab.svg'">), <TextNode: '" color="#5bbad5">\n <m'>, StaticNode(varname=None, path=<FilterExpression "'css/bootstrap.min.css'">), <TextNode: '">\n <link rel="stylesh'>, StaticNode(varname=None, path=<FilterExpression "'fontawesome/css/solid.min.css'">), <TextNode: '" >\n <link rel="styles'>, StaticNode(varname=None, path=<FilterExpression "'fontawesome/css/brands.min.css'">), <TextNode: '">\n <link rel="stylesh'>, StaticNode(varname=None, path=<FilterExpression "'fontawesome/css/fontawesome.min.css'">), <TextNode: '">\n <script src="https'>, StaticNode(varname=None, path=<FilterExpression "'js/moment/moment.min.js'">), <TextNode: '"></script>\n <script s'>, StaticNode(varname=None, path=<FilterExpression "'js/moment/moment-with-locales.min.js'">), <TextNode: '"></script>\n <script s'>, StaticNode(varname=None, path=<FilterExpression "'js/jquery-3.5.1.min.js'">), <TextNode: '"></script>\n <script s'>, StaticNode(varname=None, path=<FilterExpression "'js/bootstrap.bundle.min.js'">), <TextNode: '" ></script>\n <link hr'>, StaticNode(varname=None, path=<FilterExpression "'css/toastr.min.css'">), <TextNode: '" rel="stylesheet">\n <'>, StaticNode(varname=None, path=<FilterExpression "'css/style.css'">), <TextNode: '?v=1.2">\n <link rel="s'>, StaticNode(varname=None, path=<FilterExpression "'css/framework-gb.css'">), <TextNode: '">\n<!-- push-->\n '>, <Block Node: seo. Contents: [<TextNode: '\n '>]>, <TextNode: '\n<style>\n #st-cmp-v2{z'>, <IncludeNode: template=<FilterExpression "'global/v2/header.html'">>, <TextNode: '\n <main class="page">\n '>, <IncludeNode: template=<FilterExpression "'global/v2/messages.html'">>, <TextNode: '\n '>, <Block Node: nav. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n </main>\n\n\n'>, <IncludeNode: template=<FilterExpression "'global/v2/footer.html'">>, <TextNode: '\n\n <script type="text/'>, <Block Node: extra_javascript. Contents: [<TextNode: '\n'>]>, <TextNode: '\n<script src="https://fra'>] |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fa803a6dd30> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
node | <Block Node: content. Contents: [<TextNode: '\n '>]> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/base.py
, line 966, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
self | <Block Node: content. Contents: [<TextNode: '\n '>]> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/loader_tags.py
, line 63, in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context["block"] = block
result = block.nodelist.render(context)…
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, "context"):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: '\n <div id="breadcrumb-'>, <URLNode view_name=''courses:home'' args=[] kwargs={} as=None>, <TextNode: '">Inicio</a></li>\n '>, <URLNode view_name=''courses:listado-etiquetas-ficha'' args=[] kwargs={'tag_slug': <FilterExpression 'tag.slug'>, 'tipo': <FilterExpression 'tipo'>} as=None>, <TextNode: '"> '>, <Variable Node: tag>, <TextNode: '</a></li>\n </o'>, <IfNode>, <TextNode: '\n </section>\n '>, <IncludeNode: template=<FilterExpression "'global/v2/paginacion.html'">>, <TextNode: '\n </section>\n '>]> |
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'title': [<Block Node: title. Contents: [<TextNode: '\n Nueva Escuela Me'>]>, <Block Node: title. Contents: [<TextNode: '\n Etiqueta '>, <Variable Node: tag>, <TextNode: ' para '>, <Variable Node: tipo>, <TextNode: '- Nueva Escuela Mexicana\n'>]>], 'seo': [<Block Node: seo. Contents: [<TextNode: '\n '>]>, <Block Node: seo. Contents: [<TextNode: '\n <!-- Facebook-->\n '>, <Variable Node: request.scheme>, <TextNode: '://'>, <Variable Node: request.get_host>, <URLNode view_name=''courses:listado-etiquetas-ficha'' args=[] kwargs={'tag_slug': <FilterExpression 'tag.slug'>, 'tipo': <FilterExpression 'tipo'>} as=None>, <TextNode: '"/>\n <meta property="o'>, <Variable Node: tag>, <TextNode: ' para '>, <Variable Node: tipo>, <TextNode: '- Nueva Escuela Mexicana"'>, <Variable Node: tag>, <TextNode: ' - Nueva Escuela Mexicana'>, <Variable Node: tag>, <TextNode: ' ">\n <meta name="descr'>, <Variable Node: tag>, <TextNode: '">\n'>]>], 'nav': [<Block Node: nav. Contents: [<TextNode: '\n '>]>, <Block Node: nav. Contents: [<TextNode: '\n'>]>], 'content': [<Block Node: content. Contents: [<TextNode: '\n '>]>], 'extra_javascript': [<Block Node: extra_javascript. Contents: [<TextNode: '\n'>]>, <Block Node: extra_javascript. Contents: [<TextNode: '\n\n\n'>]>]})> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
push | <Block Node: content. Contents: [<TextNode: '\n <div id="breadcrumb-'>, <URLNode view_name=''courses:home'' args=[] kwargs={} as=None>, <TextNode: '">Inicio</a></li>\n '>, <URLNode view_name=''courses:listado-etiquetas-ficha'' args=[] kwargs={'tag_slug': <FilterExpression 'tag.slug'>, 'tipo': <FilterExpression 'tipo'>} as=None>, <TextNode: '"> '>, <Variable Node: tag>, <TextNode: '</a></li>\n </o'>, <IfNode>, <TextNode: '\n </section>\n '>, <IncludeNode: template=<FilterExpression "'global/v2/paginacion.html'">>, <TextNode: '\n </section>\n '>]> |
self | <Block Node: content. Contents: [<TextNode: '\n '>]> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
self | [<TextNode: '\n <div id="breadcrumb-'>, <URLNode view_name=''courses:home'' args=[] kwargs={} as=None>, <TextNode: '">Inicio</a></li>\n '>, <URLNode view_name=''courses:listado-etiquetas-ficha'' args=[] kwargs={'tag_slug': <FilterExpression 'tag.slug'>, 'tipo': <FilterExpression 'tipo'>} as=None>, <TextNode: '"> '>, <Variable Node: tag>, <TextNode: '</a></li>\n </o'>, <IfNode>, <TextNode: '\n </section>\n '>, <IncludeNode: template=<FilterExpression "'global/v2/paginacion.html'">>, <TextNode: '\n </section>\n '>] |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fa803a6d280> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
node | <IncludeNode: template=<FilterExpression "'global/v2/paginacion.html'">> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/base.py
, line 966, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
self | <IncludeNode: template=<FilterExpression "'global/v2/paginacion.html'">> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/loader_tags.py
, line 208, in render
template = template.template
values = {
name: var.resolve(context) for name, var in self.extra_context.items()
}
if self.isolated_context:
return template.render(context.new(values))
with context.push(**values):
return template.render(context)…
@register.tag("block")
def do_block(parser, token):
"""
Define a block that can be overridden by child templates.
Variable | Value |
---|---|
cache | {('global/v2/paginacion.html',): <Template template_string=" <nav aria-label="{{...">} |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
self | <IncludeNode: template=<FilterExpression "'global/v2/paginacion.html'">> |
template | <Template template_string=" <nav aria-label="{{..."> |
template_name | ('global/v2/paginacion.html',) |
values | {'paginacion': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>} |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/base.py
, line 177, in render
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)
else:
return self._render(context)…
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
is True and an exception occurs during parsing, the exception is
annotated with contextual line information where it occurred in the
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
self | <Template template_string=" <nav aria-label="{{..."> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/test/utils.py
, line 112, in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal that can be
intercepted by the test Client.
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)…
class _TestState:
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
self | <Template template_string=" <nav aria-label="{{..."> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
self | [<TextNode: ' <nav aria-label="'>, <Variable Node: etiqueta>, <TextNode: '">\n <u'>, <IfNode>, <TextNode: '\n '>, <ForNode: for i in rango|default_if_none:paginacion.paginator.get_elided_page_range, tail_len: 3>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n\n </'>] |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7fa803a6dac0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
node | <ForNode: for i in rango|default_if_none:paginacion.paginator.get_elided_page_range, tail_len: 3> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/base.py
, line 966, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
self | <ForNode: for i in rango|default_if_none:paginacion.paginator.get_elided_page_range, tail_len: 3> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/template/defaulttags.py
, line 193, in render
else:
parentloop = {}
with context.push():
values = self.sequence.resolve(context, ignore_failures=True)
if values is None:
values = []
if not hasattr(values, "__len__"):
values = list(values)…
len_values = len(values)
if len_values < 1:
return self.nodelist_empty.render(context)
nodelist = []
if self.is_reversed:
values = reversed(values)
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'tag': <Tag: Viernes>, 'fichas': <Page 86 of 86>, 'rango': <generator object Paginator.get_elided_page_range at 0x7fa812081ba0>, 'tipo': 'recurso'}] |
parentloop | {} |
self | <ForNode: for i in rango|default_if_none:paginacion.paginator.get_elided_page_range, tail_len: 3> |
values | <generator object Paginator.get_elided_page_range at 0x7fa812081ba0> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/core/paginator.py
, line 143, in get_elided_page_range
If the page range is larger than a given size, the whole range is not
provided and a compact form is returned instead, e.g. for a paginator
with 50 pages, if page 43 were the current page, the output, with the
default arguments, would be:
1, 2, …, 40, 41, 42, 43, 44, 45, 46, …, 49, 50.
"""
number = self.validate_number(number)…
if self.num_pages <= (on_each_side + on_ends) * 2:
yield from self.page_range
return
if number > (1 + on_each_side + on_ends) + 1:
Variable | Value |
---|---|
number | '90' |
on_each_side | 3 |
on_ends | 2 |
self | <django.core.paginator.Paginator object at 0x7fa8037b5e20> |
/opt/nemmx/venv/lib/python3.8/site-packages/django/core/paginator.py
, line 54, in validate_number
raise ValueError
number = int(number)
except (TypeError, ValueError):
raise PageNotAnInteger(_("That page number is not an integer"))
if number < 1:
raise EmptyPage(_("That page number is less than 1"))
if number > self.num_pages:
raise EmptyPage(_("That page contains no results"))…
return number
def get_page(self, number):
"""
Return a valid page, even if the page argument isn't a number or isn't
in range.
Variable | Value |
---|---|
number | 90 |
self | <django.core.paginator.Paginator object at 0x7fa8037b5e20> |
AnonymousUser
Variable | Value |
---|---|
page | '90' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'nuevaescuelamexicana.sep.gob.mx' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '18.204.35.30' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REAL_IP | '18.204.35.30' |
PATH_INFO | '/tag/recurso/viernes_2' |
QUERY_STRING | '&page=90' |
RAW_URI | '/tag/recurso/viernes_2?&page=90' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'nuevaescuelamexicana.sep.gob.mx' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.1.0' |
gunicorn.socket | <socket.socket fd=8, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/run/nem.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fa803c61f10> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7fa8036fc880> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
nemmx.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
ANYMAIL | {'SENDGRID_API_KEY': '********************'} |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'accounts.User' |
AZURE_ACCOUNT_NAME | 'nemdigitalstorage' |
AZURE_BLOB_MAX_MEMORY_SIZE | 5000000000 |
AZURE_CONNECTION_STRING | 'DefaultEndpointsProtocol=https;AccountName=nemdigitalstorage;AccountKey=UQfcu/50Z3gyOQ2Z6FV/Zi1Edq3msv6nceMl6tAYBpIkA/jAPLanpK8JQWCv8ZX24w9m39Wsg0Z++AStQf4VBQ==;EndpointSuffix=core.windows.net' |
AZURE_CONNECTION_TIMEOUT_SECS | 50000 |
AZURE_CONTAINER | 'nem-main' |
AZURE_UPLOAD_MAX_CONN | 200 |
BASE_DIR | PosixPath('/opt/nemmx') |
BLOB_URL | 'https://nemdigitalstorage.blob.core.windows.net/nem-main/' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache', 'LOCATION': ['localhost:11211']}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CELERY_ACCEPT_CONTENT | ['application/json'] |
CELERY_BROKER_URL | 'amqp://nem:nem@10.0.6.4//' |
CELERY_RESULT_SERIALIZER | 'json' |
CELERY_TASK_SERIALIZER | 'json' |
COMMENT_ALLOW_MARKDOWN | True |
COMMENT_ALLOW_MODERATOR_TO_BLOCK | True |
COMMENT_FLAG_REASONS | [(1, 'Spam | Promociona servicios externos'), (2, 'Abusivo | Intenta promover el odio'), (3, 'Racista/Clasista/Sexista '), (4, 'Inapropiado '), (5, 'Otro'), (100, 'Something else')] |
COMMENT_USER_API_FIELDS | '********************' |
COMMENT_USE_GRAVATAR | True |
CORS_ALLOWED_ORIGINS | ['https://seminarios.aprende.gob.mx', 'https://crea.aprende.gob.mx', 'https://admin.nuevaescuelamexicana.sep.gob.mx', 'https://admin-nem.aprende.gob.mx', 'https://nemd.aprende.gob.mx', 'https://atencion.aprende.gob.mx', 'https://midecc.aprende.gob.mx', 'https://gis.aprende.gob.mx', 'https://nem-mx.gitlab.io', 'https://comunidades.aprende.gob.mx'] |
CORS_ALLOW_HEADERS | ['accept', 'accept-encoding', 'authorization', 'content-type', 'dnt', 'origin', 'user-agent', 'x-csrftoken', 'x-requested-with', 'cache-control'] |
CORS_ALLOW_METHODS | ['DELETE', 'GET', 'OPTIONS', 'PATCH', 'POST', 'PUT'] |
CORS_ORIGIN_ALLOW_ALL | False |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_MASKED | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '10.0.6.6', 'NAME': 'nemmx', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'nemuser'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY | 5242880000 |
DATA_UPLOAD_MAX_MEMORY_SIZE | 5242880000 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATA_UPLOAD_MAX_NUMBER_FILES | 100 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_AUTO_FIELD | 'django.db.models.BigAutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'storages.backends.azure_storage.AzureStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EDAD_MINIMA | 15 |
ELASTICSEARCH_DSL | {'default': {'hosts': '10.0.6.4:9200'}} |
EMAIL_BACKEND | 'anymail.backends.sendgrid.EmailBackend' |
EMAIL_HOST | 'smtp.googlemail.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'contacto@aprende.gob.mx' |
EMAIL_PORT | '587' |
EMAIL_SENDER | 'contacto@aprende.gob.mx' |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 5242880000 |
FILE_UPLOAD_PERMISSIONS | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIREBASE_KEY | '********************' |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
GIS_SERVER | 'http://gis.aprende.sep.gob.mx' |
HOST_ELASTIC | '10.0.6.4:9200' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['jet', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'django.contrib.sites', 'django.contrib.postgres', 'rest_framework', 'rest_framework.authtoken', 'django_filters', 'storages', 'drf_yasg', 'corsheaders', 'django_elasticsearch_dsl', 'taggit', 'django_crontab', 'debug_toolbar', 'tinymce', 'colorfield', 'bootstrap5', 'anymail', 'oauth2_provider', 'comment', 'generales.apps.GeneralesConfig', 'accounts.apps.AccountsConfig', 'courses.apps.CoursesConfig', 'reusable.apps.ReusableConfig', 'django_rest_passwordreset', 'wagtail.contrib.forms', 'wagtail.contrib.redirects', 'wagtail.embeds', 'wagtail.sites', 'wagtail.users', 'wagtail.snippets', 'wagtail.documents', 'wagtail.images', 'wagtail.search', 'wagtail.admin', 'wagtail.contrib.table_block', 'wagtail', 'modelcluster', 'nemcms', 'cac', 'nube', 'reviews', 'siteswordpress', 'comunidades', 'midecc', 'certificados', 'webpush', 'sorl.thumbnail', 'sorl_thumbnail_serializer'] |
INTERNAL_IPS | ['127.0.0.1', '0.0.0.0'] |
JET_SIDE_MENU_COMPACT | False |
JET_THEMES | [{'color': '#47bac1', 'theme': 'default', 'title': 'Default'}, {'color': '#44b78b', 'theme': 'green', 'title': 'Green'}, {'color': '#2faa60', 'theme': 'light-green', 'title': 'Light Green'}, {'color': '#a464c4', 'theme': 'light-violet', 'title': 'Light Violet'}, {'color': '#5EADDE', 'theme': 'light-blue', 'title': 'Light Blue'}, {'color': '#222', 'theme': 'light-gray', 'title': 'Light Gray'}] |
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'), ('ckb', 'Central Kurdish (Sorani)'), ('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'), ('ms', 'Malay'), ('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', 'ckb', 'fa', 'ur'] |
LANGUAGE_CODE | 'es-MX' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/login' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MAX_UPLOAD_SIZE | 5242880000 |
MEDIA_ROOT | '' |
MEDIA_URL | '/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['debug_toolbar.middleware.DebugToolbarMiddleware', 'corsheaders.middleware.CorsMiddleware', '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', 'wagtail.contrib.redirects.middleware.RedirectMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
OAUTH2_PROVIDER | {'SCOPES': {'groups': 'Acceso a los grupos', 'introspection': 'Lectura de los tokens de acceso', 'read': 'Lectura de información', 'write': 'Escritura de información'}} |
OFFICE_COOKIE | ('x-ms-gateway-slice=prod; stsservicecookie=ests; ' 'fpc=Ajlx-Jkd8YpAm_hdsQtQjn-lo3JvAQAAAPycItcOAAAA') |
OFFICE_PAYLOAD | 'client_id=%CLIENT_ID%&scope=https%3A//graph.microsoft.com/.default&grant_type=client_credentials&client_secret=%CLIENT_SECRET%' |
OFFICE_SKUID | '94763226-9b3c-4e75-a931-5c89701abe66' |
OFFICE_URL | 'https://login.microsoftonline.com/%TENANT%/oauth2/v2.0/token' |
PAGE_SIZE | 5 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PREPEND_WWW | False |
REST_FRAMEWORK | {'DATETIME_FORMAT': '%Y-%m-%dT%H:%M:%S', 'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.TokenAuthentication',), 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',)} |
REVIEW_MAX_LENGTH | 1500 |
REVIEW_RATING_CHOICES | (('1', 'Deficiente'), ('2', 'Pobre'), ('3', 'Bueno'), ('4', 'Muy Bueno'), ('5', 'Excelente')) |
ROOT_URLCONF | 'nemmx.urls' |
SECRET_KEY | '********************' |
SECRET_KEY_FALLBACKS | '********************' |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_CROSS_ORIGIN_OPENER_POLICY | 'same-origin' |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'nemmx.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 | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/opt/nemmx/static/' |
STATIC_URL | '/static/' |
STORAGES | {'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'}, 'staticfiles': {'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage'}} |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [PosixPath('/opt/nemmx/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/Mexico_City' |
TOKEN_EXPIRED_AFTER_SECONDS | '********************' |
USE_DEPRECATED_PYTZ | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WAGTAILADMIN_BASE_URL | 'https://nuevaescuelamexicana.sep.gob.mx/cms/' |
WAGTAIL_SITE_NAME | 'Nueva Escuela Mexicana' |
WEBPUSH_SETTINGS | {'VAPID_ADMIN_EMAIL': '********************', 'VAPID_PRIVATE_KEY': '********************', 'VAPID_PUBLIC_KEY': '********************'} |
WSGI_APPLICATION | 'nemmx.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
You’re seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.