Reverse for 'list_page' with arguments '('',)' not found. 1 pattern(s) tried: ['list/([\\d]+)/$']
Request Method: | GET |
---|---|
Request URL: | https://magpile.com/guestbook/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: | Tue, 19 Mar 2024 08:12:14 +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 '/guestbook/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': 'guestbook'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f6ec816b198>> |
request | <WSGIRequest: GET '/guestbook/about/'> |
resolver | <RegexURLResolver 'magpile.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=mags.views.magazine, args=(), kwargs={'slug': 'guestbook', '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': 'guestbook'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f6ec816b198>> |
request | <WSGIRequest: GET '/guestbook/about/'> |
resolver | <RegexURLResolver 'magpile.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=mags.views.magazine, args=(), kwargs={'slug': 'guestbook', '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>, <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>, <Activity: Activity object>]>, 'comments_count': 0, 'insert_template': '_mag_about.html', 'issues_count': 1, 'magazine': <Magazine: Guestbook>, 'others': <QuerySet []>, 'page': 'about', 'user_is_subscriber': False} |
magazine | <Magazine: Guestbook> |
new_views | 28580 |
others | <QuerySet []> |
page | 'about' |
request | <WSGIRequest: GET '/guestbook/about/'> |
slug | 'guestbook' |
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>, <Activity: Activity object>]>, 'comments_count': 0, 'insert_template': '_mag_about.html', 'issues_count': 1, 'magazine': <Magazine: Guestbook>, 'others': <QuerySet []>, 'page': 'about', 'user_is_subscriber': False} |
request | <WSGIRequest: GET '/guestbook/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>, <Activity: Activity object>]>, 'comments_count': 0, 'insert_template': '_mag_about.html', 'issues_count': 1, 'magazine': <Magazine: Guestbook>, 'others': <QuerySet []>, 'page': 'about', 'user_is_subscriber': False} |
request | <WSGIRequest: GET '/guestbook/about/'> |
template | <django.template.backends.django.Template object at 0x7f6ec5601668> |
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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
request | <WSGIRequest: GET '/guestbook/about/'> |
self | <django.template.backends.django.Template object at 0x7f6ec5601668> |
/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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.base.Template object at 0x7f6ec5601cf8> |
/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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.base.Template object at 0x7f6ec5601cf8> |
/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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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 0x7f6eb731f978> |
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 0x7f6eb7927b00>, <TextNode: '</li>\n <li'>, <django.template.defaulttags.URLNode object at 0x7f6eb7927ac8>, <TextNode: '" title="About Magpile">A'>, <django.template.defaulttags.URLNode object at 0x7f6eb71b7668>, <TextNode: '" title="Magazine directo'>, <django.template.defaulttags.URLNode object at 0x7f6ec55a9f98>, <TextNode: '" title="Community">Commu'>]>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f6eb6f42978>, <TextNode: '\n <ul>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec55a9fd0>, <TextNode: '" title="Read our Privacy'>, <django.template.defaulttags.URLNode object at 0x7f6eb5881048>, <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 0x7f6eb7927b00>, <TextNode: '</li>\n <li'>, <django.template.defaulttags.URLNode object at 0x7f6eb7927ac8>, <TextNode: '" title="About Magpile">A'>, <django.template.defaulttags.URLNode object at 0x7f6eb71b7668>, <TextNode: '" title="Magazine directo'>, <django.template.defaulttags.URLNode object at 0x7f6ec55a9f98>, <TextNode: '" title="Community">Commu'>]>, 'topbar': <Block Node: topbar. Contents: [<TextNode: '\n\t <div id="topbar">\n\t'>, <django.template.defaulttags.URLNode object at 0x7f6ec55ff438>, <TextNode: '" id="menu_anchor">Mags</'>, <django.template.defaulttags.URLNode object at 0x7f6ec55ff080>, <TextNode: '" title="Discover magazin'>, <django.template.defaulttags.URLNode object at 0x7f6ec55ffd30>, <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 0x7f6ec5328048>, <TextNode: '\n\t \n\t '>, <Block Node: header. Contents: [<TextNode: '\n\t '>]>, <TextNode: '\n\t '>]>} |
compiled_parent | <django.template.base.Template object at 0x7f6eb731f898> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <django.template.defaulttags.LoadNode object at 0x7f6eb6077908> |
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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.base.Template object at 0x7f6eb731f898> |
/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>', 'Guestbook magazine on ', 'Magpile', '</title>\n \t<meta name="description" content="', 'A journal about living beautifully – and sharing it.\r\n' '\r\n' 'We are thrilled to announce the first issue of our lifestyle magazine, ' 'Guestbook: a journal about living beautifully - and sharing it. Hot off the ' 'press, this launch issue is divided into three rooms: the Salon, brim-full ' 'with debate, celebration and conversation; the Gallery, a chance to quietly ' 'ponder onefinestay's exquisite portfolio; and the Snug, a peek behind ' 'the scenes of how we work and what we've been up to.', '" />\n \t<meta name="keywords" content="', 'Guestbook', ', 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', '?', '1710835934', '" />\n <link rel="stylesheet" media="all" href="', 'https://static.magpile.com/css/style.css', '?', '1710835934', '" />\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="/guestbook/about/">\n' ' <meta name="twitter:title" content="Guestbook on Magpile">\n' ' <meta name="twitter:description" content="A journal about living ' 'beautifully – and sharing it.\r\n' '\r\n' 'We are thrilled to announce the first issue of our lifestyle magazine, ' 'Guestbook: a journal about living beautifully - and sharing it. Hot off the ' 'press, this launch issue is divided into three rooms: the Salon, brim-full ' 'with debate, celebration and conversation; the Gallery, a chance to quietly ' 'ponder onefinestay's exquisite portfolio; and the Snug, a peek behind ' 'the scenes of how we work and what we've been up to.">\n' ' <meta name="twitter:image" ' 'content="https://media.magpile.com/covers/1265/BfsKD7bF28Q2coJy_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' ' <li><a href="/community/" title="See ' 'what the Magpile community is up to">Community</a></li>\n' ' ... <trimmed 6462 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <Block Node: content. Contents: [<TextNode: '\n '>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f6eb6077908>, <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 0x7f6eb6077748>, <TextNode: '" rel="shortcut icon" typ'>, <django.templatetags.static.StaticNode object at 0x7f6eb60772e8>, <TextNode: '?'>, <django.template.defaulttags.NowNode object at 0x7f6eb6077dd8>, <TextNode: '" />\n <link rel="s'>, <django.templatetags.static.StaticNode object at 0x7f6ec55dc320>, <TextNode: '?'>, <django.template.defaulttags.NowNode object at 0x7f6ec55dccf8>, <TextNode: '" />\n \n <me'>, <django.templatetags.static.StaticNode object at 0x7f6ec55dc6a0>, <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 0x7f6eca238e10>, <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 0x7f6eb7927b00>, <TextNode: '</li>\n <li'>, <django.template.defaulttags.URLNode object at 0x7f6eb7927ac8>, <TextNode: '" title="About Magpile">A'>, <django.template.defaulttags.URLNode object at 0x7f6eb71b7668>, <TextNode: '" title="Magazine directo'>, <django.template.defaulttags.URLNode object at 0x7f6ec55a9f98>, <TextNode: '" title="Community">Commu'>]>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f6eb6f42978>, <TextNode: '\n <ul>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec55a9fd0>, <TextNode: '" title="Read our Privacy'>, <django.template.defaulttags.URLNode object at 0x7f6eb5881048>, <TextNode: '" title="Read our Terms a'>]>, <TextNode: '\n \n '>, <IfNode>, <TextNode: '\n \n \n '>, <django.template.defaulttags.CommentNode object at 0x7f6ec73beba8>, <TextNode: '\n \n <script'>, <django.templatetags.static.StaticNode object at 0x7f6ec716ba90>, <TextNode: '" type="text/javascript">'>, <django.templatetags.static.StaticNode object at 0x7f6eb5881d30>, <TextNode: '?'>, <django.template.defaulttags.NowNode object at 0x7f6ec716b8d0>, <TextNode: '" type="text/javascript">'>, <django.templatetags.static.StaticNode object at 0x7f6eb5881240>, <TextNode: '?'>, <django.template.defaulttags.NowNode object at 0x7f6eb5881518>, <TextNode: '" type="text/javascript">'>, <django.templatetags.static.StaticNode object at 0x7f6eb58810f0>, <TextNode: '?'>, <django.template.defaulttags.NowNode object at 0x7f6eb58812b0>, <TextNode: '" type="text/javascript">'>, <django.template.defaulttags.CommentNode object at 0x7f6ec6ef8518>, <TextNode: '\n\n <script type="t'>, <django.templatetags.static.StaticNode object at 0x7f6ec4ebb630>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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 0x7f6eb5d89198>, <TextNode: '\n \n <div id="mag_de'>, <IfNode>, <TextNode: '\n \n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f6ec55e05f8>, <TextNode: '\n \n '>, <django.template.defaulttags.URLNode object at 0x7f6ec726f860>, <TextNode: '" class="button outline">'>, <django.template.defaulttags.URLNode object at 0x7f6ec726f2b0>, <TextNode: '" class="button outline">'>, <django.template.defaulttags.URLNode object at 0x7f6ec697b080>, <TextNode: '"'>, <IfNode>, <TextNode: '>About</a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec697bf60>, <TextNode: '"'>, <IfNode>, <TextNode: '>Issues <span class="figu'>, <Variable Node: issues_count>, <TextNode: '</span></a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6eb7905940>, <TextNode: '"'>, <IfNode>, <TextNode: '>Discussion <span class="'>, <Variable Node: comments_count>, <TextNode: '</span></a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec7164630>, <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 0x7f6eb6c33940>, <TextNode: '\n \n </div>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6eb731f9e8>, <TextNode: '\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f6eb731f978> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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 0x7f6eb5d89198>, <TextNode: '\n \n <div id="mag_de'>, <IfNode>, <TextNode: '\n \n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f6ec55e05f8>, <TextNode: '\n \n '>, <django.template.defaulttags.URLNode object at 0x7f6ec726f860>, <TextNode: '" class="button outline">'>, <django.template.defaulttags.URLNode object at 0x7f6ec726f2b0>, <TextNode: '" class="button outline">'>, <django.template.defaulttags.URLNode object at 0x7f6ec697b080>, <TextNode: '"'>, <IfNode>, <TextNode: '>About</a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec697bf60>, <TextNode: '"'>, <IfNode>, <TextNode: '>Issues <span class="figu'>, <Variable Node: issues_count>, <TextNode: '</span></a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6eb7905940>, <TextNode: '"'>, <IfNode>, <TextNode: '>Discussion <span class="'>, <Variable Node: comments_count>, <TextNode: '</span></a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec7164630>, <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 0x7f6eb6c33940>, <TextNode: '\n \n </div>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6eb731f9e8>, <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="', '1265', '">\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/1265/BfsKD7bF28Q2coJy_400x0.jpg" ' 'class="cover" />\n' ' </div>\n' '</div>\n' '\n' '<div class="col_2">\n' ' <h1 class="title">Guestbook</h1>\n' ' \n' ' <div class="intro">\n' ' <p>A journal about living beautifully – and sharing it.</p>\n' '<p><a href="/guestbook/about/" title="Read more about Guestbook" ' 'class="ajax"><strong>Read more</strong></a>\n' ' </div>\n' ' \n' ' <ul class="tags">\n' ' \n' ' <li><a href="/tag/home/" title=\'Find more magazines tagged with ' '"home"\'>home</a></li>\n' ' \n' ' <li><a href="/tag/living/" title=\'Find more magazines tagged with ' '"living"\'>living</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> 99 (<i ' 'class="icon up" title="up"></i>50)</li>\n' ' <li><i class="location icon" title="Country"></i> <a ' 'href="/country/united-kingdom/" title="See more magazines from United ' 'Kingdom">United Kingdom</a></li>\n' ' <li><i class="frequency icon" title="Frequency"></i> Four issues a ' 'year</li>\n' ' <li><i class="category icon" title="Categories"></i> <a ' 'href="/category/design/" title="View more Design magazines">Design</a>, <a ' 'href="/category/home-garden/" title="View more Home & Garden ' 'magazines">Home & Garden</a></li>\n' ' \n' ' <li><strong>First issue</strong> 2013</li>\n' ' \n' ' \n' ' </ul>\n' '</div>', '\n \n <div id="edit_links">\n <a href="', '/edit/magazine/1265/', '" class="button outline"><i class="edit icon"></i> Edit mag</a>\n' ' <a href="', '/add/issue/1265', '" class="button outline"><i class="add icon"></i> Add issue</a>\n' ' </div>\n' ' \n' ' <ul id="profile_nav">\n' ' <li><a href="', '/guestbook/about/', '"', ' class="selected"', '>About</a></li>\n <li><a href="', '/guestbook/', '"', '', '>Issues <span class="figure">', '1', '</span></a></li>\n <li><a href="', '/guestbook/discussion/', '"', '', '>Discussion <span class="figure" id="comments_count">', '0', '</span></a></li>\n <li>\n <a href="', '/guestbook/readers/', '"', '', '>\n' ' <span class="mobile_only">Readers</span>\n' ' <span class="not_mobile"><span class="mag_copies"><i ' 'class="icon collection"></i> ', '6', '</span> <span class="mag_wants"><i class="icon wishlist"></i> ', '6', '</span> <span><i class="icon people"></i> ', '6', '</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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <django.template.loader_tags.IncludeNode object at 0x7f6eb6c33940> |
self | [<TextNode: '\n\n<div id="magazine" data'>, <Variable Node: magazine.id>, <TextNode: '">\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6eb5d89198>, <TextNode: '\n \n <div id="mag_de'>, <IfNode>, <TextNode: '\n \n <div cl'>, <django.template.loader_tags.IncludeNode object at 0x7f6ec55e05f8>, <TextNode: '\n \n '>, <django.template.defaulttags.URLNode object at 0x7f6ec726f860>, <TextNode: '" class="button outline">'>, <django.template.defaulttags.URLNode object at 0x7f6ec726f2b0>, <TextNode: '" class="button outline">'>, <django.template.defaulttags.URLNode object at 0x7f6ec697b080>, <TextNode: '"'>, <IfNode>, <TextNode: '>About</a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec697bf60>, <TextNode: '"'>, <IfNode>, <TextNode: '>Issues <span class="figu'>, <Variable Node: issues_count>, <TextNode: '</span></a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6eb7905940>, <TextNode: '"'>, <IfNode>, <TextNode: '>Discussion <span class="'>, <Variable Node: comments_count>, <TextNode: '</span></a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec7164630>, <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 0x7f6eb6c33940>, <TextNode: '\n \n </div>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6eb731f9e8>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f6eb6c33940> |
/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 0x7f6eca275128>} |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f6eb6c33940> |
template | <django.template.base.Template object at 0x7f6eca275128> |
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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.base.Template object at 0x7f6eca275128> |
/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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.base.Template object at 0x7f6eca275128> |
/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>A journal about living beautifully – and sharing it.</p>\n' '\n' '<p>We are thrilled to announce the first issue of our lifestyle magazine, ' 'Guestbook: a journal about living beautifully - and sharing it. Hot off the ' 'press, this launch issue is divided into three rooms: the Salon, brim-full ' 'with debate, celebration and conversation; the Gallery, a chance to quietly ' "ponder onefinestay's exquisite portfolio; and the Snug, a peek behind the " "scenes of how we work and what we've been up to.</p>\n" '\n' ' ', '\n' ' </div>\n' ' \n' ' <div class="col_1 last">\n' ' <h3>Contact</h3>\n' ' ', '\n' ' <ul id="links">\n' ' <li class="website"><a ' 'href="http://www.onefinestay.com/guestbook/" title="Guestbook\'s website" ' 'target="_blank">http://www.onefinestay.com/guestbook/</a></li>\n' ' \n' ' \n' ' \n' ' </ul>\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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <django.template.loader_tags.IncludeNode object at 0x7f6ec55fe9e8> |
self | [<django.template.defaulttags.LoadNode object at 0x7f6ec55fe668>, <TextNode: '\n\n\n <div class="col_4"'>, <IfNode>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f6ec4e9d0b8>, <TextNode: '\n </div>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6ec55fe9e8>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f6ec55fe9e8> |
/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 0x7f6ec55fed68>} |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f6ec55fe9e8> |
template | <django.template.base.Template object at 0x7f6ec55fed68> |
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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.base.Template object at 0x7f6ec55fed68> |
/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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.base.Template object at 0x7f6ec55fed68> |
/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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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 0x7f6eb6479358>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
i | 6 |
item | <Activity: Activity object> |
len_values | 20 |
loop_dict | {'counter': 7, 'counter0': 6, 'first': False, 'last': False, 'parentloop': {}, 'revcounter': 14, 'revcounter0': 13} |
node | <IfNode> |
nodelist | ['\n <li>\n <span class="date">', '29 Mar, 2019', '</span> \n <span class="info">\n ', '\n' ' \n' ' <a href="/guestbook/spring-13/">Spring 2013 issue</a><br />\n' ' \n' ' Added to pile by <a href="/@riotgirl13/">riotgirl13</a>\n' ' ', '\n </span>\n </li>\n', '\n <li>\n <span class="date">', '09 Jan, 2016', '</span> \n <span class="info">\n ', '\n' ' \n' ' \n' ' \n' ' \n' ' \n' ' \n' ' Added to <a href="/list/650/">Travel ' 'Lifestyle</a> by <a href="/@felixr/">felixr</a>\n' ' \n' ' \n' ' \n' ' \n' ' \n' ' ', '\n </span>\n </li>\n', '\n <li>\n <span class="date">', '25 Nov, 2014', '</span> \n <span class="info">\n ', '\n' ' \n' ' <a href="/guestbook/spring-13/">Spring 2013 issue</a><br />\n' ' \n' ' Wanted by <a href="/@rmpenguino/">rmpenguino</a>\n' ' ', '\n </span>\n </li>\n', '\n <li>\n <span class="date">', '04 Dec, 2013', '</span> \n <span class="info">\n ', '\n' ' \n' ' <a href="/guestbook/spring-13/">Spring 2013 issue</a><br />\n' ' \n' ' Moved from wishlist to pile by <a href="/@hailey/">hailey</a>\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/78/">Wishlist</a> by <a ' 'href="/@wearestardust/">wearestardust</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">', '28 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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <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 0x7f6ec6ee2e10>) (literal <django.template.base.FilterExpression object at 0x7f6ec6ee2fd0>)) |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'magazine': <Magazine: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
match | True |
nodelist | [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f6eb6fe3be0>, <TextNode: '">'>, <Variable Node: item.list_item.name>, <TextNode: '</a> by <a href="'>, <django.template.defaulttags.URLNode object at 0x7f6eb6fe3d30>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
node | <django.template.defaulttags.URLNode object at 0x7f6eb6fe3be0> |
self | [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f6eb6fe3be0>, <TextNode: '">'>, <Variable Node: item.list_item.name>, <TextNode: '</a> by <a href="'>, <django.template.defaulttags.URLNode object at 0x7f6eb6fe3d30>, <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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
self | <django.template.defaulttags.URLNode object at 0x7f6eb6fe3be0> |
/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: Guestbook>, 'page': 'about', 'issues_count': 1, '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>, <Activity: Activity object>]>, 'insert_template': '_mag_about.html'}] |
current_app | '' |
kwargs | {} |
reverse | <function reverse at 0x7f6eca9ef620> |
self | <django.template.defaulttags.URLNode object at 0x7f6eb6fe3be0> |
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 | '/guestbook/about/' |
HTTP_HOST | 'magpile.com' |
HTTP_HTTPS | 'on' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '44.204.164.147' |
HTTP_X_FORWARDED_HOST | 'magpile.com' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_SERVER | 'magpile.com' |
HTTP_X_FORWARDED_SSL | 'on' |
PATH_INFO | '/guestbook/about/' |
QUERY_STRING | '' |
REMOTE_ADDR | '127.0.0.1' |
REQUEST_METHOD | 'GET' |
REQUEST_URI | '/guestbook/about/' |
SCRIPT_NAME | '' |
SERVER_NAME | 'opal15.opalstack.com' |
SERVER_PORT | '38691' |
SERVER_PROTOCOL | 'HTTP/1.1' |
uwsgi.core | 1 |
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 0x7f6ec7618ed0> |
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.