Reverse for 'detail' with arguments '('',)' not found. 1 pattern(s) tried: ['sources\\/(?P<pk>[0-9]+)\\/\\Z']
Request Method: | GET |
---|---|
Request URL: | https://www.unslanted.net/article/MIT_Press_Journals,1480/ |
Django Version: | 3.2.11 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'detail' with arguments '('',)' not found. 1 pattern(s) tried: ['sources\\/(?P<pk>[0-9]+)\\/\\Z'] |
Exception Location: | /usr/local/lib/python3.6/dist-packages/django/urls/resolvers.py, line 698, in _reverse_with_prefix |
Python Executable: | /usr/local/bin/uwsgi |
Python Version: | 3.6.9 |
Python Path: | ['.', '', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages'] |
Server time: | Thu, 28 Mar 2024 07:38:27 -0400 |
In template /home/crowdnews/crowdnews/article/templates/article/latestPosts.html
, error at line 39
29 | {% endif %} |
---|---|
30 | </div> |
31 | <header class="post-title entry-header"> |
32 | <h6 class="entry-title" itemprop="name headline"> |
33 | <a |
34 | href="https://www.unslanted.net{% url 'article:detail' art.slug art.id %}" |
35 | title="{{ art.headline_text }}">{{ art.headline_text }}</a> |
36 | </h6> |
37 | </header> |
38 | <aside class="post-bottom-meta"> |
39 | <a href="https://www.unslanted.net{% url 'sources:detail' art.source.id %}">{{ art.source.source_name|truncatechars:12 }}</a> |
40 | <meta itemprop="name headline" class="entry-title" |
41 | content="{{ art.headline_text }}"> |
42 | <meta itemprop="dateModified" class="date updated" |
43 | content="{{ art.sub_timestamp }}"> |
44 | <span class="hide" itemprop="publisher" itemscope |
45 | itemtype="https://schema.org/Organization"> |
46 | <meta itemprop="name" content="Unslanted.Net: News, Unslanted"> <span |
47 | itemprop="logo" itemscope |
48 | itemtype="https://schema.org/ImageObject"> |
49 | <meta itemprop="url" |
/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py
, line 47, in inner
response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
return response
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | NoReverseMatch("Reverse for 'detail' with arguments '('',)' not found. 1 pattern(s) tried: ['sources\\\\/(?P<pk>[0-9]+)\\\\/\\\\Z']",) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f4a3275cbe0>> |
request | <WSGIRequest: GET '/article/MIT_Press_Journals,1480/'> |
/usr/local/lib/python3.6/dist-packages/django/core/handlers/base.py
, line 181, 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 asyncio.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 article_detail at 0x7f4a04ebdf28> |
callback_args | () |
callback_kwargs | {'pk': '1480', 'slug': 'MIT_Press_Journals'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f4a32712b00>> |
request | <WSGIRequest: GET '/article/MIT_Press_Journals,1480/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f4a3275cbe0> |
wrapped_callback | <function article_detail at 0x7f4a04ebdf28> |
./article/views.py
, line 300, in article_detail
if(not ini.qualVote is None):
hasQualVote = True
#t = TrackerControl()
#t.record(request)
return render(request, 'article/detail.html', {'vote':ini, 'related':related_articles, 'latest_articles': latest_articles, 'article': art, 'nextArt':nextArt, 'prevArt':prevArt, 'hasLeanVote':hasLeanVote, 'hasCredVote':hasCredVote, 'hasQualVote':hasQualVote})…
# Attached to article:delete
@login_required
def delete_article(request, pk):
#art = Article.objects.get(pk=article_id)
art = get_object_or_404(Article, pk=pk)
Variable | Value |
---|---|
art | <Article: MIT Press Journals> |
fSection | <Section: Science> |
hasCredVote | False |
hasLeanVote | False |
hasQualVote | False |
ini | None |
latest_articles | <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]> |
nextArt | <Article: Genetically engineered immune cells wipe out lupus in mice> |
pk | '1480' |
prevArt | <Article: People who read Facebook article previews think they know more than they actually do> |
related_articles | <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]> |
request | <WSGIRequest: GET '/article/MIT_Press_Journals,1480/'> |
slug | 'MIT_Press_Journals' |
/usr/local/lib/python3.6/dist-packages/django/shortcuts.py
, line 19, in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Return a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)…
return HttpResponse(content, content_type, status)
def redirect(to, *args, permanent=False, **kwargs):
"""
Return an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'article': <Article: MIT Press Journals>, 'hasCredVote': False, 'hasLeanVote': False, 'hasQualVote': False, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'vote': None} |
request | <WSGIRequest: GET '/article/MIT_Press_Journals,1480/'> |
status | None |
template_name | 'article/detail.html' |
using | None |
/usr/local/lib/python3.6/dist-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 | {'article': <Article: MIT Press Journals>, 'hasCredVote': False, 'hasLeanVote': False, 'hasQualVote': False, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'vote': None} |
request | <WSGIRequest: GET '/article/MIT_Press_Journals,1480/'> |
template | <django.template.backends.django.Template object at 0x7f4a01f16160> |
template_name | 'article/detail.html' |
using | None |
/usr/local/lib/python3.6/dist-packages/django/template/backends/django.py
, line 61, in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)…
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
request | <WSGIRequest: GET '/article/MIT_Press_Journals,1480/'> |
self | <django.template.backends.django.Template object at 0x7f4a01f16160> |
/usr/local/lib/python3.6/dist-packages/django/template/base.py
, line 170, in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)…
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
self | <django.template.base.Template object at 0x7f4a01f13320> |
/usr/local/lib/python3.6/dist-packages/django/template/base.py
, line 162, in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
self | <django.template.base.Template object at 0x7f4a01f13320> |
/usr/local/lib/python3.6/dist-packages/django/template/base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
node | <ExtendsNode: extends 'base/base.html'> |
self | [<ExtendsNode: extends 'base/base.html'>] |
/usr/local/lib/python3.6/dist-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
self | <ExtendsNode: extends 'base/base.html'> |
/usr/local/lib/python3.6/dist-packages/django/template/loader_tags.py
, line 150, in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)…
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, extra_context=None, isolated_context=False, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f4a01043630> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n\t\t\t\t'>]>, 'extrahead': <Block Node: extrahead. Contents: [<TextNode: '\n'>]>, 'pagescripts': <Block Node: pagescripts. Contents: [<TextNode: '\n\t'>]>} |
compiled_parent | <django.template.base.Template object at 0x7f4a01d18c88> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
node | <django.template.defaulttags.LoadNode object at 0x7f4a01cf7080> |
self | <ExtendsNode: extends 'base/base.html'> |
/usr/local/lib/python3.6/dist-packages/django/template/base.py
, line 162, in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
self | <django.template.base.Template object at 0x7f4a01d18c88> |
/usr/local/lib/python3.6/dist-packages/django/template/base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('\n' '\t\t\t\t<!-- End topMenu include -->\n' '\n' '\t\t\t\t<div role="main" class="">\n' '\t\t\t\t\t<div\n' '\t\t\t\t\t\tclass="post post-detail post-240 page type-page status-publish ' 'hentry"\n' '\t\t\t\t\t\tid="post-240">\n' '\t\t\t\t\t\t<div class="post-content">\n' '\t\t\t\t\n' '\t\t\t\t<!-- Begin Block Content -->\n' '\t\t\t\t') |
bits | ['', '\n' '\n' '<!doctype html>\n' '<html lang="en-US">\n' '<head>\n' '<!-- Global site tag (gtag.js) - Google Analytics -->\n' '<script async ' 'src="https://www.googletagmanager.com/gtag/js?id=UA-136023367-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-136023367-1');\n" '</script>\n' '\n' '<meta charset="UTF-8">\n' '<meta name="viewport"\n' '\tcontent="width=device-width, initial-scale=1, maximum-scale=1, ' 'user-scalable=1">\n' '<link rel="profile" href="http://gmpg.org/xfn/11">\n' '<meta http-equiv="x-dns-prefetch-control" content="on">\n' '<link rel="dns-prefetch" href="//fonts.googleapis.com" />\n' '<link rel="dns-prefetch" href="//fonts.gstatic.com" />\n' '<link rel="shortcut icon" href="', '/static/crowdnews/favicon.ico', '">\n' "<link rel='dns-prefetch' href='//s0.wp.com' />\n" "<link rel='dns-prefetch' href='//cdnjs.cloudflare.com' />\n" "<link rel='dns-prefetch' href='//fonts.googleapis.com' />\n" ' <link rel="stylesheet" id="thb-fa-css"\n' '\t' 'href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"\n' '\tmedia="all" /> \n' '<link rel="stylesheet" type="text/css" ' 'href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" ' '/>\n' '\t\n' '<link rel="stylesheet" id="thb-app-css"\n' '\thref="', '/static/crowdnews/css/app.css', '"\n' '\tmedia="all" />\n' '<link rel="stylesheet" id="thb-app-inline-css"\n' '\thref="', '/static/crowdnews/css/inline.css', '"\n' '\tmedia="all" />\n' '<style>\n' 'html,\n' 'body {\n' '\tfont-size: 16px !important;\n' '}\n' '\n' '@media (max-width: 540px) {\n' '\tbody {\n' '\t\tfont-size:18px !important;\n' '\t}\n' '\t.navbar-brand {\n' '\t\tfont-size: 18px;\n' '\t}\n' '\t.nav-link, .nav-toggler {\n' '\t\tfont-size: 14px;\n' '\t}\n' '}\n' '.block {\n' ' display: block;\n' ' width: 100%;\n' ' padding: 14px 28px;\n' ' font-size: 16px;\n' ' cursor: pointer;\n' ' text-align: center;\n' '}\n' '</style>\n' '\n' '\n', '\n' '\t<title>Discussion about MIT Press Journals</title>\n' '\t<meta property="og:title" content="MIT Press Journals">\n' '\t<meta property="twitter:title" content="MIT Press Journals">\n' '\t<meta property="og:image" ' 'content="https://www.mitpressjournals.org:443/pb%2Dassets/images/colophon.png">\n' '\t<meta property="twitter:image" ' 'content="https://www.mitpressjournals.org:443/pb%2Dassets/images/colophon.png">\n' '\n' '\t<meta property="og:description" content="Discuss at Unslanted.net: \n' '\t To submit proposals to either launch new journals or bring an existing ' 'journal to MIT Press, please contact Director for Journals and Open Access, ' 'Nick Lindsay. To submit an article please follow the submission guidelines ' 'for the appropriate journal(s).\n' '\t\n' '\n' '">\n' '\t<meta property="twitter:description" content="Discuss at Unslanted.net: \n' '\t To submit proposals to either launch new journals or bring an existing ' 'journal to MIT Press, please contact Director for Journals and Open Access, ' 'Nick Lindsay. To submit an article please follow the submission guidelines ' 'for the appropriate journal(s).\n' '\t\n' '\n' '">\n' '\t<meta name="description" content="MIT Press Journals">\n' '\t<meta name="keywords" content="unbiased unslanted news vote on news MIT ' 'Press Journals">\n' '\t<meta property="og:url" ' 'content="https://www.unslanted.net//article/MIT-Press-Journals,1480/">\n' '\t<meta property="twitter:url" ' 'content="https://www.unslanted.net//article/MIT-Press-Journals,1480/">\n' '\t<meta property="og:type" content="article">\n' '\t<meta property="twitter:type" content="article">\n' '<link rel="canonical" ' 'href="https://www.unslanted.net//article/MIT-Press-Journals,1480/" />\n' '<meta name="twitter:partner" content="unslanted">\n' '<meta name="twitter:card" content="summary">\n' '\n' '<link rel="stylesheet" type="text/css" ' … <trimmed 500688 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
node | <Block Node: content. Contents: [<TextNode: '\n\t\t\t\t'>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f4a01cf7080>, <TextNode: '\n\n<!doctype html>\n<html l'>, <django.templatetags.static.StaticNode object at 0x7f4a01cf7198>, <TextNode: '">\n<link rel=\'dns-prefetc'>, <django.templatetags.static.StaticNode object at 0x7f4a01cf71d0>, <TextNode: '"\n\tmedia="all" />\n<link r'>, <django.templatetags.static.StaticNode object at 0x7f4a01cf7278>, <TextNode: '"\n\tmedia="all" />\n<style>'>, <Block Node: extrahead. Contents: [<TextNode: '\n'>]>, <TextNode: '\n\n<link rel="stylesheet" '>, <django.templatetags.static.StaticNode object at 0x7f4a01cf74e0>, <TextNode: '"\n\ttype="text/javascript"'>, <django.templatetags.static.StaticNode object at 0x7f4a01cf7518>, <TextNode: '"\n\ttype="text/javascript"'>, <django.templatetags.static.StaticNode object at 0x7f4a01cf75f8>, <TextNode: '"\n\ttype="text/javascript"'>, <django.template.loader_tags.IncludeNode object at 0x7f4a01cf7710>, <TextNode: '\n\t\t<!-- Start Content Con'>, <django.template.loader_tags.IncludeNode object at 0x7f4a01cf7630>, <TextNode: '\n\t\t\t\t<!-- End FixedHeader'>, <TextNode: '\n\t\t\t\t'>, <TextNode: '\n\t\t\t\t'>, <TextNode: '\n\t\t\t\t'>, <TextNode: '\n\t\t\t\t'>, <TextNode: '\n\t\t\t\t\n\t\t\t\t<!-- Begin Head'>, <django.template.loader_tags.IncludeNode object at 0x7f4a01cf79b0>, <TextNode: '\n\t\t\t\t<!-- End Header incl'>, <django.template.loader_tags.IncludeNode object at 0x7f4a01cf7a20>, <TextNode: '\n\t\t\t\t<!-- End topMenu inc'>, <Block Node: content. Contents: [<TextNode: '\n\t\t\t\t'>]>, <TextNode: '\n\t\t\t\t<!-- End Block Conte'>, <django.template.loader_tags.IncludeNode object at 0x7f4a01cf7be0>, <TextNode: '\n\t\t</div> <!-- content-co'>, <django.templatetags.static.StaticNode object at 0x7f4a01cf7c18>, <TextNode: '"\n\ttype="text/javascript"'>, <django.templatetags.static.StaticNode object at 0x7f4a01cf7cc0>, <TextNode: '"\n\ttype="text/javascript"'>, <django.templatetags.static.StaticNode object at 0x7f4a01cf7668>, <TextNode: '"\n\ttype="text/javascript"'>, <django.templatetags.static.StaticNode object at 0x7f4a01cf7e48>, <TextNode: '"\n\ttype="text/javascript"'>, <django.templatetags.static.StaticNode object at 0x7f4a01cf7ef0>, <TextNode: '"\n\ttype="text/javascript"'>, <Block Node: pagescripts. Contents: [<TextNode: '\n\t'>]>, <TextNode: "\n\t<script type='text/java">] |
/usr/local/lib/python3.6/dist-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
self | <Block Node: content. Contents: [<TextNode: '\n\t\t\t\t'>]> |
/usr/local/lib/python3.6/dist-packages/django/template/loader_tags.py
, line 62, in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)…
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: '\n<div class="row">\n\t<div '>, <django.template.loader_tags.IncludeNode object at 0x7f4a00ac0748>, <TextNode: '\n\t\t\t\t\t'>, <TextNode: '\n\t\t\t\t<aside class="gap cf'>, <django.template.defaulttags.URLNode object at 0x7f4a00ac07b8>, <TextNode: '">\n\t\t\t\t\t\t\t\t<header class='>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t\t\t<a href="https:'>, <django.template.defaulttags.URLNode object at 0x7f4a00ac4320>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\tclass="single'>, <Variable Node: article.source.source_name>, <TextNode: '</a>\n\t\t\t\t\t\t\t\t\t<h1 class="'>, <Variable Node: article.headline_text>, <TextNode: '</h1>\n\t\t\t\t\t\t\t\t\t<aside cla'>, <django.template.defaulttags.URLNode object at 0x7f4a00ac4748>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\ttitle="'>, <Variable Node: article.submitter.username>, <TextNode: '" rel="author">'>, <Variable Node: article.submitter.first_name>, <TextNode: ' '>, <Variable Node: article.submitter.last_name>, <TextNode: '</a></strong>\n\t\t\t\t\t\t\t\t\t\t<'>, <Variable Node: article.sub_timestamp>, <TextNode: '" itemprop="datePublished'>, <Variable Node: article.sub_timestamp>, <TextNode: '">'>, <Variable Node: article.sub_date>, <TextNode: '</time>\n\t\t\t\t\t\t\t\t\t\t<meta i'>, <Variable Node: article.headline_text>, <TextNode: '">\n\t\t\t\t\t\t\t\t\t\t<meta itempr'>, <Variable Node: article.sub_timestamp>, <TextNode: '">\n\t\t\t\t\t\t\t\t\t\t<span class='>, <django.templatetags.static.StaticNode object at 0x7f4a00a97208>, <TextNode: '">\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t'>, <Variable Node: article.get_safe_image_url>, <TextNode: '">\n\t\t\t\t\t\t\t\t\t\t\t<meta itemp'>, <django.template.defaulttags.URLNode object at 0x7f4a00a97390>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\tcontent="htt'>, <django.template.defaulttags.URLNode object at 0x7f4a00a975f8>, <TextNode: '">\n\t\t\n\t'>, <django.template.defaulttags.URLNode object at 0x7f4a00a97898>, <TextNode: '\n\t\t\n\t\t\t\t\t\t\t\t\t</aside>\n\t\t\t'>, <Variable Node: article.get_safe_image_url>, <TextNode: '" alt="">\n\t\t\t\t\t\t\t\t</figur'>, <Variable Node: rmndr|urlencode>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\tclass="faceb'>, <Variable Node: article.headline_text|urlencode>, <TextNode: '&url=https%3A%2F%2Fww'>, <Variable Node: rmndr|urlencode>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\tclass="twitt'>, <Variable Node: rmndr>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\tclass="googl'>, <Variable Node: rmndr>, <TextNode: '&description='>, <Variable Node: article.headline_text|urlencode>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\tclass="pinte'>, <Variable Node: article.headline_text>, <TextNode: '</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</h6'>, <django.template.defaulttags.URLNode object at 0x7f4a00a8b5c0>, <TextNode: '#vote" title="'>, <Variable Node: article.headline_text>, <TextNode: '">\n\t\t<i class="fas fa-han'>, <Variable Node: article.qualVotes>, <TextNode: ' votes</a>\n\t\t</span>\n\t\t&n'>, <django.template.defaulttags.URLNode object at 0x7f4a00a8b9e8>, <TextNode: '#comments" title="'>, <Variable Node: article.headline_text>, <TextNode: '">\n\t\t'>, <django_comments.templatetags.comments.CommentCountNode object at 0x7f4a00a8bda0>, <TextNode: '\n\t\t<i class="fas fa-comme'>, <IfNode>, <TextNode: ' comments\n\t\t</a></span>\n\t'>, <Variable Node: article.getLeanText>, <TextNode: '</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</d'>, <Variable Node: article.leanForBar>, <TextNode: '"\n aria-valuemin="0" ari'>, <Variable Node: article.leanForBar>, <TextNode: '%"></div>\n</div> \n\t\t\t\t\t'>, <Variable Node: article.getQualityText>, <TextNode: '</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</d'>, <Variable Node: article.qualForBar>, <TextNode: '"\n aria-valuemin="0" ari'>, <Variable Node: article.qualForBar>, <TextNode: '%"></div>\n</div> \n\t\t\t\t\t'>, <Variable Node: article.getCredibilityText>, <TextNode: '</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</d'>, <Variable Node: article.credForBar>, <TextNode: '"\n aria-valuemin="0" ari'>, <Variable Node: article.credForBar>, <TextNode: '%"></div>\n</div> \n\t\t\t\t\t'>, <I… <trimmed 7182 bytes string> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f4a01043630> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
push | <Block Node: content. Contents: [<TextNode: '\n<div class="row">\n\t<div '>, <django.template.loader_tags.IncludeNode object at 0x7f4a00ac0748>, <TextNode: '\n\t\t\t\t\t'>, <TextNode: '\n\t\t\t\t<aside class="gap cf'>, <django.template.defaulttags.URLNode object at 0x7f4a00ac07b8>, <TextNode: '">\n\t\t\t\t\t\t\t\t<header class='>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t\t\t<a href="https:'>, <django.template.defaulttags.URLNode object at 0x7f4a00ac4320>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\tclass="single'>, <Variable Node: article.source.source_name>, <TextNode: '</a>\n\t\t\t\t\t\t\t\t\t<h1 class="'>, <Variable Node: article.headline_text>, <TextNode: '</h1>\n\t\t\t\t\t\t\t\t\t<aside cla'>, <django.template.defaulttags.URLNode object at 0x7f4a00ac4748>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\ttitle="'>, <Variable Node: article.submitter.username>, <TextNode: '" rel="author">'>, <Variable Node: article.submitter.first_name>, <TextNode: ' '>, <Variable Node: article.submitter.last_name>, <TextNode: '</a></strong>\n\t\t\t\t\t\t\t\t\t\t<'>, <Variable Node: article.sub_timestamp>, <TextNode: '" itemprop="datePublished'>, <Variable Node: article.sub_timestamp>, <TextNode: '">'>, <Variable Node: article.sub_date>, <TextNode: '</time>\n\t\t\t\t\t\t\t\t\t\t<meta i'>, <Variable Node: article.headline_text>, <TextNode: '">\n\t\t\t\t\t\t\t\t\t\t<meta itempr'>, <Variable Node: article.sub_timestamp>, <TextNode: '">\n\t\t\t\t\t\t\t\t\t\t<span class='>, <django.templatetags.static.StaticNode object at 0x7f4a00a97208>, <TextNode: '">\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t'>, <Variable Node: article.get_safe_image_url>, <TextNode: '">\n\t\t\t\t\t\t\t\t\t\t\t<meta itemp'>, <django.template.defaulttags.URLNode object at 0x7f4a00a97390>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\tcontent="htt'>, <django.template.defaulttags.URLNode object at 0x7f4a00a975f8>, <TextNode: '">\n\t\t\n\t'>, <django.template.defaulttags.URLNode object at 0x7f4a00a97898>, <TextNode: '\n\t\t\n\t\t\t\t\t\t\t\t\t</aside>\n\t\t\t'>, <Variable Node: article.get_safe_image_url>, <TextNode: '" alt="">\n\t\t\t\t\t\t\t\t</figur'>, <Variable Node: rmndr|urlencode>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\tclass="faceb'>, <Variable Node: article.headline_text|urlencode>, <TextNode: '&url=https%3A%2F%2Fww'>, <Variable Node: rmndr|urlencode>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\tclass="twitt'>, <Variable Node: rmndr>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\tclass="googl'>, <Variable Node: rmndr>, <TextNode: '&description='>, <Variable Node: article.headline_text|urlencode>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\tclass="pinte'>, <Variable Node: article.headline_text>, <TextNode: '</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</h6'>, <django.template.defaulttags.URLNode object at 0x7f4a00a8b5c0>, <TextNode: '#vote" title="'>, <Variable Node: article.headline_text>, <TextNode: '">\n\t\t<i class="fas fa-han'>, <Variable Node: article.qualVotes>, <TextNode: ' votes</a>\n\t\t</span>\n\t\t&n'>, <django.template.defaulttags.URLNode object at 0x7f4a00a8b9e8>, <TextNode: '#comments" title="'>, <Variable Node: article.headline_text>, <TextNode: '">\n\t\t'>, <django_comments.templatetags.comments.CommentCountNode object at 0x7f4a00a8bda0>, <TextNode: '\n\t\t<i class="fas fa-comme'>, <IfNode>, <TextNode: ' comments\n\t\t</a></span>\n\t'>, <Variable Node: article.getLeanText>, <TextNode: '</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</d'>, <Variable Node: article.leanForBar>, <TextNode: '"\n aria-valuemin="0" ari'>, <Variable Node: article.leanForBar>, <TextNode: '%"></div>\n</div> \n\t\t\t\t\t'>, <Variable Node: article.getQualityText>, <TextNode: '</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</d'>, <Variable Node: article.qualForBar>, <TextNode: '"\n aria-valuemin="0" ari'>, <Variable Node: article.qualForBar>, <TextNode: '%"></div>\n</div> \n\t\t\t\t\t'>, <Variable Node: article.getCredibilityText>, <TextNode: '</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</d'>, <Variable Node: article.credForBar>, <TextNode: '"\n aria-valuemin="0" ari'>, <Variable Node: article.credForBar>, <TextNode: '%"></div>\n</div> \n\t\t\t\t\t'>, <I… <trimmed 7182 bytes string> |
self | <Block Node: content. Contents: [<TextNode: '\n\t\t\t\t'>]> |
/usr/local/lib/python3.6/dist-packages/django/template/base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('\n' '\n' '\n' '\t\t\t\t\t\t\t\t\t\t</div>\n' '\t\t\t\t\t\t\t\t\t</div>\n' '\t\t\t\t\t\t\t\t</div>\n' '\t\t\t\t\t\t</div>\t\t\n' '\t\t\t\t\t\t<div class="sidebar small-12 medium-4 columns">\n' '\t\t\t\t\t\t\t<div class="sidebar_inner">\n' '\t\t\t\t\t\t\t') |
bits | ['\n' '<div class="row">\n' '\t<div class="wpb_column columns small-12 medium-12">\n' '\t\t\t\t<aside class="gap cf" style="height: 30px;"></aside>\n' '\t\t\t\t\t', '<script id="mNCC" language="javascript">\n' ' medianet_width = "728";\n' ' medianet_height = "90";\n' ' medianet_crid = "327797864";\n' ' medianet_versionId = "3111299"; \n' ' </script>\n' '<script src="//contextual.media.net/nmedianet.js?cid=8CU61V321"></script>\n', '\n\t\t\t\t\t', '\n' '\t\t\t\t<aside class="gap cf" style="height: 40px;"></aside>\n' '\t</div>\n' '</div>\n' '\n' '\t\t\t<!-- Main content here -->\n' '\t\t\t<div role="main" class="">\n' '\t\t\t\t<div id="infinite-article" data-infinite="off"\n' '\t\t\t\t\tdata-infinite-count="" class="off">\n' '\t\t\t\t\t<div class="row post-detail-row top-padding">\n' '\t\t\t\t\t\t<div class="small-12 medium-8 columns">\n' '\n' '\t\t\t\t\t\t\t<article itemscope itemtype="http://schema.org/Article"\n' '\t\t\t\t\t\t\t\tclass="post blog-post post-65 type-post status-publish ' 'format-standard has-post-thumbnail hentry "\n' '\t\t\t\t\t\t\t\tid="post-65" data-id="65"\n' '\t\t\t\t\t\t\t\tdata-url="https://www.unslanted.net', '/article/MIT-Press-Journals,1480/', '">\n' '\t\t\t\t\t\t\t\t<header class="post-title entry-header cf">\n' '\t\t\t\t\t\t\t\t', '\n' '\t\t\t\t\t\t\t\t\t<a\n' '\t\t\t\t\t\t\t\t\t\thref="https://www.unslanted.net/sections/science,7/"\n' '\t\t\t\t\t\t\t\t\t\tclass="single_category_title " ' 'title="Science">Science</a>\n' '\t\t\t\t\t\t\t\t\t\t - \n' '\t\t\t\t\t\t\t\t', '\n\t\t\t\t\t\t\t\t\t<a href="https://www.unslanted.net', '/sources/361/', '"\n\t\t\t\t\t\t\t\t\t\tclass="single_category_title">', 'mitpressjournals.org', '</a>\n\t\t\t\t\t\t\t\t\t<h1 class="entry-title" itemprop="name headline">', 'MIT Press Journals', '</h1>\n' '\t\t\t\t\t\t\t\t\t<aside class="post-bottom-meta">\n' '\t\t\t\t\t\t\t\t\t\t<strong itemprop="author" class="author vcard "><a\n' '\t\t\t\t\t\t\t\t\t\t\thref="https://www.unslanted.net', '/profiles/1/', '"\n\t\t\t\t\t\t\t\t\t\t\ttitle="', 'aurelius', '" rel="author">', 'Marcus', ' ', 'Aurelius', '</a></strong>\n' '\t\t\t\t\t\t\t\t\t\t<time class="date published time"\n' '\t\t\t\t\t\t\t\t\t\t\tdatetime="', 'March 7, 2019, 10:36 a.m.', '" itemprop="datePublished"\n\t\t\t\t\t\t\t\t\t\t\tcontent="', 'March 7, 2019, 10:36 a.m.', '">', 'March 7, 2019', '</time>\n' '\t\t\t\t\t\t\t\t\t\t<meta itemprop="name headline" class="entry-title"\n' '\t\t\t\t\t\t\t\t\t\t\tcontent="', 'MIT Press Journals', '">\n' '\t\t\t\t\t\t\t\t\t\t<meta itemprop="dateModified" class="date updated"\n' '\t\t\t\t\t\t\t\t\t\t\tcontent="', 'March 7, 2019, 10:36 a.m.', '">\n' '\t\t\t\t\t\t\t\t\t\t<span class="hide" itemprop="publisher" itemscope\n' '\t\t\t\t\t\t\t\t\t\t\titemtype="https://schema.org/Organization">\n' '\t\t\t\t\t\t\t\t\t\t\t<meta itemprop="name" content="Unslanted.Net: News, ' 'Unslanted"> <span\n' '\t\t\t\t\t\t\t\t\t\t\titemprop="logo" itemscope\n' '\t\t\t\t\t\t\t\t\t\t\titemtype="https://schema.org/ImageObject">\n' '\t\t\t\t\t\t\t\t\t\t\t\t<meta itemprop="url"\n' '\t\t\t\t\t\t\t\t\t\t\t\t\tcontent="https://www.unslanted.net', '/static/crowdnews/Logo03.png', '">\n' '\t\t\t\t\t\t\t\t\t\t</span>\n' '\t\t\t\t\t\t\t\t\t\t\t<meta itemprop="url" ' 'content="https://www.unslanted.net/">\n' '\t\t\t\t\t\t\t\t\t\t</span> <span class="hide" itemprop="image" itemscope\n' '\t\t\t\t\t\t\t\t\t\t\titemtype="http://schema.org/ImageObject">\n' '\t\t\t\t\t\t\t\t\t\t\t<meta itemprop="url"\n' '\t\t\t\t\t\t\t\t\t\t\t\tcontent="', 'https://www.mitpressjournals.org:443/pb%2Dassets/images/colophon.png', '">\n' '\t\t\t\t\t\t\t\t\t\t\t<meta itemprop="width" content="800">\n' '\t\t\t\t\t\t\t\t\t\t\t<meta itemprop="height" content="736">\n' '\t\t\t\t\t\t\t\t\t\t</span>\n' '\t\t\t\t\t\t\t\t\t\t<meta itemscope itemprop="mainEntityOfPage"\n' '\t\t\t\t\t\t\t\t\t\t\titemtype="https://schema.org/WebPage"\n' '\t\t\t\t\t\t\t\t\t\t\titemid="https://www.unslanted.net', '/article/MIT-Press-Journals,1480/', '"… <trimmed 12396 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
node | <django.template.loader_tags.IncludeNode object at 0x7f4a00aa54a8> |
self | [<TextNode: '\n<div class="row">\n\t<div '>, <django.template.loader_tags.IncludeNode object at 0x7f4a00ac0748>, <TextNode: '\n\t\t\t\t\t'>, <TextNode: '\n\t\t\t\t<aside class="gap cf'>, <django.template.defaulttags.URLNode object at 0x7f4a00ac07b8>, <TextNode: '">\n\t\t\t\t\t\t\t\t<header class='>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t\t\t<a href="https:'>, <django.template.defaulttags.URLNode object at 0x7f4a00ac4320>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\tclass="single'>, <Variable Node: article.source.source_name>, <TextNode: '</a>\n\t\t\t\t\t\t\t\t\t<h1 class="'>, <Variable Node: article.headline_text>, <TextNode: '</h1>\n\t\t\t\t\t\t\t\t\t<aside cla'>, <django.template.defaulttags.URLNode object at 0x7f4a00ac4748>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\ttitle="'>, <Variable Node: article.submitter.username>, <TextNode: '" rel="author">'>, <Variable Node: article.submitter.first_name>, <TextNode: ' '>, <Variable Node: article.submitter.last_name>, <TextNode: '</a></strong>\n\t\t\t\t\t\t\t\t\t\t<'>, <Variable Node: article.sub_timestamp>, <TextNode: '" itemprop="datePublished'>, <Variable Node: article.sub_timestamp>, <TextNode: '">'>, <Variable Node: article.sub_date>, <TextNode: '</time>\n\t\t\t\t\t\t\t\t\t\t<meta i'>, <Variable Node: article.headline_text>, <TextNode: '">\n\t\t\t\t\t\t\t\t\t\t<meta itempr'>, <Variable Node: article.sub_timestamp>, <TextNode: '">\n\t\t\t\t\t\t\t\t\t\t<span class='>, <django.templatetags.static.StaticNode object at 0x7f4a00a97208>, <TextNode: '">\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t'>, <Variable Node: article.get_safe_image_url>, <TextNode: '">\n\t\t\t\t\t\t\t\t\t\t\t<meta itemp'>, <django.template.defaulttags.URLNode object at 0x7f4a00a97390>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\tcontent="htt'>, <django.template.defaulttags.URLNode object at 0x7f4a00a975f8>, <TextNode: '">\n\t\t\n\t'>, <django.template.defaulttags.URLNode object at 0x7f4a00a97898>, <TextNode: '\n\t\t\n\t\t\t\t\t\t\t\t\t</aside>\n\t\t\t'>, <Variable Node: article.get_safe_image_url>, <TextNode: '" alt="">\n\t\t\t\t\t\t\t\t</figur'>, <Variable Node: rmndr|urlencode>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\tclass="faceb'>, <Variable Node: article.headline_text|urlencode>, <TextNode: '&url=https%3A%2F%2Fww'>, <Variable Node: rmndr|urlencode>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\tclass="twitt'>, <Variable Node: rmndr>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\tclass="googl'>, <Variable Node: rmndr>, <TextNode: '&description='>, <Variable Node: article.headline_text|urlencode>, <TextNode: '"\n\t\t\t\t\t\t\t\t\t\t\tclass="pinte'>, <Variable Node: article.headline_text>, <TextNode: '</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</h6'>, <django.template.defaulttags.URLNode object at 0x7f4a00a8b5c0>, <TextNode: '#vote" title="'>, <Variable Node: article.headline_text>, <TextNode: '">\n\t\t<i class="fas fa-han'>, <Variable Node: article.qualVotes>, <TextNode: ' votes</a>\n\t\t</span>\n\t\t&n'>, <django.template.defaulttags.URLNode object at 0x7f4a00a8b9e8>, <TextNode: '#comments" title="'>, <Variable Node: article.headline_text>, <TextNode: '">\n\t\t'>, <django_comments.templatetags.comments.CommentCountNode object at 0x7f4a00a8bda0>, <TextNode: '\n\t\t<i class="fas fa-comme'>, <IfNode>, <TextNode: ' comments\n\t\t</a></span>\n\t'>, <Variable Node: article.getLeanText>, <TextNode: '</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</d'>, <Variable Node: article.leanForBar>, <TextNode: '"\n aria-valuemin="0" ari'>, <Variable Node: article.leanForBar>, <TextNode: '%"></div>\n</div> \n\t\t\t\t\t'>, <Variable Node: article.getQualityText>, <TextNode: '</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</d'>, <Variable Node: article.qualForBar>, <TextNode: '"\n aria-valuemin="0" ari'>, <Variable Node: article.qualForBar>, <TextNode: '%"></div>\n</div> \n\t\t\t\t\t'>, <Variable Node: article.getCredibilityText>, <TextNode: '</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</d'>, <Variable Node: article.credForBar>, <TextNode: '"\n aria-valuemin="0" ari'>, <Variable Node: article.credFor… <trimmed 7306 bytes string> |
/usr/local/lib/python3.6/dist-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f4a00aa54a8> |
/usr/local/lib/python3.6/dist-packages/django/template/loader_tags.py
, line 195, in render
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 | {('article/latestPosts.html',): <django.template.base.Template object at 0x7f4a04189908>} |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f4a00aa54a8> |
template | <django.template.base.Template object at 0x7f4a04189908> |
template_name | ('article/latestPosts.html',) |
values | {} |
/usr/local/lib/python3.6/dist-packages/django/template/base.py
, line 172, 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}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
self | <django.template.base.Template object at 0x7f4a04189908> |
/usr/local/lib/python3.6/dist-packages/django/template/base.py
, line 162, in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
self | <django.template.base.Template object at 0x7f4a04189908> |
/usr/local/lib/python3.6/dist-packages/django/template/base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('\t\t\t\t\t\n' '\t\t\t\t\t\n' '\t\t\t\t\t\t\t\t\t\t\t\t<div id="thb_latestimages_widget-3"\n' '\t\t\t\t\t\t\t\t\t\t\t\t\tclass="widget cf widget_latestimages">\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>Newest News</strong>\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t<ul>\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t') |
bits | ['', '\t\t\t\t\t\n' '\t\t\t\t\t\n' '\t\t\t\t\t\t\t\t\t\t\t\t<div id="thb_latestimages_widget-3"\n' '\t\t\t\t\t\t\t\t\t\t\t\t\tclass="widget cf widget_latestimages">\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>Newest News</strong>\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t<ul>\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
node | <ForNode: for art in latest_articles, tail_len: 33> |
self | [<django.template.defaulttags.LoadNode object at 0x7f4a00ebf668>, <TextNode: '\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<'>, <ForNode: for art in latest_articles, tail_len: 33>, <TextNode: '\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t'>] |
/usr/local/lib/python3.6/dist-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
self | <ForNode: for art in latest_articles, tail_len: 33> |
/usr/local/lib/python3.6/dist-packages/django/template/defaulttags.py
, line 211, in render
unpacked_vars = dict(zip(self.loopvars, item))
pop_context = True
context.update(unpacked_vars)
else:
context[self.loopvars[0]] = item
for node in self.nodelist_loop:
nodelist.append(node.render_annotated(context))…
if pop_context:
# Pop the loop variables pushed on to the context to avoid
# the context ending up in an inconsistent state when other
# tags (e.g., include and with) push data to context.
context.pop()
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
i | 0 |
item | <Article: elizaallen> |
len_values | 5 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 5, 'revcounter0': 4} |
node | <django.template.defaulttags.URLNode object at 0x7f4a00eb1f28> |
nodelist | ['\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li itemscope ' 'itemtype="http://schema.org/Article"\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass="post listing post-243 type-post ' 'status-publish format-standard has-post-thumbnail hentry">\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<figure class="post-gallery">\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thref="https://www.unslanted.net', '/article/elizaallen,3489/', '"\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trel="bookmark"\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle="', 'elizaallen', '">\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img style = "height: 75px;"\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc="', '/static/crowdnews/placeholder.jpg', '"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-src="', '/static/crowdnews/blankImg.png', '"\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass="lazy attachment-post-thumbnail ' 'size-post-thumbnail wp-post-image"\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\talt="" />\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</figure>\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="listing-content">\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="post-category">\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t', '', '\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<header class="post-title entry-header">\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h6 class="entry-title" itemprop="name ' 'headline">\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thref="https://www.unslanted.net', '/article/elizaallen,3489/', '"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle="', 'elizaallen', '">', 'elizaallen', '</a>\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</h6>\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</header>\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<aside class="post-bottom-meta">\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href="https://www.unslanted.net'] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <ForNode: for art in latest_articles, tail_len: 33> |
unpack | False |
values | <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]> |
/usr/local/lib/python3.6/dist-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
self | <django.template.defaulttags.URLNode object at 0x7f4a00eb1f28> |
/usr/local/lib/python3.6/dist-packages/django/template/defaulttags.py
, line 446, in render
current_app = context.request.resolver_match.namespace
except AttributeError:
current_app = None
# Try to look up the URL. If it fails, raise NoReverseMatch unless the
# {% url ... as var %} construct is used, in which case return nothing.
url = ''
try:
url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)…
except NoReverseMatch:
if self.asvar is None:
raise
if self.asvar:
context[self.asvar] = url
Variable | Value |
---|---|
NoReverseMatch | <class 'django.urls.exceptions.NoReverseMatch'> |
args | [''] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'vote': None, 'related': <QuerySet [<Article: Macrolide use in pregnancy tied to higher risk of birth defects>, <Article: 'Magic mushroom' drug reduces anxiety and depression in cancer patients, study says>, <Article: In a Huge First, Physicists Have Captured Individual Atoms And Watched Them Merge >, <Article: Fast-charging, long-running, bendy energy storage breakthrough>, <Article: Time spent watching television does not replace physical activity for Finnish men – unlike for Finnish women>, <Article: The real ‘paleo diet’ may have been full of toxic metals>, <Article: Scientists Find a Mysterious 'Ghost Lineage' In the DNA of West Africans>, <Article: Health decline of Sundari trees in Sundarbans>]>, 'latest_articles': <QuerySet [<Article: elizaallen>, <Article: 10 new Covid-19 cases, CNY dinner at Safra Jurong biggest cluster; short-term visitors must now pay for treatment>, <Article: What Led to the Flint Water Crisis | Abdul El-Sayed>, <Article: Hunting of polar bears must be banned if species has any chance of survival, expert warns » Focusing on Wildlife>, <Article: Ocasio-Cortez reads entire Green New Deal into congressional record | TheHill>]>, 'article': <Article: MIT Press Journals>, 'nextArt': <Article: Genetically engineered immune cells wipe out lupus in mice>, 'prevArt': <Article: People who read Facebook article previews think they know more than they actually do>, 'hasLeanVote': False, 'hasCredVote': False, 'hasQualVote': False}] |
current_app | 'sections' |
kwargs | {} |
reverse | <function reverse at 0x7f4a359bc510> |
self | <django.template.defaulttags.URLNode object at 0x7f4a00eb1f28> |
url | '' |
view_name | 'sources:detail' |
/usr/local/lib/python3.6/dist-packages/django/urls/base.py
, line 86, in reverse
(key, ':'.join(resolved_path))
)
else:
raise NoReverseMatch("%s is not a registered namespace" % key)
if ns_pattern:
resolver = get_ns_resolver(ns_pattern, resolver, tuple(ns_converters.items()))
return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)…
reverse_lazy = lazy(reverse, str)
def clear_url_caches():
Variable | Value |
---|---|
app_list | ['sources'] |
args | [''] |
current_app | 'sections' |
current_ns | 'sections' |
current_path | None |
extra | 'sources\\/' |
kwargs | {} |
ns | 'sources' |
ns_converters | {} |
ns_pattern | 'sources\\/' |
path | ['sources'] |
prefix | '/' |
resolved_path | ['sources'] |
resolver | <URLResolver <URLResolver list> (None:None) '^/'> |
urlconf | 'crowdnews.urls' |
view | 'detail' |
viewname | 'sources:detail' |
/usr/local/lib/python3.6/dist-packages/django/urls/resolvers.py
, line 698, in _reverse_with_prefix
(lookup_view_s, arg_msg, len(patterns), patterns)
)
else:
msg = (
"Reverse for '%(view)s' not found. '%(view)s' is not "
"a valid view function or pattern name." % {'view': lookup_view_s}
)
raise NoReverseMatch(msg)…
Variable | Value |
---|---|
_prefix | '/' |
arg_msg | "arguments '('',)'" |
args | ('',) |
candidate_pat | '/sources/%(pk)s/' |
candidate_subs | {'pk': ''} |
converters | {'pk': <django.urls.converters.IntConverter object at 0x7f4a359b44a8>} |
defaults | {} |
k | 'pk' |
kwargs | {} |
lookup_view | 'detail' |
lookup_view_s | 'detail' |
m | None |
match | True |
msg | ("Reverse for 'detail' with arguments '('',)' not found. 1 pattern(s) tried: " "['sources\\\\/(?P<pk>[0-9]+)\\\\/\\\\Z']") |
n | None |
params | ['pk'] |
pattern | 'sources\\/(?P<pk>[0-9]+)\\/\\Z' |
patterns | ['sources\\/(?P<pk>[0-9]+)\\/\\Z'] |
possibilities | [([('sources/%(pk)s/', ['pk'])], 'sources\\/(?P<pk>[0-9]+)\\/\\Z', {}, {'pk': <django.urls.converters.IntConverter object at 0x7f4a359b44a8>})] |
possibility | [('sources/%(pk)s/', ['pk'])] |
result | 'sources/%(pk)s/' |
self | <URLResolver <URLResolver list> (None:None) '^/'> |
text_candidate_subs | {'pk': ''} |
v | '' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | '' |
DOCUMENT_ROOT | '/var/www/html' |
HTTPS | 'on' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'www.unslanted.net' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/article/MIT_Press_Journals,1480/' |
QUERY_STRING | '' |
REMOTE_ADDR | '3.81.30.41' |
REMOTE_PORT | '44006' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/article/MIT_Press_Journals,1480/' |
SCRIPT_NAME | '' |
SERVER_NAME | 'unslanted.net' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
uwsgi.core | 1 |
uwsgi.node | b'unslanted.net' |
uwsgi.version | b'2.0.17' |
wsgi.errors | <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | <built-in function uwsgi_sendfile> |
wsgi.input | <uwsgi._Input object at 0x7f4a00884ed0> |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
crowdnews.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_EMAIL_REQUIRED | True |
ACCOUNT_EMAIL_VERIFICATION | 'none' |
ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION | False |
ACCOUNT_UNIQUE_EMAIL | False |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('allauth.account.auth_backends.AuthenticationBackend', 'django.contrib.auth.backends.ModelBackend') |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/crowdnews/crowdnews' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
COMMENTS_APP | 'django_comments_xtd' |
COMMENTS_XTD_APP_MODEL_OPTIONS | {'article.article': {'allow_feedback': True, 'allow_flagging': True, 'show_feedback': True}, 'sections.section': {'allow_feedback': True, 'allow_flagging': True, 'show_feedback': True}, 'storylines.storyline': {'allow_feedback': True, 'allow_flagging': True, 'show_feedback': True}} |
COMMENTS_XTD_CONFIRM_EMAIL | False |
COMMENTS_XTD_CONTACT_EMAIL | 'johnny@walesdata.com' |
COMMENTS_XTD_FORM_CLASS | 'customcomments.forms.CustomCommentForm' |
COMMENTS_XTD_FROM_EMAIL | 'johnny@walesdata.com' |
COMMENTS_XTD_LIST_ORDER | ('-thread_id', 'order') |
COMMENTS_XTD_MAX_THREAD_LEVEL | 32 |
COMMENTS_XTD_MODEL | 'customcomments.models.CustomComment' |
COMMENTS_XTD_SALT | 'supercalifragilisticexpialadocious' |
CRISPY_TEMPLATE_PACK | 'bootstrap4' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': '127.0.0.1', 'NAME': 'crowdnews', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'cnewsuser'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_AUTO_FIELD | 'django.db.models.AutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'Helpdesk <johnny@walesdata.com>' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | '25' |
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 | False |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
GOOGLE_RECAPTCHA_SECRET_KEY | '********************' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['article.apps.ArticleConfig', 'sections.apps.SectionsConfig', 'sources.apps.SourcesConfig', 'profiles.apps.ProfilesConfig', 'storylines.apps.StorylinesConfig', 'webproxy.apps.WebproxyConfig', 'polls.apps.PollsConfig', 'advertisements.apps.AdvertisementsConfig', 'blog.apps.BlogConfig', 'newsbot.apps.NewsbotConfig', 'faqs.apps.FaqsConfig', 'electionator.apps.ElectionatorConfig', 'grappelli', 'crispy_forms', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django_extensions', 'django_markdown2', 'django_comments_xtd', 'django_comments', 'customcomments', 'dj_pagination', 'postman', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.facebook', 'allauth.socialaccount.providers.twitter'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/home/crowdnews/crowdnews/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
POSTMAN_AUTO_MODERATE_AS | None |
POSTMAN_DISABLE_USER_EMAILING | True |
POSTMAN_DISALLOW_ANONYMOUS | True |
POSTMAN_MAILER_APP | None |
PREPEND_WWW | False |
PROJECT_DIR | '/home/crowdnews/crowdnews/crowdnews' |
ROOT_URLCONF | 'crowdnews.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'crowdnews.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 | 5 |
SOCIALACCOUNT_PROVIDERS | {'facebook': {'AUTH_PARAMS': {'auth_type': 'reauthenticate'}, 'EXCHANGE_TOKEN': '********************', 'FIELDS': ['id', 'email', 'name', 'first_name', 'last_name', 'verified', 'updated_time'], 'LOCALE_FUNC': <function <lambda> at 0x7f4a35808d08>, 'METHOD': 'oauth2', 'SCOPE': ['email', 'public_profile', 'user_friends'], 'VERIFIED_EMAIL': False, 'VERSION': 'v2.4'}} |
SOCIAL_AUTH_FACEBOOK_KEY | '********************' |
SOCIAL_AUTH_FACEBOOK_SECRET | '********************' |
STATICFILES_DIRS | ('/home/crowdnews/crowdnews/crowdnews/templates/static/',) |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/crowdnews/crowdnews/crowdnews/static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/crowdnews/crowdnews/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', 'django.template.context_processors.request']}}] |
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/New_York' |
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 | 'crowdnews.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
YEAR_MONTH_FORMAT | 'F Y' |
You’re seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.