Reverse for 'list_page' with arguments '('',)' not found. 1 pattern(s) tried: ['list/([\\d]+)/$']
Request Method: | GET |
---|---|
Request URL: | https://magpile.com/ploc/about/ |
Django Version: | 1.11.2 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'list_page' with arguments '('',)' not found. 1 pattern(s) tried: ['list/([\\d]+)/$'] |
Exception Location: | /home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/urls/resolvers.py in _reverse_with_prefix, line 497 |
Python Executable: | /home/magpile/apps/magpile/env/bin/uwsgi |
Python Version: | 3.6.8 |
Python Path: | ['/home/magpile/apps/magpile/magpile/', '.', '', '/usr/lib64/python36.zip', '/usr/lib64/python3.6', '/usr/lib64/python3.6/lib-dynload', '/home/magpile/apps/magpile/env/lib64/python3.6/site-packages', '/home/magpile/apps/magpile/env/lib/python3.6/site-packages'] |
Server time: | Fri, 29 Mar 2024 15:39:37 +0000 |
In template /home/magpile/apps/magpile/magpile/templates/_activity_mag.html
, error at line 41
31 | {% if item.action == 13 %} |
---|---|
32 | {% if item.issue_item %} |
33 | <a href="{% url 'issue' item.issue_item.url_slug %}">{{ item.issue_item.just_date }} issue</a><br /> |
34 | {% endif %} |
35 | <strong>Bought from the <a href="{% url 'store_home' %}">Magpile Store</a> by <a href="{% url 'profile' item.user.username %}">{{ item.user }}</a></strong> |
36 | {% else %} |
37 | {% if item.action == 14 %} |
38 | {% if item.issue_item %} |
39 | <a href="{% url 'issue' item.issue_item.url_slug %}">{{ item.issue_item.just_date }} issue</a><br /> |
40 | {% endif %} |
41 | Added to <a href="{% url 'list_page' item.list_item.id %}">{{ item.list_item.name }}</a> by <a href="{% url 'profile' item.user.username %}">{{ item.user }}</a> |
42 | {% endif %} |
43 | {% endif %} |
44 | {% endif %} |
45 | {% endif %} |
46 | {% endif %} |
47 | {% endif %} |
48 | </span> |
49 | </li> |
50 | {% endfor %} |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response, assigned=available_attrs(get_response))
def inner(request):
try:
response = get_response(request)...
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | NoReverseMatch("Reverse for 'list_page' with arguments '('',)' not found. 1 pattern(s) tried: ['list/([\\\\d]+)/$']",) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f6ec9347278>> |
request | <WSGIRequest: GET '/ploc/about/'> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function magazine at 0x7f6ec7810488> |
callback_args | () |
callback_kwargs | {'page': 'about', 'slug': 'ploc'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f6ec816b198>> |
request | <WSGIRequest: GET '/ploc/about/'> |
resolver | <RegexURLResolver 'magpile.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=mags.views.magazine, args=(), kwargs={'slug': 'ploc', 'page': 'about'}, url_name=magazine, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f6ec9347278> |
wrapped_callback | <function magazine at 0x7f6ec7810488> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function magazine at 0x7f6ec7810488> |
callback_args | () |
callback_kwargs | {'page': 'about', 'slug': 'ploc'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f6ec816b198>> |
request | <WSGIRequest: GET '/ploc/about/'> |
resolver | <RegexURLResolver 'magpile.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=mags.views.magazine, args=(), kwargs={'slug': 'ploc', 'page': 'about'}, url_name=magazine, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f6ec9347278> |
wrapped_callback | <function magazine at 0x7f6ec7810488> |
/home/magpile/apps/magpile/magpile/mags/views.py
in magazine
# mags = cat.mags.all()
# for mag in mags:
# if mag != magazine: # don't include current magazine in list
# similar.append(mag)
# # shuffle
# random.shuffle(similar)
return render(request, 'magazine.html', data)...
# issue page eg: /1-monocle/
def old_issue(request, url_slug):
id = url_slug.split('-')[0]
issue = get_object_or_404(Issue, id=id)
Variable | Value |
---|---|
activity | <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]> |
data | {'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'comments_count': 0, 'insert_template': '_mag_about.html', 'issues_count': 2, 'magazine': <Magazine: PLOC>, 'others': <QuerySet []>, 'page': 'about', 'user_is_subscriber': False} |
magazine | <Magazine: PLOC> |
new_views | 4799 |
others | <QuerySet []> |
page | 'about' |
request | <WSGIRequest: GET '/ploc/about/'> |
slug | 'ploc' |
user_is_subscriber | False |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/shortcuts.py
in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Returns a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)...
return HttpResponse(content, content_type, status)
def redirect(to, *args, **kwargs):
"""
Returns an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'comments_count': 0, 'insert_template': '_mag_about.html', 'issues_count': 2, 'magazine': <Magazine: PLOC>, 'others': <QuerySet []>, 'page': 'about', 'user_is_subscriber': False} |
request | <WSGIRequest: GET '/ploc/about/'> |
status | None |
template_name | 'magazine.html' |
using | None |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/loader.py
in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)...
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'comments_count': 0, 'insert_template': '_mag_about.html', 'issues_count': 2, 'magazine': <Magazine: PLOC>, 'others': <QuerySet []>, 'page': 'about', 'user_is_subscriber': False} |
request | <WSGIRequest: GET '/ploc/about/'> |
template | <django.template.backends.django.Template object at 0x7f6eca2a9908> |
template_name | 'magazine.html' |
using | None |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/backends/django.py
in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)...
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
request | <WSGIRequest: GET '/ploc/about/'> |
self | <django.template.backends.django.Template object at 0x7f6eca2a9908> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)...
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.base.Template object at 0x7f6ec8d2d860> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.base.Template object at 0x7f6ec8d2d860> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <ExtendsNode: extends "base.html"> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/loader_tags.py
in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)...
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f6eb5f136a0> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n '>]>, 'description': <Block Node: description. Contents: [<TextNode: 'Discover mags, cover to c'>]>, 'footer': <Block Node: footer. Contents: [<TextNode: '\n <div class="cont'>, <Block Node: top_footer. Contents: [<TextNode: '\n <ul>\n '>, <django.template.defaulttags.NowNode object at 0x7f6ec53e98d0>, <TextNode: '</li>\n <li'>, <django.template.defaulttags.URLNode object at 0x7f6ec53e9ef0>, <TextNode: '" title="About Magpile">A'>, <django.template.defaulttags.URLNode object at 0x7f6ec53e96d8>, <TextNode: '" title="Magazine directo'>, <django.template.defaulttags.URLNode object at 0x7f6ec53e9f98>, <TextNode: '" title="Community">Commu'>]>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f6ec746e748>, <TextNode: '\n <ul>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec72309b0>, <TextNode: '" title="Read our Privacy'>, <django.template.defaulttags.URLNode object at 0x7f6ec7230128>, <TextNode: '" title="Read our Terms a'>]>, 'footer_scripts': <Block Node: footer_scripts. Contents: []>, 'head': <Block Node: head. Contents: []>, 'header': <Block Node: header. Contents: [<TextNode: '\n\t '>]>, 'in_body': <Block Node: in_body. Contents: []>, 'keywords': <Block Node: keywords. Contents: [<TextNode: 'magpile'>]>, 'search_input': <Block Node: search_input. Contents: [<TextNode: '<input type="text" placeh'>]>, 'section_title': <Block Node: section_title. Contents: [<TextNode: 'Magpile'>]>, 'title': <Block Node: title. Contents: []>, 'top_footer': <Block Node: top_footer. Contents: [<TextNode: '\n <ul>\n '>, <django.template.defaulttags.NowNode object at 0x7f6ec53e98d0>, <TextNode: '</li>\n <li'>, <django.template.defaulttags.URLNode object at 0x7f6ec53e9ef0>, <TextNode: '" title="About Magpile">A'>, <django.template.defaulttags.URLNode object at 0x7f6ec53e96d8>, <TextNode: '" title="Magazine directo'>, <django.template.defaulttags.URLNode object at 0x7f6ec53e9f98>, <TextNode: '" title="Community">Commu'>]>, 'topbar': <Block Node: topbar. Contents: [<TextNode: '\n\t <div id="topbar">\n\t'>, <django.template.defaulttags.URLNode object at 0x7f6ec759beb8>, <TextNode: '" id="menu_anchor">Mags</'>, <django.template.defaulttags.URLNode object at 0x7f6ec759bef0>, <TextNode: '" title="Discover magazin'>, <django.template.defaulttags.URLNode object at 0x7f6ec759be10>, <TextNode: '" title="See what the Mag'>, <Block Node: search_input. Contents: [<TextNode: '<input type="text" placeh'>]>, <TextNode: '\n \t '>, <IfNode>, <TextNode: '\n \t </ul>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6ec53e9cf8>, <TextNode: '\n\t \n\t '>, <Block Node: header. Contents: [<TextNode: '\n\t '>]>, <TextNode: '\n\t '>]>} |
compiled_parent | <django.template.base.Template object at 0x7f6ec71702e8> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <django.template.defaulttags.LoadNode object at 0x7f6eb5db85c0> |
self | <ExtendsNode: extends "base.html"> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.base.Template object at 0x7f6ec71702e8> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n \n ' |
bits | ['', '\n' '\n' '<!doctype html>\n' '<!--[if lt IE 9]><html class="ie"><![endif]-->\n' '<!--[if gte IE 9]><html><![endif]-->\n' '\n' ' <head>\n' ' \t<meta charset="utf-8"/>\n' ' \t<title>', 'PLOC magazine on ', 'Magpile', '</title>\n \t<meta name="description" content="', 'PLOC is the happy mag for little ones, exclusively illustrated by 60s French ' 'legend Alain Gree.\r\n' '\r\n' 'It contains stories (How is bread made? What animals live at the farm? ' 'Learning to count with happy birds on a wire), colouring pages, spot the ' 'difference games, mazes and activities.\r\n' '\r\n' 'PLOC Magazine is the perfect reading companion for little ones and their ' 'parents, who are looking for a high quality, safe, advertising-free & ' 'educational magazine to feed their natural curiosity.\r\n' '\r\n' 'Suitable for kids aged 8 and under.', '" />\n \t<meta name="keywords" content="', 'PLOC', ', magazine, magazines, mags, mag, online, directory, community, archive, ' 'issue, issues, publication, publications, cover, covers, copy, copies" />\n' '\t\t\n' ' <link href="', 'https://static.magpile.com/images/favicon.png', '" rel="shortcut icon" type="image/x-icon" />\n' '\t\t\n' ' <link ' "href='//fonts.googleapis.com/css?family=Rubik:400,500,700|Lato:400,700,900' " "rel='stylesheet' type='text/css'>\n" ' <link rel="stylesheet" media="all" href="', 'https://static.magpile.com/css/store-shared.css', '?', '1711726777', '" />\n <link rel="stylesheet" media="all" href="', 'https://static.magpile.com/css/style.css', '?', '1711726777', '" />\n' ' \n' " <meta name='viewport' content='width=device-width, " "maximum-scale=1.0, minimum-scale=1.0, user-scalable=no' />\n" ' <link rel="apple-touch-icon-precomposed" href="', 'https://static.magpile.com/images/icon-homescreen.png', '" /> \n\n ', '\n' ' <meta name="twitter:card" content="summary">\n' ' <meta name="twitter:site" content="@magpilecom">\n' ' <meta name="twitter:url" content="/ploc/about/">\n' ' <meta name="twitter:title" content="PLOC on Magpile">\n' ' <meta name="twitter:description" content="PLOC is the happy mag for ' 'little ones, exclusively illustrated by 60s French legend Alain Gree.\r\n' '\r\n' 'It contains stories (How is bread made? What animals live at the farm? ' 'Learning to count with happy birds on a wire), colouring pages, spot the ' 'difference games, mazes and activities.\r\n' '\r\n' 'PLOC Magazine is the perfect reading companion for little ones and their ' 'parents, who are looking for a high quality, safe, advertising-free & ' 'educational magazine to feed their natural curiosity.\r\n' '\r\n' 'Suitable for kids aged 8 and under.">\n' ' <meta name="twitter:image" ' 'content="https://media.magpile.com/covers/906/HNj7Gx49GaFGZ4qJ_200x0.jpg">\n', '\n </head>\n\n <body', '', ' data-currency="', 'GBP', '" data-country-code="', 'UK', '">\n \n ', '', '\n \n \n ', '\n' ' \n' '\t <div id="topbar">\n' '\t <div class="container">\n' ' \t <div class="logo">\n' ' \t <a href="/">Magpile</a>\n' ' \t </div>\n' ' \t \n' ' \t <div class="middle">\n' ' \t <ul class="main nav">\n' ' \t <li class="menu">\n' ' \t <a href="/" id="menu_anchor">Mags</a>\n' ' \t <div>\n' ' \t <ul>\n' ' \t <li><a href="/" title="Discover ' 'magazines">Discover</a></li>\n' ' <li><a href="/add/issue/" title="Add an ' 'issue to Magpile">Add an issue</a></li>\n' '\t <li><a href="/add/magazine/" title="Add a ' 'magazine to Magpile">Add a magazine</a></li>\n' ' \t <li><a href="/mags/recent/" title="Recent ' 'additions to the site">Recent additions</a></li>\n' ' ... <trimmed 6567 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <Block Node: content. Contents: [<TextNode: '\n '>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f6eb5db85c0>, <TextNode: '\n\n<!doctype html>\n<!--[if'>, <Block Node: title. Contents: []>, <Block Node: section_title. Contents: [<TextNode: 'Magpile'>]>, <TextNode: '</title>\n \t<meta name='>, <Block Node: description. Contents: [<TextNode: 'Discover mags, cover to c'>]>, <TextNode: '" />\n \t<meta name="key'>, <Block Node: keywords. Contents: [<TextNode: 'magpile'>]>, <TextNode: ', magazine, magazines, ma'>, <django.templatetags.static.StaticNode object at 0x7f6eb5db8198>, <TextNode: '" rel="shortcut icon" typ'>, <django.templatetags.static.StaticNode object at 0x7f6eb5db88d0>, <TextNode: '?'>, <django.template.defaulttags.NowNode object at 0x7f6eb5db8e80>, <TextNode: '" />\n <link rel="s'>, <django.templatetags.static.StaticNode object at 0x7f6eb5db8b00>, <TextNode: '?'>, <django.template.defaulttags.NowNode object at 0x7f6eb5db8828>, <TextNode: '" />\n \n <me'>, <django.templatetags.static.StaticNode object at 0x7f6eb5db8470>, <TextNode: '" /> \n\n '>, <Block Node: head. Contents: []>, <TextNode: '\n </head>\n\n <body'>, <Block Node: in_body. Contents: []>, <TextNode: ' data-currency="'>, <Variable Node: request.buying_currency>, <TextNode: '" data-country-code="'>, <Variable Node: request.shipping_country.code>, <TextNode: '">\n \n '>, <django.template.defaulttags.CommentNode object at 0x7f6eb622d400>, <TextNode: '\n \n \n '>, <IfNode>, <TextNode: '\n \n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n \n '>, <Block Node: footer. Contents: [<TextNode: '\n <div class="cont'>, <Block Node: top_footer. Contents: [<TextNode: '\n <ul>\n '>, <django.template.defaulttags.NowNode object at 0x7f6ec53e98d0>, <TextNode: '</li>\n <li'>, <django.template.defaulttags.URLNode object at 0x7f6ec53e9ef0>, <TextNode: '" title="About Magpile">A'>, <django.template.defaulttags.URLNode object at 0x7f6ec53e96d8>, <TextNode: '" title="Magazine directo'>, <django.template.defaulttags.URLNode object at 0x7f6ec53e9f98>, <TextNode: '" title="Community">Commu'>]>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f6ec746e748>, <TextNode: '\n <ul>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec72309b0>, <TextNode: '" title="Read our Privacy'>, <django.template.defaulttags.URLNode object at 0x7f6ec7230128>, <TextNode: '" title="Read our Terms a'>]>, <TextNode: '\n \n '>, <IfNode>, <TextNode: '\n \n \n '>, <django.template.defaulttags.CommentNode object at 0x7f6ec746e0f0>, <TextNode: '\n \n <script'>, <django.templatetags.static.StaticNode object at 0x7f6ec55c0a90>, <TextNode: '" type="text/javascript">'>, <django.templatetags.static.StaticNode object at 0x7f6ec7230ef0>, <TextNode: '?'>, <django.template.defaulttags.NowNode object at 0x7f6ec55c0a58>, <TextNode: '" type="text/javascript">'>, <django.templatetags.static.StaticNode object at 0x7f6ec7230dd8>, <TextNode: '?'>, <django.template.defaulttags.NowNode object at 0x7f6ec72309e8>, <TextNode: '" type="text/javascript">'>, <django.templatetags.static.StaticNode object at 0x7f6ec7230fd0>, <TextNode: '?'>, <django.template.defaulttags.NowNode object at 0x7f6ec72303c8>, <TextNode: '" type="text/javascript">'>, <django.template.defaulttags.CommentNode object at 0x7f6ec74ed080>, <TextNode: '\n\n <script type="t'>, <django.templatetags.static.StaticNode object at 0x7f6ec55c0240>, <TextNode: '?191024" id="ad_script"><'>, <Block Node: footer_scripts. Contents: []>, <TextNode: '\n \n <script'>, <IfNode>, <TextNode: '\n\n <script src="ht'>, <IfNode>, <TextNode: "\n\n <script src='ht">] |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <Block Node: content. Contents: [<TextNode: '\n '>]> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: '\n\n<div id="magazine" data'>, <Variable Node: magazine.id>, <TextNode: '">\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6ec6e46208>, <TextNode: '\n \n <div id="mag_de'>, <IfNode>, <TextNode: '\n \n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f6ec6e46588>, <TextNode: '\n \n '>, <django.template.defaulttags.URLNode object at 0x7f6ec6e46390>, <TextNode: '" class="button outline">'>, <django.template.defaulttags.URLNode object at 0x7f6ec6e46898>, <TextNode: '" class="button outline">'>, <django.template.defaulttags.URLNode object at 0x7f6ec6e467b8>, <TextNode: '"'>, <IfNode>, <TextNode: '>About</a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec763c048>, <TextNode: '"'>, <IfNode>, <TextNode: '>Issues <span class="figu'>, <Variable Node: issues_count>, <TextNode: '</span></a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec6dbd550>, <TextNode: '"'>, <IfNode>, <TextNode: '>Discussion <span class="'>, <Variable Node: comments_count>, <TextNode: '</span></a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec6dbd748>, <TextNode: '"'>, <IfNode>, <TextNode: '>\n '>, <Variable Node: magazine.copies.count>, <TextNode: '</span> <span class="mag_'>, <Variable Node: magazine.wants.count>, <TextNode: '</span> <span><i class="i'>, <Variable Node: magazine.readers.count>, <TextNode: '</span>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6ec6dbd400>, <TextNode: '\n \n </div>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6eb5f137f0>, <TextNode: '\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f6eb5f136a0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
push | <Block Node: content. Contents: [<TextNode: '\n\n<div id="magazine" data'>, <Variable Node: magazine.id>, <TextNode: '">\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6ec6e46208>, <TextNode: '\n \n <div id="mag_de'>, <IfNode>, <TextNode: '\n \n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f6ec6e46588>, <TextNode: '\n \n '>, <django.template.defaulttags.URLNode object at 0x7f6ec6e46390>, <TextNode: '" class="button outline">'>, <django.template.defaulttags.URLNode object at 0x7f6ec6e46898>, <TextNode: '" class="button outline">'>, <django.template.defaulttags.URLNode object at 0x7f6ec6e467b8>, <TextNode: '"'>, <IfNode>, <TextNode: '>About</a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec763c048>, <TextNode: '"'>, <IfNode>, <TextNode: '>Issues <span class="figu'>, <Variable Node: issues_count>, <TextNode: '</span></a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec6dbd550>, <TextNode: '"'>, <IfNode>, <TextNode: '>Discussion <span class="'>, <Variable Node: comments_count>, <TextNode: '</span></a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec6dbd748>, <TextNode: '"'>, <IfNode>, <TextNode: '>\n '>, <Variable Node: magazine.copies.count>, <TextNode: '</span> <span class="mag_'>, <Variable Node: magazine.wants.count>, <TextNode: '</span> <span><i class="i'>, <Variable Node: magazine.readers.count>, <TextNode: '</span>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6ec6dbd400>, <TextNode: '\n \n </div>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6eb5f137f0>, <TextNode: '\n'>]> |
self | <Block Node: content. Contents: [<TextNode: '\n '>]> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('</span>\n' ' </a>\n' ' </li>\n' ' </ul>\n' ' </div>\n' ' \n' ' </div>\n' ' \n' ' <div class="container" id="content">\n' ' \n' ' ') |
bits | ['\n\n<div id="magazine" data-magazine-id="', '906', '">\n\n ', '', '\n \n <div id="mag_details" class="dark">\n \n ', '', '\n \n <div class="container">\n \n ', '\n' '\n' '<div class="col_1 web_only">\n' ' <div class="cover_place">\n' ' <img ' 'src="https://media.magpile.com/covers/906/HNj7Gx49GaFGZ4qJ_400x0.jpg" ' 'class="cover" />\n' ' </div>\n' '</div>\n' '\n' '<div class="col_2">\n' ' <h1 class="title">PLOC</h1>\n' ' \n' ' <div class="intro">\n' ' <p>PLOC is the happy mag for little ones, exclusively illustrated by 60s ' 'French legend Alain Gree.</p>\n' '<p><a href="/ploc/about/" title="Read more about PLOC" ' 'class="ajax"><strong>Read more</strong></a>\n' ' </div>\n' ' \n' ' <ul class="tags">\n' ' \n' ' <li><a href="/tag/children/" title=\'Find more magazines tagged with ' '"children"\'>children</a></li>\n' ' \n' ' <li><a href="/tag/kids/" title=\'Find more magazines tagged with ' '"kids"\'>kids</a></li>\n' ' \n' ' <li><a href="/tag/stories/" title=\'Find more magazines tagged with ' '"stories"\'>stories</a></li>\n' ' \n' ' </ul>\n' ' \n' ' \n' ' \n' ' \n' '</div>\n' '\n' '<div class="col_1 last">\n' ' <ul id="info">\n' ' <li><i class="rank icon" title="Today\'s rank"></i> 2078 (<i ' 'class="icon down" title="down"></i>474)</li>\n' ' \n' ' <li><i class="frequency icon" title="Frequency"></i> Four issues a ' 'year</li>\n' ' <li><i class="category icon" title="Category"></i> <a ' 'href="/category/kids/" title="View more Kids magazines">Kids</a></li>\n' ' \n' ' <li><strong>First issue</strong> 2012</li>\n' ' \n' ' \n' ' </ul>\n' '</div>', '\n \n <div id="edit_links">\n <a href="', '/edit/magazine/906/', '" class="button outline"><i class="edit icon"></i> Edit mag</a>\n' ' <a href="', '/add/issue/906', '" class="button outline"><i class="add icon"></i> Add issue</a>\n' ' </div>\n' ' \n' ' <ul id="profile_nav">\n' ' <li><a href="', '/ploc/about/', '"', ' class="selected"', '>About</a></li>\n <li><a href="', '/ploc/', '"', '', '>Issues <span class="figure">', '2', '</span></a></li>\n <li><a href="', '/ploc/discussion/', '"', '', '>Discussion <span class="figure" id="comments_count">', '0', '</span></a></li>\n <li>\n <a href="', '/ploc/readers/', '"', '', '>\n' ' <span class="mobile_only">Readers</span>\n' ' <span class="not_mobile"><span class="mag_copies"><i ' 'class="icon collection"></i> ', '3', '</span> <span class="mag_wants"><i class="icon wishlist"></i> ', '3', '</span> <span><i class="icon people"></i> ', '2', '</span>\n' ' </a>\n' ' </li>\n' ' </ul>\n' ' </div>\n' ' \n' ' </div>\n' ' \n' ' <div class="container" id="content">\n' ' \n' ' '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <django.template.loader_tags.IncludeNode object at 0x7f6ec6dbd400> |
self | [<TextNode: '\n\n<div id="magazine" data'>, <Variable Node: magazine.id>, <TextNode: '">\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6ec6e46208>, <TextNode: '\n \n <div id="mag_de'>, <IfNode>, <TextNode: '\n \n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f6ec6e46588>, <TextNode: '\n \n '>, <django.template.defaulttags.URLNode object at 0x7f6ec6e46390>, <TextNode: '" class="button outline">'>, <django.template.defaulttags.URLNode object at 0x7f6ec6e46898>, <TextNode: '" class="button outline">'>, <django.template.defaulttags.URLNode object at 0x7f6ec6e467b8>, <TextNode: '"'>, <IfNode>, <TextNode: '>About</a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec763c048>, <TextNode: '"'>, <IfNode>, <TextNode: '>Issues <span class="figu'>, <Variable Node: issues_count>, <TextNode: '</span></a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec6dbd550>, <TextNode: '"'>, <IfNode>, <TextNode: '>Discussion <span class="'>, <Variable Node: comments_count>, <TextNode: '</span></a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec6dbd748>, <TextNode: '"'>, <IfNode>, <TextNode: '>\n '>, <Variable Node: magazine.copies.count>, <TextNode: '</span> <span class="mag_'>, <Variable Node: magazine.wants.count>, <TextNode: '</span> <span><i class="i'>, <Variable Node: magazine.readers.count>, <TextNode: '</span>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6ec6dbd400>, <TextNode: '\n \n </div>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6eb5f137f0>, <TextNode: '\n'>] |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f6ec6dbd400> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/loader_tags.py
in render
values = {
name: var.resolve(context)
for name, var in six.iteritems(self.extra_context)
}
if self.isolated_context:
return template.render(context.new(values))
with context.push(**values):
return template.render(context)...
except Exception as e:
if context.template.engine.debug:
raise
template_name = getattr(context, 'template_name', None) or 'unknown'
warnings.warn(
"Rendering {%% include '%s' %%} raised %s. In Django 2.1, "
Variable | Value |
---|---|
cache | {'_mag_about.html': <django.template.base.Template object at 0x7f6ec5609f60>} |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f6ec6dbd400> |
template | <django.template.base.Template object at 0x7f6ec5609f60> |
template_name | '_mag_about.html' |
values | {} |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)
else:
return self._render(context)...
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
is True and an exception occurs during parsing, the exception is
is annotated with contextual line information where it occurred in the
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.base.Template object at 0x7f6ec5609f60> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.base.Template object at 0x7f6ec5609f60> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('\n' ' </div>\n' ' </div>\n' ' \n' ' <div class="col_1 last">\n' ' <h3>Recent activity</h3>\n' ' \n' ' <ul id="activity">\n' ' ') |
bits | ['', '\n' '\n' '\n' ' <div class="col_4">\n' ' \n' ' <div class="col_3">\n' ' <div class="col_2">\n' ' <h3>Info</h3>\n' ' ', '\n' ' <p>PLOC is the happy mag for little ones, exclusively ' 'illustrated by 60s French legend Alain Gree.</p>\n' '\n' '<p>It contains stories (How is bread made? What animals live at the farm? ' 'Learning to count with happy birds on a wire), colouring pages, spot the ' 'difference games, mazes and activities.</p>\n' '\n' '<p>PLOC Magazine is the perfect reading companion for little ones and their ' 'parents, who are looking for a high quality, safe, advertising-free & ' 'educational magazine to feed their natural curiosity.</p>\n' '\n' '<p>Suitable for kids aged 8 and under.</p>\n' '\n' ' ', '\n' ' </div>\n' ' \n' ' <div class="col_1 last">\n' ' <h3>Contact</h3>\n' ' ', '\n' ' <p><a href="/edit/magazine/906/">Add URLs and social ' 'links</a>.</p>\n' ' ', '\n ', '', '\n' ' </div>\n' ' </div>\n' ' \n' ' <div class="col_1 last">\n' ' <h3>Recent activity</h3>\n' ' \n' ' <ul id="activity">\n' ' '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <django.template.loader_tags.IncludeNode object at 0x7f6ec76d4828> |
self | [<django.template.defaulttags.LoadNode object at 0x7f6eb7968a90>, <TextNode: '\n\n\n <div class="col_4"'>, <IfNode>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f6ec76d43c8>, <TextNode: '\n </div>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6ec76d4828>, <TextNode: '\n </ul>\n '>] |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f6ec76d4828> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/loader_tags.py
in render
values = {
name: var.resolve(context)
for name, var in six.iteritems(self.extra_context)
}
if self.isolated_context:
return template.render(context.new(values))
with context.push(**values):
return template.render(context)...
except Exception as e:
if context.template.engine.debug:
raise
template_name = getattr(context, 'template_name', None) or 'unknown'
warnings.warn(
"Rendering {%% include '%s' %%} raised %s. In Django 2.1, "
Variable | Value |
---|---|
cache | {'_activity_mag.html': <django.template.base.Template object at 0x7f6ec76d4fd0>} |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f6ec76d4828> |
template | <django.template.base.Template object at 0x7f6ec76d4fd0> |
template_name | '_activity_mag.html' |
values | {} |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)
else:
return self._render(context)...
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
is True and an exception occurs during parsing, the exception is
is annotated with contextual line information where it occurred in the
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.base.Template object at 0x7f6ec76d4fd0> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.base.Template object at 0x7f6ec76d4fd0> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n\n' |
bits | ['', '\n\n'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <For Node: for item in activity, tail_len: 5> |
self | [<django.template.defaulttags.LoadNode object at 0x7f6ec735db38>, <TextNode: '\n\n'>, <For Node: for item in activity, tail_len: 5>] |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <For Node: for item in activity, tail_len: 5> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/defaulttags.py
in render
unpacked_vars = dict(zip(self.loopvars, item))
pop_context = True
context.update(unpacked_vars)
else:
context[self.loopvars[0]] = item
for node in self.nodelist_loop:
nodelist.append(node.render_annotated(context))...
if pop_context:
# The loop variables were pushed on to the context so pop them
# off again. This is necessary because the tag lets the length
# of loopvars differ to the length of each set of items and we
# don't want to leave any vars from the previous loop on the
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
i | 7 |
item | <Activity: Activity object> |
len_values | 19 |
loop_dict | {'counter': 8, 'counter0': 7, 'first': False, 'last': False, 'parentloop': {}, 'revcounter': 12, 'revcounter0': 11} |
node | <IfNode> |
nodelist | ['\n <li>\n <span class="date">', '28 Jul, 2016', '</span> \n <span class="info">\n ', '\n' ' \n' ' <a href="/ploc/1/">#1 issue</a><br />\n' ' \n' ' Added to pile by <a href="/@kittaro51/">kittaro51</a>\n' ' ', '\n </span>\n </li>\n', '\n <li>\n <span class="date">', '28 Jul, 2016', '</span> \n <span class="info">\n ', '\n' ' \n' ' <a href="/ploc/2/">#2 issue</a><br />\n' ' \n' ' Added to pile by <a href="/@kittaro51/">kittaro51</a>\n' ' ', '\n </span>\n </li>\n', '\n <li>\n <span class="date">', '28 Jul, 2016', '</span> \n <span class="info">\n ', '\n' ' \n' ' \n' ' \n' ' <a href="/@kittaro51/">kittaro51</a> is a ' 'subscriber</a>\n' ' \n' ' \n' ' \n' ' ', '\n </span>\n </li>\n', '\n <li>\n <span class="date">', '16 Feb, 2016', '</span> \n <span class="info">\n ', '\n' ' \n' ' \n' ' \n' ' \n' ' \n' ' \n' ' Added to <a ' 'href="/list/688/">&1/2</a> by <a href="/@signekassow/">signekassow</a>\n' ' \n' ' \n' ' \n' ' \n' ' \n' ' ', '\n </span>\n </li>\n', '\n <li>\n <span class="date">', '26 Sep, 2015', '</span> \n <span class="info">\n ', '\n' ' \n' ' \n' ' \n' ' \n' ' \n' ' \n' ' Added to <a ' 'href="/list/599/">children</a> by <a ' 'href="/@ernestoalegre/">ernestoalegre</a>\n' ' \n' ' \n' ' \n' ' \n' ' \n' ' ', '\n </span>\n </li>\n', '\n <li>\n <span class="date">', '12 Nov, 2013', '</span> \n <span class="info">\n ', '\n' ' \n' ' \n' ' \n' ' \n' ' \n' ' \n' ' Added to <a ' 'href="/list/79/">Bookmarked</a> by <a ' 'href="/@wearestardust/">wearestardust</a>\n' ' \n' ' \n' ' \n' ' \n' ' \n' ' ', '\n </span>\n </li>\n', '\n <li>\n <span class="date">', '07 Nov, 2013', '</span> \n <span class="info">\n ', '\n' ' \n' ' <a href="/ploc/2/">#2 issue</a><br />\n' ' \n' ' Added to pile by <a ' 'href="/@PaulaMastrangelo/">PaulaMastrangelo</a>\n' ' ', '\n </span>\n </li>\n', '\n <li>\n <span class="date">', '27 Oct, 2013', '</span> \n <span class="info">\n '] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <For Node: for item in activity, tail_len: 5> |
unpack | False |
values | <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <IfNode> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | None |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
match | True |
nodelist | [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>] |
self | <IfNode> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n ' |
bits | ['\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <IfNode> |
self | [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>] |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <IfNode> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | None |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
match | True |
nodelist | [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>] |
self | <IfNode> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n ' |
bits | ['\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <IfNode> |
self | [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>] |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <IfNode> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | None |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
match | True |
nodelist | [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>] |
self | <IfNode> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n ' |
bits | ['\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <IfNode> |
self | [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>] |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <IfNode> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | None |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
match | True |
nodelist | [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>] |
self | <IfNode> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n ' |
bits | ['\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <IfNode> |
self | [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>] |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <IfNode> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | None |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
match | True |
nodelist | [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>] |
self | <IfNode> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n ' |
bits | ['\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <IfNode> |
self | [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>] |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <IfNode> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | (== (literal <django.template.base.FilterExpression object at 0x7f6eb6074358>) (literal <django.template.base.FilterExpression object at 0x7f6eb6074668>)) |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
match | True |
nodelist | [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f6eca219f60>, <TextNode: '">'>, <Variable Node: item.list_item.name>, <TextNode: '</a> by <a href="'>, <django.template.defaulttags.URLNode object at 0x7f6eca219128>, <TextNode: '">'>, <Variable Node: item.user>, <TextNode: '</a>\n '>] |
self | <IfNode> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n Added to <a href="' |
bits | ['\n ', '', '\n Added to <a href="'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <django.template.defaulttags.URLNode object at 0x7f6eca219f60> |
self | [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f6eca219f60>, <TextNode: '">'>, <Variable Node: item.list_item.name>, <TextNode: '</a> by <a href="'>, <django.template.defaulttags.URLNode object at 0x7f6eca219128>, <TextNode: '">'>, <Variable Node: item.user>, <TextNode: '</a>\n '>] |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.defaulttags.URLNode object at 0x7f6eca219f60> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/template/defaulttags.py
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}, {}, {}, {'magazine': <Magazine: PLOC>, 'page': 'about', 'issues_count': 2, 'comments_count': 0, 'user_is_subscriber': False, 'others': <QuerySet []>, 'activity': <QuerySet [<Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
current_app | '' |
kwargs | {} |
reverse | <function reverse at 0x7f6eca9ef620> |
self | <django.template.defaulttags.URLNode object at 0x7f6eca219f60> |
url | '' |
view_name | 'list_page' |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/urls/base.py
in reverse
(key, ':'.join(resolved_path))
)
else:
raise NoReverseMatch("%s is not a registered namespace" % key)
if ns_pattern:
resolver = get_ns_resolver(ns_pattern, resolver)
return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))...
reverse_lazy = lazy(reverse, six.text_type)
def clear_url_caches():
Variable | Value |
---|---|
args | [''] |
current_app | '' |
current_path | None |
kwargs | {} |
ns_pattern | '' |
parts | ['list_page'] |
path | [] |
prefix | '/' |
resolved_path | [] |
resolver | <RegexURLResolver 'magpile.urls' (None:None) ^/> |
urlconf | 'magpile.urls' |
view | 'list_page' |
viewname | 'list_page' |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/urls/resolvers.py
in _reverse_with_prefix
(lookup_view_s, arg_msg, len(patterns), patterns)
)
else:
msg = (
"Reverse for '%(view)s' not found. '%(view)s' is not "
"a valid view function or pattern name." % {'view': lookup_view_s}
)
raise NoReverseMatch(msg)...
class LocaleRegexURLResolver(RegexURLResolver):
"""
A URL resolver that always matches the active language code as URL prefix.
Variable | Value |
---|---|
_prefix | '/' |
arg_msg | "arguments '('',)'" |
args | ('',) |
candidate_pat | '/list/%(_0)s/' |
candidate_subs | {'_0': ''} |
defaults | {} |
kwargs | {} |
lookup_view | 'list_page' |
lookup_view_s | 'list_page' |
m | None |
msg | ("Reverse for 'list_page' with arguments '('',)' not found. 1 pattern(s) " "tried: ['list/([\\\\d]+)/$']") |
n | None |
params | ['_0'] |
pattern | 'list/([\\d]+)/$' |
patterns | ['list/([\\d]+)/$'] |
possibilities | [([('list/%(_0)s/', ['_0'])], 'list/([\\d]+)/$', {})] |
possibility | [('list/%(_0)s/', ['_0'])] |
result | 'list/%(_0)s/' |
self | <RegexURLResolver 'magpile.urls' (None:None) ^/> |
text_args | [''] |
text_kwargs | {} |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'upgrade' |
HTTP_FORWARDED_REQUEST_URI | '/ploc/about/' |
HTTP_HOST | 'magpile.com' |
HTTP_HTTPS | 'on' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '54.225.21.228' |
HTTP_X_FORWARDED_HOST | 'magpile.com' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_SERVER | 'magpile.com' |
HTTP_X_FORWARDED_SSL | 'on' |
PATH_INFO | '/ploc/about/' |
QUERY_STRING | '' |
REMOTE_ADDR | '127.0.0.1' |
REQUEST_METHOD | 'GET' |
REQUEST_URI | '/ploc/about/' |
SCRIPT_NAME | '' |
SERVER_NAME | 'opal15.opalstack.com' |
SERVER_PORT | '38691' |
SERVER_PROTOCOL | 'HTTP/1.1' |
uwsgi.core | 0 |
uwsgi.node | b'opal15.opalstack.com' |
uwsgi.version | b'2.0.19.1' |
wsgi.errors | <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <uwsgi._Input object at 0x7f6eb7c7ed08> |
wsgi.multiprocess | True |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
magpile.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_ACTIVATION_DAYS | 7 |
ADMINS | [('Dan', 'dan@magpile.com')] |
ADS_CURRENT_PRICE | 20 |
ADS_SLOTS | 2 |
AD_CURRENCY | 'USD' |
AD_DAY_PRODUCT_ID | 504231 |
AD_DAY_RATE | 4 |
AD_WEEK_PRODUCT_ID | 514355 |
AD_WEEK_RATE | 10 |
ALLOWED_HOSTS | ['.magpile.com'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('twitter_users.backends.TwitterBackend', 'social_core.backends.twitter.TwitterOAuth', 'email-auth.EmailBackend') |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_PROFILE_MODULE | 'users.UserProfile' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/magpile/apps/magpile/magpile/magpile' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': '127.0.0.1', 'NAME': 'magpile', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'magpile'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'Magpile <alerts@magpile.com>' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
DJANGO_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.humanize'] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.eu.mailgun.org' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'postmaster@alerts.magpile.com' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
FILE_CHARSET | 'utf-8' |
FILE_TYPES | ['image/jpeg', 'image/png', 'image/gif'] |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.humanize', 'mags', 'comments', 'users', 'store', 'stats', 'ads', 'paddle', 'twitter_users', 'registration', 'markdown_deux', 'social_django'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | '/login/' |
LOGOUT_REDIRECT_URL | None |
LOGOUT_URL | '/logout/' |
MAGPILE_APPS | ['mags', 'comments', 'users', 'store', 'stats', 'ads', 'paddle'] |
MANAGERS | [] |
MAX_INVITES | 10 |
MEDIA_ROOT | '/home/magpile/apps/magpile_media/' |
MEDIA_URL | 'https://media.magpile.com/' |
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', 'store.middleware.StoreMiddleware', 'middleware.SectionMiddleware', 'social_django.middleware.SocialAuthExceptionMiddleware'] |
MIDDLEWARE_CLASSES | ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PADDLE_API_AUTH_CODE | '********************' |
PADDLE_API_BASE_URL | '********************' |
PADDLE_CURRENCY | 'GBP' |
PADDLE_PLANS | {498745: {'currency': 'gbp', 'interval': 'month', 'interval_count': 1, 'name': 'Basic', 'price': 300}, 498746: {'currency': 'gbp', 'interval': 'month', 'interval_count': 1, 'name': 'Regular', 'price': 600}, 498747: {'currency': 'gbp', 'interval': 'month', 'interval_count': 1, 'name': 'Test', 'price': 0}, 499119: {'currency': 'gbp', 'interval': 'month', 'interval_count': 1, 'name': 'Plus', 'price': 900}} |
PADDLE_VENDOR_ID | 9513 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PAYPAL_APP_ID | 'APP-2YE54566B8285563W' |
PAYPAL_PASSWORD | '********************' |
PAYPAL_RECEIVER_EMAIL | 'store@magpile.com' |
PAYPAL_SIGNATURE | '********************' |
PAYPAL_USER | 'dan_api1.magpile.com' |
PREPEND_WWW | False |
ROOT_URLCONF | 'magpile.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'Magpile <alerts@magpile.com>' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | '.magpile.com' |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'magpile.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
SOCIAL_AUTH_PIPELINE | ('social_core.pipeline.social_auth.social_details', 'social_core.pipeline.social_auth.social_uid', 'social_core.pipeline.social_auth.auth_allowed', 'social_core.pipeline.social_auth.social_user', 'users.pipeline.get_username', 'social_core.pipeline.user.create_user', 'social_core.pipeline.social_auth.associate_user', 'social_core.pipeline.social_auth.load_extra_data', 'social_core.pipeline.user.user_details') |
SOCIAL_AUTH_TWITTER_KEY | '********************' |
SOCIAL_AUTH_TWITTER_SECRET | '********************' |
STATICFILES_DIRS | ('/home/magpile/apps/magpile/magpile/static',) |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/magpile/apps/magpile_static/' |
STATIC_URL | 'https://static.magpile.com/' |
STORE_COMMISSION | {'Basic': 0.15, 'Plus': 0.05, 'Regular': 0.08, 'Test': 0} |
STORE_FROM_EMAIL | 'Magpile <store@magpile.com>' |
STORE_HIDDEN_EXTRA | '76gugo287yt87yas' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/magpile/apps/magpile/magpile/magpile/../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.media', 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect']}}] |
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 | 'UTC' |
TWITTER_KEY | '********************' |
TWITTER_SECRET | '********************' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
VENDOR_APPS | ['twitter_users', 'registration', 'markdown_deux', 'social_django'] |
WSGI_APPLICATION | 'magpile.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.