Reverse for 'magazine' with arguments '('',)' not found. 2 pattern(s) tried: ['(?P<slug>.+)/$', '(?P<slug>[-\\w\\d]+)/(?P<page>about|issues|discussion|readers)/$']
Request Method: | GET |
---|---|
Request URL: | https://magpile.com/list/914/ |
Django Version: | 1.11.2 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'magazine' with arguments '('',)' not found. 2 pattern(s) tried: ['(?P<slug>.+)/$', '(?P<slug>[-\\w\\d]+)/(?P<page>about|issues|discussion|readers)/$'] |
Exception Location: | /home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/urls/resolvers.py in _reverse_with_prefix, line 497 |
Python Executable: | /home/magpile/apps/magpile/env/bin/uwsgi |
Python Version: | 3.6.8 |
Python Path: | ['/home/magpile/apps/magpile/magpile/', '.', '', '/usr/lib64/python36.zip', '/usr/lib64/python3.6', '/usr/lib64/python3.6/lib-dynload', '/home/magpile/apps/magpile/env/lib64/python3.6/site-packages', '/home/magpile/apps/magpile/env/lib/python3.6/site-packages'] |
Server time: | Fri, 29 Mar 2024 02:33:53 +0000 |
In template /home/magpile/apps/magpile/magpile/templates/_issue.html
, error at line 7
1 | |
---|---|
2 | {% load thumbnail %} |
3 | <li class="{% if small %}small{% endif %}{% if show_digital and copy.is_digital or issue.magazine.is_digital_only or magazine.is_digital_only %} digital{% endif %}{% if show_stats and issue.copy %} in_pile{% endif %}" rel="{{ issue.id }}"> |
4 | |
5 | {% if mags %} |
6 | |
7 | <a href="{% url 'magazine' magazine.url_slug %}" title="{{ magazine }}{% if magazine.is_digital_only %} (digital){% endif %}" class="cover_container"> |
8 | <div class="cover_place"> |
9 | <img {% if lazy %}src="{{ MEDIA_URL }}covers/default.jpg" data-original="{{ magazine.latest_cover|thumbnail:"400x0" }}"{% else %}src="{{ magazine.latest_cover|thumbnail:"400x0" }}"{% endif %} width="200" data-height="{% if not small %}{{ magazine.latest_cover_object.height_twohundred }}{% else %}{{ magazine.latest_cover_object.height_eightyfive }}{% endif %}" class="cover{% if lazy %} lazy{% endif %}{% if magazine.latest_cover_object and magazine.latest_cover_object.is_inappropriate and not request.user.userprofile.show_inappropriate_covers %} inappropriate{% endif %}" /> |
10 | </div> |
11 | <div class="no_overflow"> |
12 | <h3>{{ magazine.name }}</h3> |
13 | {% if not no_country %} |
14 | <span class="db">{% if magazine.country %}{{ magazine.get_country_display }}{% endif %}</span> |
15 | {% endif %} |
16 | </div> |
17 | {% if request.user.is_authenticated and is_current_user and subscriptions %} |
/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 'magazine' with arguments '('',)' not found. 2 pattern(s) tried: ['(?P<slug>.+)/$', '(?P<slug>[-\\\\w\\\\d]+)/(?P<page>about|issues|discussion|readers)/$']",) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f6ec9347278>> |
request | <WSGIRequest: GET '/list/914/'> |
/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 list_page at 0x7f6ec7810620> |
callback_args | ('914',) |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f6ec816b198>> |
request | <WSGIRequest: GET '/list/914/'> |
resolver | <RegexURLResolver 'magpile.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=mags.views.list_page, args=('914',), kwargs={}, url_name=list_page, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f6ec9347278> |
wrapped_callback | <function list_page at 0x7f6ec7810620> |
/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 list_page at 0x7f6ec7810620> |
callback_args | ('914',) |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f6ec816b198>> |
request | <WSGIRequest: GET '/list/914/'> |
resolver | <RegexURLResolver 'magpile.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=mags.views.list_page, args=('914',), kwargs={}, url_name=list_page, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f6ec9347278> |
wrapped_callback | <function list_page at 0x7f6ec7810620> |
/home/magpile/apps/magpile/magpile/mags/views.py
in list_page
pass
data = {
'list': list,
'items': items
}
return render(request, 'list.html', data)...
# tag/country page
def listing(request, type, string):
today = datetime.datetime.now()
Variable | Value |
---|---|
data | {'items': <QuerySet [<ItemInList: ItemInList object>]>, 'list': <List: List object>} |
id | '914' |
items | <QuerySet [<ItemInList: ItemInList object>]> |
list | <List: List object> |
request | <WSGIRequest: GET '/list/914/'> |
/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 | {'items': <QuerySet [<ItemInList: ItemInList object>]>, 'list': <List: List object>} |
request | <WSGIRequest: GET '/list/914/'> |
status | None |
template_name | 'list.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 | {'items': <QuerySet [<ItemInList: ItemInList object>]>, 'list': <List: List object>} |
request | <WSGIRequest: GET '/list/914/'> |
template | <django.template.backends.django.Template object at 0x7f6eca27e400> |
template_name | 'list.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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
request | <WSGIRequest: GET '/list/914/'> |
self | <django.template.backends.django.Template object at 0x7f6eca27e400> |
/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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
self | <django.template.base.Template object at 0x7f6ec55de978> |
/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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
self | <django.template.base.Template object at 0x7f6ec55de978> |
/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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
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 0x7f6eb62cfba8> |
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 0x7f6eb79395f8>, <TextNode: '</li>\n <li'>, <django.template.defaulttags.URLNode object at 0x7f6ec70b3400>, <TextNode: '" title="About Magpile">A'>, <django.template.defaulttags.URLNode object at 0x7f6ec70b3b38>, <TextNode: '" title="Magazine directo'>, <django.template.defaulttags.URLNode object at 0x7f6ec70b3240>, <TextNode: '" title="Community">Commu'>]>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f6ec7108a90>, <TextNode: '\n <ul>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec70b37b8>, <TextNode: '" title="Read our Privacy'>, <django.template.defaulttags.URLNode object at 0x7f6ec70b34a8>, <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 0x7f6eb79395f8>, <TextNode: '</li>\n <li'>, <django.template.defaulttags.URLNode object at 0x7f6ec70b3400>, <TextNode: '" title="About Magpile">A'>, <django.template.defaulttags.URLNode object at 0x7f6ec70b3b38>, <TextNode: '" title="Magazine directo'>, <django.template.defaulttags.URLNode object at 0x7f6ec70b3240>, <TextNode: '" title="Community">Commu'>]>, 'topbar': <Block Node: topbar. Contents: [<TextNode: '\n\t <div id="topbar">\n\t'>, <django.template.defaulttags.URLNode object at 0x7f6ec74beef0>, <TextNode: '" id="menu_anchor">Mags</'>, <django.template.defaulttags.URLNode object at 0x7f6ec74be4e0>, <TextNode: '" title="Discover magazin'>, <django.template.defaulttags.URLNode object at 0x7f6ec74bea90>, <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 0x7f6eb6bc9908>, <TextNode: '\n\t \n\t '>, <Block Node: header. Contents: [<TextNode: '\n\t '>]>, <TextNode: '\n\t '>]>} |
compiled_parent | <django.template.base.Template object at 0x7f6eb62cff28> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
node | <django.template.defaulttags.LoadNode object at 0x7f6ec74bee48> |
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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
self | <django.template.base.Template object at 0x7f6eb62cff28> |
/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>', '“Physiotherapy Home Visit” by MedicalHomeVisit - ', 'Magpile', '</title>\n \t<meta name="description" content="', 'A list of magazines curated by MedicalHomeVisit', '" />\n \t<meta name="keywords" content="', 'magpile', ', 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', '?', '1711679633', '" />\n <link rel="stylesheet" media="all" href="', 'https://static.magpile.com/css/style.css', '?', '1711679633', '" />\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 </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' ' </ul>\n' ' \t </div>\n' ' \t </li>\n' ' <li><a href="/promote/" target="_blank" ' 'title="Promote your magazine across Magpile!">Promote</a></li>\n' ' \t <li class="search">\n' ' \t <a href="#" id="search_anchor"><i ' 'class="icon"></i></a>\n' ' \t <div>\n' ' \t <div class="column">\n' ' \t <input type="text" placeholder="Search ' 'magazines, tags or users" name="q" id="mag_search" accesskey="s" ' 'autocomplete="off" />\n' ' \t </div>\n' ' \t </div>\n' ' \t </li>\n' ' \t </ul>\n' ' \t </div>\n' ' \t \n' ' \t <div class="right">\n' ' \t <ul class="user nav">\n' ' \t \n' ' \t <li id="login"><a href="/signup/" ' 'class="web_only">Sign up</a><span class="web_only">•</span><a ' 'href="/login/" data-modal="login">Log in</a></li>\n' ' \t \n' ' \t </ul>\n' ' \t</div>\n' ' \t </div>\n' ' \t \n' ' \t <!--[if lt IE 9]>\n' ' \t <div id="alert" class="not_mobile">\n' ' \t <p>Your browser is old an... <trimmed 5083 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
node | <Block Node: content. Contents: [<TextNode: '\n '>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f6ec74bee48>, <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 0x7f6ec74be1d0>, <TextNode: '" rel="shortcut icon" typ'>, <django.templatetags.static.StaticNode object at 0x7f6ec74be6a0>, <TextNode: '?'>, <django.template.defaulttags.NowNode object at 0x7f6ec74bebe0>, <TextNode: '" />\n <link rel="s'>, <django.templatetags.static.StaticNode object at 0x7f6ec74be978>, <TextNode: '?'>, <django.template.defaulttags.NowNode object at 0x7f6ec74be9e8>, <TextNode: '" />\n \n <me'>, <django.templatetags.static.StaticNode object at 0x7f6ec74be278>, <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 0x7f6ec73be9b0>, <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 0x7f6eb79395f8>, <TextNode: '</li>\n <li'>, <django.template.defaulttags.URLNode object at 0x7f6ec70b3400>, <TextNode: '" title="About Magpile">A'>, <django.template.defaulttags.URLNode object at 0x7f6ec70b3b38>, <TextNode: '" title="Magazine directo'>, <django.template.defaulttags.URLNode object at 0x7f6ec70b3240>, <TextNode: '" title="Community">Commu'>]>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f6ec7108a90>, <TextNode: '\n <ul>\n '>, <django.template.defaulttags.URLNode object at 0x7f6ec70b37b8>, <TextNode: '" title="Read our Privacy'>, <django.template.defaulttags.URLNode object at 0x7f6ec70b34a8>, <TextNode: '" title="Read our Terms a'>]>, <TextNode: '\n \n '>, <IfNode>, <TextNode: '\n \n \n '>, <django.template.defaulttags.CommentNode object at 0x7f6ec74e0278>, <TextNode: '\n \n <script'>, <django.templatetags.static.StaticNode object at 0x7f6ec4888908>, <TextNode: '" type="text/javascript">'>, <django.templatetags.static.StaticNode object at 0x7f6eb6462e48>, <TextNode: '?'>, <django.template.defaulttags.NowNode object at 0x7f6ec7108438>, <TextNode: '" type="text/javascript">'>, <django.templatetags.static.StaticNode object at 0x7f6eb6462780>, <TextNode: '?'>, <django.template.defaulttags.NowNode object at 0x7f6eb6462c88>, <TextNode: '" type="text/javascript">'>, <django.templatetags.static.StaticNode object at 0x7f6eb6462828>, <TextNode: '?'>, <django.template.defaulttags.NowNode object at 0x7f6eb6462550>, <TextNode: '" type="text/javascript">'>, <django.template.defaulttags.CommentNode object at 0x7f6ec74e0c18>, <TextNode: '\n\n <script type="t'>, <django.templatetags.static.StaticNode object at 0x7f6ec74e0710>, <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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
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="list_page" cla'>, <Variable Node: list.name>, <TextNode: '</h1>\n <h2>Curated'>, <django.template.defaulttags.URLNode object at 0x7f6ec7119828>, <TextNode: '"><img src="'>, <Variable Node: list.user.userprofile.avatar|thumbnail:"30x30">, <TextNode: '" width="20" height="20" '>, <Variable Node: list.user>, <TextNode: '</a></h2>\n \n '>, <Variable Node: list.last_updated|ago:"ago">, <TextNode: '</p>\n </div>\n\n <div'>, <For Node: for item in items, tail_len: 3>, <TextNode: '\n </ul>\n \n '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f6eb62cfba8> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
push | <Block Node: content. Contents: [<TextNode: '\n\n<div id="list_page" cla'>, <Variable Node: list.name>, <TextNode: '</h1>\n <h2>Curated'>, <django.template.defaulttags.URLNode object at 0x7f6ec7119828>, <TextNode: '"><img src="'>, <Variable Node: list.user.userprofile.avatar|thumbnail:"30x30">, <TextNode: '" width="20" height="20" '>, <Variable Node: list.user>, <TextNode: '</a></h2>\n \n '>, <Variable Node: list.last_updated|ago:"ago">, <TextNode: '</p>\n </div>\n\n <div'>, <For Node: for item in items, tail_len: 3>, <TextNode: '\n </ul>\n \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 | ('</p>\n' ' </div>\n' '\n' ' <div class="col_4 last">\n' ' \n' ' <ul id="issues">\n' ' ') |
bits | ['\n' '\n' '<div id="list_page" class="container">\n' ' \n' ' <div class="col_3">\n' ' <h1>', 'Physiotherapy Home Visit', '</h1>\n <h2>Curated by <a href="', '/@MedicalHomeVisit/lists/', '"><img src="', 'https://media.magpile.com/avatars/18066-vViIBW953OV1XqFP_30x30.jpg', '" width="20" height="20" /> ', 'MedicalHomeVisit', '</a></h2>\n \n <p>— Updated ', '20 Dec, 2018', '</p>\n' ' </div>\n' '\n' ' <div class="col_4 last">\n' ' \n' ' <ul id="issues">\n' ' '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
node | <For Node: for item in items, tail_len: 3> |
self | [<TextNode: '\n\n<div id="list_page" cla'>, <Variable Node: list.name>, <TextNode: '</h1>\n <h2>Curated'>, <django.template.defaulttags.URLNode object at 0x7f6ec7119828>, <TextNode: '"><img src="'>, <Variable Node: list.user.userprofile.avatar|thumbnail:"30x30">, <TextNode: '" width="20" height="20" '>, <Variable Node: list.user>, <TextNode: '</a></h2>\n \n '>, <Variable Node: list.last_updated|ago:"ago">, <TextNode: '</p>\n </div>\n\n <div'>, <For Node: for item in items, tail_len: 3>, <TextNode: '\n </ul>\n \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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
self | <For Node: for item in items, tail_len: 3> |
/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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
i | 0 |
item | <ItemInList: ItemInList object> |
len_values | 1 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': True, 'parentloop': {}, 'revcounter': 1, 'revcounter0': 0} |
node | <IfNode> |
nodelist | ['\n '] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <For Node: for item in items, tail_len: 3> |
unpack | False |
values | <QuerySet [<ItemInList: ItemInList 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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
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 0x7f6ec71c19e8>) (literal <django.template.base.FilterExpression object at 0x7f6ec71c1c18>)) |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
match | True |
nodelist | [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6eca28a320>, <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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
node | <django.template.loader_tags.IncludeNode object at 0x7f6eca28a320> |
self | [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6eca28a320>, <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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f6eca28a320> |
/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 | {'_issue.html': <django.template.base.Template object at 0x7f6ec4850ac8>} |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f6eca28a320> |
template | <django.template.base.Template object at 0x7f6ec4850ac8> |
template_name | '_issue.html' |
values | {'list_page': 1, 'magazine': None, 'mags': 1} |
/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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
self | <django.template.base.Template object at 0x7f6ec4850ac8> |
/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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
self | <django.template.base.Template object at 0x7f6ec4850ac8> |
/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<li class="', '', '', '', '" rel="', '', '">\n\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
node | <IfNode> |
self | [<TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f6ec74d9630>, <TextNode: '\n<li class="'>, <IfNode>, <IfNode>, <IfNode>, <TextNode: '" rel="'>, <Variable Node: issue.id>, <TextNode: '">\n\n '>, <IfNode>, <TextNode: '\n \n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n \n '>, <IfNode>, <TextNode: '\n \n</li>'>] |
/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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
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 0x7f6ec7448ef0>) |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
match | 1 |
nodelist | [<TextNode: '\n \n <a href="'>, <django.template.defaulttags.URLNode object at 0x7f6ec74486a0>, <TextNode: '" title="'>, <Variable Node: magazine>, <IfNode>, <TextNode: '" class="cover_container"'>, <IfNode>, <TextNode: ' width="200" data-height='>, <IfNode>, <TextNode: '" class="cover'>, <IfNode>, <IfNode>, <TextNode: '" />\n </div>\n '>, <Variable Node: magazine.name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n </a>\n \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 \n <a href="' |
bits | ['\n \n <a href="'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
node | <django.template.defaulttags.URLNode object at 0x7f6ec74486a0> |
self | [<TextNode: '\n \n <a href="'>, <django.template.defaulttags.URLNode object at 0x7f6ec74486a0>, <TextNode: '" title="'>, <Variable Node: magazine>, <IfNode>, <TextNode: '" class="cover_container"'>, <IfNode>, <TextNode: ' width="200" data-height='>, <IfNode>, <TextNode: '" class="cover'>, <IfNode>, <IfNode>, <TextNode: '" />\n </div>\n '>, <Variable Node: magazine.name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n </a>\n \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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
self | <django.template.defaulttags.URLNode object at 0x7f6ec74486a0> |
/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}, {}, {}, {'list': <List: List object>, 'items': <QuerySet [<ItemInList: ItemInList object>]>}] |
current_app | '' |
kwargs | {} |
reverse | <function reverse at 0x7f6eca9ef620> |
self | <django.template.defaulttags.URLNode object at 0x7f6ec74486a0> |
url | '' |
view_name | 'magazine' |
/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 | ['magazine'] |
path | [] |
prefix | '/' |
resolved_path | [] |
resolver | <RegexURLResolver 'magpile.urls' (None:None) ^/> |
urlconf | 'magpile.urls' |
view | 'magazine' |
viewname | 'magazine' |
/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 | '/%(slug)s/' |
candidate_subs | {'slug': ''} |
defaults | {} |
kwargs | {} |
lookup_view | 'magazine' |
lookup_view_s | 'magazine' |
m | None |
msg | ("Reverse for 'magazine' with arguments '('',)' not found. 2 pattern(s) tried: " "['(?P<slug>.+)/$', " "'(?P<slug>[-\\\\w\\\\d]+)/(?P<page>about|issues|discussion|readers)/$']") |
n | None |
params | ['slug', 'page'] |
pattern | '(?P<slug>[-\\w\\d]+)/(?P<page>about|issues|discussion|readers)/$' |
patterns | ['(?P<slug>.+)/$', '(?P<slug>[-\\w\\d]+)/(?P<page>about|issues|discussion|readers)/$'] |
possibilities | [([('%(slug)s/', ['slug'])], '(?P<slug>.+)/$', {}), ([('%(slug)s/%(page)s/', ['slug', 'page'])], '(?P<slug>[-\\w\\d]+)/(?P<page>about|issues|discussion|readers)/$', {})] |
possibility | [('%(slug)s/%(page)s/', ['slug', 'page'])] |
result | '%(slug)s/%(page)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 | '/list/914/' |
HTTP_HOST | 'magpile.com' |
HTTP_HTTPS | 'on' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '54.144.95.36' |
HTTP_X_FORWARDED_HOST | 'magpile.com' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_SERVER | 'magpile.com' |
HTTP_X_FORWARDED_SSL | 'on' |
PATH_INFO | '/list/914/' |
QUERY_STRING | '' |
REMOTE_ADDR | '127.0.0.1' |
REQUEST_METHOD | 'GET' |
REQUEST_URI | '/list/914/' |
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 0x7f6eb7c7eea0> |
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.