'NoneType' object has no attribute 'relative_url'
Request Method: | GET |
---|---|
Request URL: | http://bbbu.gumushane.edu.tr/en/about/sponsors/ |
Django Version: | 1.11.16 |
Exception Type: | AttributeError |
Exception Value: | 'NoneType' object has no attribute 'relative_url' |
Exception Location: | /home/webadmin/virtenvs/cnfrnce/lib/python2.7/site-packages/wagtail/wagtailcore/templatetags/wagtailcore_tags.py in pageurl, line 31 |
Python Executable: | /usr/bin/python |
Python Version: | 2.7.17 |
Python Path: | ['/home/webadmin/virtenvs/cnfrnce/lib/python2.7/site-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/home/webadmin/virtenvs/cnfrnce/lib/python2.7', '/home/webadmin/cnfrnces/1bilge1ulke'] |
Server time: | Cum, 29 Mar 2024 17:39:22 +0300 |
In template /home/webadmin/cnfrnces/1bilge1ulke/themes/mdb/templates/includes/header.html
, error at line 24
14 | |
---|---|
15 | <nav class="navbar navbar-dark navbar-custom navbar-expand-lg"> |
16 | <div class="container"> |
17 | <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> |
18 | <span class="navbar-toggler-icon"></span> |
19 | </button> |
20 | {% block main_navigation %} |
21 | <div class="collapse navbar-collapse" id="navbarSupportedContent"> |
22 | <ul class="navbar-nav mr-auto"> |
23 | <li class="nav-item"> |
24 | <a class="nav-link" href="{% pageurl site_root %}"><i class="fa fa-home"></i></a> |
25 | </li> |
26 | {# main_menu is defined in base/templatetags/navigation_tags.py #} |
27 | {% get_site_root as site_root %} |
28 | {% top_menu parent=site_root calling_page=self %} |
29 | </ul> |
30 | <ul class="navbar-nav"> |
31 | {% get_current_language as LANGUAGE_CODE %} |
32 | {% get_available_languages as languages %} |
33 | {% if languages|length > 1 %} |
34 | {% for lang_code, lang_name in languages %} |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | AttributeError("'NoneType' object has no attribute 'relative_url'",) |
get_response | <bound method WSGIHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f4b5cddba90>> |
request | <WSGIRequest: GET '/en/about/sponsors/'> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/site-packages/django/core/handlers/base.py
in _get_response
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
return response
def process_exception_by_middleware(self, exception, request):
"""
Pass the exception to the exception middleware. If no middleware
Variable | Value |
---|---|
callback | <function serve at 0x7f4b5bb00450> |
callback_args | (u'en/about/sponsors/',) |
callback_kwargs | {} |
e | AttributeError("'NoneType' object has no attribute 'relative_url'",) |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f4b5c083490>> |
request | <WSGIRequest: GET '/en/about/sponsors/'> |
resolver | <RegexURLResolver u'cnfrnce.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=wagtail.wagtailcore.views.serve, args=(u'en/about/sponsors/',), kwargs={}, url_name=wagtail_serve, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f4b5cddba90> |
wrapped_callback | <function serve at 0x7f4b5bb00450> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/site-packages/django/core/handlers/base.py
in _get_response
raise ValueError(
"%s.process_template_response didn't return an "
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
return response
def process_exception_by_middleware(self, exception, request):
Variable | Value |
---|---|
callback | <function serve at 0x7f4b5bb00450> |
callback_args | (u'en/about/sponsors/',) |
callback_kwargs | {} |
e | AttributeError("'NoneType' object has no attribute 'relative_url'",) |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f4b5c083490>> |
request | <WSGIRequest: GET '/en/about/sponsors/'> |
resolver | <RegexURLResolver u'cnfrnce.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=wagtail.wagtailcore.views.serve, args=(u'en/about/sponsors/',), kwargs={}, url_name=wagtail_serve, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f4b5cddba90> |
wrapped_callback | <function serve at 0x7f4b5bb00450> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Returns the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content...
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
retval | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/site-packages/django/template/response.py
in rendered_content
This *does not* set the final content of the response. To set the
response content, you must either call render(), or set the
content explicitly using the value of this property.
"""
template = self.resolve_template(self.template_name)
context = self.resolve_context(self.context_data)
content = template.render(context, self._request)...
return content
def add_post_render_callback(self, callback):
"""Adds a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
context | {u'page': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'self': <StandardPage: Sponsors>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7f4b5bad1cd0> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
request | <WSGIRequest: GET '/en/about/sponsors/'> |
self | <django.template.backends.django.Template object at 0x7f4b5bad1cd0> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
self | <django.template.base.Template object at 0x7f4b5b9ff610> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
self | <django.template.base.Template object at 0x7f4b5b9ff610> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
e | AttributeError("'NoneType' object has no attribute 'relative_url'",) |
self | <ExtendsNode: extends "base.html"> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 0x7f4b5ba10350> |
blocks | {u'body_class': <Block Node: body_class. Contents: [<TextNode: u'template-'>, <Variable Node: self.get_verbose_name|slugify>]>, u'breadcrumbs': <Block Node: breadcrumbs. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>, <TextNode: u'\n'>]>, u'content': <Block Node: content. Contents: [<TextNode: u'\n <!--Card-->\n\t<div cl'>, <Block Node: page-title. Contents: []>, <TextNode: u'</h4>\n\t\t\t\t <!--Tex'>, <Block Node: main-content. Contents: []>, <TextNode: u'\n\t\t\t\t </div>\n\t\t\t\t\n\t\t\t\t'>]>, u'extra-js': <Block Node: extra-js. Contents: []>, u'head-extra': <Block Node: head-extra. Contents: [<TextNode: u'\n '>]>, u'header': <Block Node: header. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>, <django.template.library.SimpleNode object at 0x7f4b5b9b3a10>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f4b5b9b3b90>, <TextNode: u'\n'>]>, u'header-extra': <Block Node: header-extra. Contents: [<TextNode: u'\n'>]>, u'main-content': <Block Node: main-content. Contents: []>, u'messages': <Block Node: messages. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f4b5b9b3d50>, <TextNode: u'\n'>]>, u'page-title': <Block Node: page-title. Contents: []>, u'title': <Block Node: title. Contents: [<TextNode: u'\n '>, <Block Node: title_prefix. Contents: [<TextNode: u'\n \n '>]>, <TextNode: u'\n '>, <IfNode>, <TextNode: u'\n '>]>, u'title_prefix': <Block Node: title_prefix. Contents: [<TextNode: u'\n \n '>]>} |
compiled_parent | <django.template.base.Template object at 0x7f4b5b999250> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
node | <django.template.defaulttags.LoadNode object at 0x7f4b5b9aa350> |
self | <ExtendsNode: extends "base.html"> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
self | <django.template.base.Template object at 0x7f4b5b999250> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | u'\n' |
bits | [u'', u'\n', u'', u'\n'] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
node | <WithNode> |
self | [<django.template.defaulttags.LoadNode object at 0x7f4b5b9aa350>, <TextNode: u'\n'>, <django.template.library.SimpleNode object at 0x7f4b5b9aa3d0>, <TextNode: u'\n'>, <WithNode>] |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
e | AttributeError("'NoneType' object has no attribute 'relative_url'",) |
self | <WithNode> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/site-packages/django/template/defaulttags.py
in render
def __repr__(self):
return "<WithNode>"
def render(self, context):
values = {key: val.resolve(context) for key, val in
six.iteritems(self.extra_context)}
with context.push(**values):
return self.nodelist.render(context)...
@register.tag
def autoescape(parser, token):
"""
Force autoescape behavior for this block.
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
self | <WithNode> |
values | {u'cnfrnce_settings': <ConferenceSettings: ConferenceSettings object>} |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | u'\n\n' |
bits | [u'\n\n<!DOCTYPE html>\n<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->\n<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->\n<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->\n<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->\n<head>\n <meta charset="utf-8">\n <meta http-equiv="X-UA-Compatible" content="IE=edge">\n <title>\n ', u'\n \n \n \n \n Sponsors\n \n ', u'\n </title>\n <meta name="description" content="', u'', u'">\n <meta name="viewport" content="width=device-width, initial-scale=1">\n\n <!-- Bootstrap Core CSS -->\n <link rel="stylesheet" type="text/css" href="', u'/site_media/static/mdb/css/bootstrap.min.css', u'">\n <link rel="stylesheet" type="text/css" href="', u'/site_media/static/mdb/css/mdb.min.css', u'">\n\n <!-- Custom Fonts -->\n <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">\n <link href="https://fonts.googleapis.com/css?family=Alegreya:400,700|Lato:300,400,700,900" rel="stylesheet">\n\n <!-- Theme CSS -->\n\n <link href=\'https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic\' rel=\'stylesheet\' type=\'text/css\'>\n <link href=\'https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800\' rel=\'stylesheet\' type=\'text/css\'>\n\n <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->\n <!-- WARNING: Respond.js doesn\'t work if you view the page via file:// -->\n <!--[if lt IE 9]>\n <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>\n <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>\n <![endif]-->\n \n ', u'\n ', u'\n <link rel="stylesheet" type="text/css" href="', u'/site_media/static/mdb/css/style.css', u'?v=', u'2024032917', u'">\n <style type="text/css">\n\t\t', u'.template-homepage{\r\n color: #000000;\r\n}\r\n.table td{\r\n font-weight:400;\r\n font-size: 1rem;\r\n}\r\n.card-body {\r\n color: #000000 !important;\r\n}\r\n.navbar.navbar-custom .navbar-nav .nav-item .nav-link {\r\n text-transform: uppercase;\r\n}', u'\n\t\t', u'', u'\n\t\t', u'', u'\n </style>\n</head>\n\n<body class="', u'template-standard-page', u'">\n', u'\n\n'] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
node | <Block Node: header. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>, <django.template.library.SimpleNode object at 0x7f4b5b9b3a10>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f4b5b9b3b90>, <TextNode: u'\n'>]> |
self | [<TextNode: u'\n\n<!DOCTYPE html>\n<!--[if'>, <Block Node: title. Contents: [<TextNode: u'\n '>, <Block Node: title_prefix. Contents: [<TextNode: u'\n \n '>]>, <TextNode: u'\n '>, <IfNode>, <TextNode: u'\n '>]>, <TextNode: u'\n </title>\n <meta n'>, <IfNode>, <TextNode: u'">\n <meta name="viewpo'>, <django.templatetags.static.StaticNode object at 0x7f4b5b9aad90>, <TextNode: u'">\n <link rel="stylesh'>, <django.templatetags.static.StaticNode object at 0x7f4b5b9aae50>, <TextNode: u'">\n\n <!-- Custom Fonts'>, <Block Node: head-extra. Contents: [<TextNode: u'\n '>]>, <TextNode: u'\n <link rel="styleshee'>, <django.templatetags.static.StaticNode object at 0x7f4b5b9aaf90>, <TextNode: u'?v='>, <django.template.defaulttags.NowNode object at 0x7f4b5b9b30d0>, <TextNode: u'">\n <style type="text/'>, <Variable Node: cnfrnce_settings.extra_css>, <TextNode: u'\n\t\t'>, <IfNode>, <TextNode: u'\n\t\t'>, <IfNode>, <TextNode: u'\n </style>\n</head>\n\n<b'>, <Block Node: body_class. Contents: [<TextNode: u'template-'>, <Variable Node: self.get_verbose_name|slugify>]>, <TextNode: u'">\n'>, <TextNode: u'\n\n'>, <Block Node: header. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>, <django.template.library.SimpleNode object at 0x7f4b5b9b3a10>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f4b5b9b3b90>, <TextNode: u'\n'>]>, <TextNode: u'\n\n'>, <Block Node: header-extra. Contents: [<TextNode: u'\n'>]>, <TextNode: u'\n\n'>, <Block Node: messages. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f4b5b9b3d50>, <TextNode: u'\n'>]>, <TextNode: u'\n\n\n'>, <Block Node: breadcrumbs. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>, <TextNode: u'\n'>]>, <TextNode: u'\n\n<content role="main">\n '>, <Block Node: content. Contents: [<TextNode: u'\n <!--Card-->\n\t<div cl'>, <Block Node: page-title. Contents: []>, <TextNode: u'</h4>\n\t\t\t\t <!--Tex'>, <Block Node: main-content. Contents: []>, <TextNode: u'\n\t\t\t\t </div>\n\t\t\t\t\n\t\t\t\t'>]>, <TextNode: u'\n</content>\n\n <hr>\n\n '>, <TextNode: u'\n </footer>\n\n <!-- '>, <django.templatetags.static.StaticNode object at 0x7f4b5b9b3f90>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f4b5b9bd0d0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f4b5b9bd190>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f4b5b9bd250>, <TextNode: u'"></script>\n '>, <Block Node: extra-js. Contents: []>, <TextNode: u'\n\n</body>\n\n</html>\n\n'>] |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
e | AttributeError("'NoneType' object has no attribute 'relative_url'",) |
self | <Block Node: header. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>, <django.template.library.SimpleNode object at 0x7f4b5b9b3a10>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f4b5b9b3b90>, <TextNode: u'\n'>]> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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: header. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>, <django.template.library.SimpleNode object at 0x7f4b5b9b3a10>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f4b5b9b3b90>, <TextNode: u'\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f4b5ba10350> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
push | <Block Node: header. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>, <django.template.library.SimpleNode object at 0x7f4b5b9b3a10>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f4b5b9b3b90>, <TextNode: u'\n'>]> |
self | <Block Node: header. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>, <django.template.library.SimpleNode object at 0x7f4b5b9b3a10>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f4b5b9b3b90>, <TextNode: u'\n'>]> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | u'\n ' |
bits | [u'\n ', u'\n ', u'', u'\n '] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
node | <django.template.loader_tags.IncludeNode object at 0x7f4b5b9b3b90> |
self | [<TextNode: u'\n '>, <TextNode: u'\n '>, <django.template.library.SimpleNode object at 0x7f4b5b9b3a10>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f4b5b9b3b90>, <TextNode: u'\n'>] |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
e | AttributeError("'NoneType' object has no attribute 'relative_url'",) |
self | <django.template.loader_tags.IncludeNode object at 0x7f4b5b9b3b90> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | {u'includes/header.html': <django.template.base.Template object at 0x7f4b5cdd3610>} |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
e | AttributeError("'NoneType' object has no attribute 'relative_url'",) |
self | <django.template.loader_tags.IncludeNode object at 0x7f4b5b9b3b90> |
template | <django.template.base.Template object at 0x7f4b5cdd3610> |
template_name | u'includes/header.html' |
values | {u'calling_page': <StandardPage: Sponsors>, u'parent': None} |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
self | <django.template.base.Template object at 0x7f4b5cdd3610> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
self | <django.template.base.Template object at 0x7f4b5cdd3610> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | u'" class="img-fluid" />\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\n\t<!--Navbar-->\n\t\n\t<nav class="navbar navbar-dark navbar-custom navbar-expand-lg">\n\t\t<div class="container">\n\t\t\t<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">\n\t\t\t <span class="navbar-toggler-icon"></span>\n\t\t\t</button>\n\t\t\t' |
bits | [u'', u'\n\n<div class="header clearfix">\n\t<div class="container">\n\t\t<div class="row">\n\t\t\t<div class="col-lg-12 banner">\n\t\t\t\t', u'', u'\n\t <img src="', u'/site_media/media/images/banner_tr_QFLQ3ld.height-150.png', u'" class="img-fluid" />\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\n\t<!--Navbar-->\n\t\n\t<nav class="navbar navbar-dark navbar-custom navbar-expand-lg">\n\t\t<div class="container">\n\t\t\t<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">\n\t\t\t <span class="navbar-toggler-icon"></span>\n\t\t\t</button>\n\t\t\t'] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
node | <Block Node: main_navigation. Contents: [<TextNode: u'\n\t\t\t<div class="collapse '>, <django.template.library.SimpleNode object at 0x7f4b5b9c9dd0>, <TextNode: u'"><i class="fa fa-home"><'>, <TextNode: u' \n\t\t\t\t\t'>, <django.template.library.SimpleNode object at 0x7f4b5b9c9ed0>, <TextNode: u' \n\t\t\t\t\t'>, <django.template.library.InclusionNode object at 0x7f4b5b9c9fd0>, <TextNode: u'\n\t\t\t\t</ul>\n\t\t\t\t<ul class='>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7f4b5b96d110>, <TextNode: u'\n\t\t\t\t\t'>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7f4b5b96d190>, <TextNode: u'\n\t\t\t\t\t'>, <IfNode>, <TextNode: u'\n\t\t\t\t</ul>\n\t\t\t\t'>, <django.template.defaulttags.CommentNode object at 0x7f4b5ce4ae50>, <TextNode: u'\n\t\t\t</div>\n\t\t\t'>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f4b5b9c92d0>, <TextNode: u'\n\n<div class="header clea'>, <wagtail.wagtailimages.templatetags.wagtailimages_tags.ImageNode object at 0x7f4b5b9c9b10>, <TextNode: u'\n\t <img src="'>, <Variable Node: banner.url>, <TextNode: u'" class="img-fluid" />\n\t\t'>, <Block Node: main_navigation. Contents: [<TextNode: u'\n\t\t\t<div class="collapse '>, <django.template.library.SimpleNode object at 0x7f4b5b9c9dd0>, <TextNode: u'"><i class="fa fa-home"><'>, <TextNode: u' \n\t\t\t\t\t'>, <django.template.library.SimpleNode object at 0x7f4b5b9c9ed0>, <TextNode: u' \n\t\t\t\t\t'>, <django.template.library.InclusionNode object at 0x7f4b5b9c9fd0>, <TextNode: u'\n\t\t\t\t</ul>\n\t\t\t\t<ul class='>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7f4b5b96d110>, <TextNode: u'\n\t\t\t\t\t'>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7f4b5b96d190>, <TextNode: u'\n\t\t\t\t\t'>, <IfNode>, <TextNode: u'\n\t\t\t\t</ul>\n\t\t\t\t'>, <django.template.defaulttags.CommentNode object at 0x7f4b5ce4ae50>, <TextNode: u'\n\t\t\t</div>\n\t\t\t'>]>, <TextNode: u'\n\t\t</div>\n\t</nav>\n\t<!--/.'>, <django.template.defaulttags.URLNode object at 0x7f4b5b96da10>, <TextNode: u'" method="post">\n\t'>, <django.template.defaulttags.CsrfTokenNode object at 0x7f4b5b96db10>, <TextNode: u'\n <input name="next" t'>] |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
e | AttributeError("'NoneType' object has no attribute 'relative_url'",) |
self | <Block Node: main_navigation. Contents: [<TextNode: u'\n\t\t\t<div class="collapse '>, <django.template.library.SimpleNode object at 0x7f4b5b9c9dd0>, <TextNode: u'"><i class="fa fa-home"><'>, <TextNode: u' \n\t\t\t\t\t'>, <django.template.library.SimpleNode object at 0x7f4b5b9c9ed0>, <TextNode: u' \n\t\t\t\t\t'>, <django.template.library.InclusionNode object at 0x7f4b5b9c9fd0>, <TextNode: u'\n\t\t\t\t</ul>\n\t\t\t\t<ul class='>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7f4b5b96d110>, <TextNode: u'\n\t\t\t\t\t'>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7f4b5b96d190>, <TextNode: u'\n\t\t\t\t\t'>, <IfNode>, <TextNode: u'\n\t\t\t\t</ul>\n\t\t\t\t'>, <django.template.defaulttags.CommentNode object at 0x7f4b5ce4ae50>, <TextNode: u'\n\t\t\t</div>\n\t\t\t'>]> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/site-packages/django/template/loader_tags.py
in render
return "<Block Node: %s. Contents: %r>" % (self.name, self.nodelist)
def render(self, context):
block_context = context.render_context.get(BLOCK_CONTEXT_KEY)
with context.push():
if block_context is None:
context['block'] = self
result = self.nodelist.render(context)...
else:
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)
Variable | Value |
---|---|
block_context | None |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
self | <Block Node: main_navigation. Contents: [<TextNode: u'\n\t\t\t<div class="collapse '>, <django.template.library.SimpleNode object at 0x7f4b5b9c9dd0>, <TextNode: u'"><i class="fa fa-home"><'>, <TextNode: u' \n\t\t\t\t\t'>, <django.template.library.SimpleNode object at 0x7f4b5b9c9ed0>, <TextNode: u' \n\t\t\t\t\t'>, <django.template.library.InclusionNode object at 0x7f4b5b9c9fd0>, <TextNode: u'\n\t\t\t\t</ul>\n\t\t\t\t<ul class='>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7f4b5b96d110>, <TextNode: u'\n\t\t\t\t\t'>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7f4b5b96d190>, <TextNode: u'\n\t\t\t\t\t'>, <IfNode>, <TextNode: u'\n\t\t\t\t</ul>\n\t\t\t\t'>, <django.template.defaulttags.CommentNode object at 0x7f4b5ce4ae50>, <TextNode: u'\n\t\t\t</div>\n\t\t\t'>]> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | u'\n\t\t\t<div class="collapse navbar-collapse" id="navbarSupportedContent">\n\t\t\t\t<ul class="navbar-nav mr-auto">\n\t\t\t\t\t<li class="nav-item">\n\t\t\t\t\t\t<a class="nav-link" href="' |
bits | [u'\n\t\t\t<div class="collapse navbar-collapse" id="navbarSupportedContent">\n\t\t\t\t<ul class="navbar-nav mr-auto">\n\t\t\t\t\t<li class="nav-item">\n\t\t\t\t\t\t<a class="nav-link" href="'] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
node | <django.template.library.SimpleNode object at 0x7f4b5b9c9dd0> |
self | [<TextNode: u'\n\t\t\t<div class="collapse '>, <django.template.library.SimpleNode object at 0x7f4b5b9c9dd0>, <TextNode: u'"><i class="fa fa-home"><'>, <TextNode: u' \n\t\t\t\t\t'>, <django.template.library.SimpleNode object at 0x7f4b5b9c9ed0>, <TextNode: u' \n\t\t\t\t\t'>, <django.template.library.InclusionNode object at 0x7f4b5b9c9fd0>, <TextNode: u'\n\t\t\t\t</ul>\n\t\t\t\t<ul class='>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7f4b5b96d110>, <TextNode: u'\n\t\t\t\t\t'>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7f4b5b96d190>, <TextNode: u'\n\t\t\t\t\t'>, <IfNode>, <TextNode: u'\n\t\t\t\t</ul>\n\t\t\t\t'>, <django.template.defaulttags.CommentNode object at 0x7f4b5ce4ae50>, <TextNode: u'\n\t\t\t</div>\n\t\t\t'>] |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
e | AttributeError("'NoneType' object has no attribute 'relative_url'",) |
self | <django.template.library.SimpleNode object at 0x7f4b5b9c9dd0> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/site-packages/django/template/library.py
in render
def __init__(self, func, takes_context, args, kwargs, target_var):
super(SimpleNode, self).__init__(func, takes_context, args, kwargs)
self.target_var = target_var
def render(self, context):
resolved_args, resolved_kwargs = self.get_resolved_arguments(context)
output = self.func(*resolved_args, **resolved_kwargs)...
if self.target_var is not None:
context[self.target_var] = output
return ''
if context.autoescape:
output = conditional_escape(output)
return output
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
resolved_args | [[{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}], None] |
resolved_kwargs | {} |
self | <django.template.library.SimpleNode object at 0x7f4b5b9c9dd0> |
/home/webadmin/virtenvs/cnfrnce/lib/python2.7/site-packages/wagtail/wagtailcore/templatetags/wagtailcore_tags.py
in pageurl
# request.site not available in the current context; fall back on page.url
return page.url
# Pass page.relative_url the request object, which may contain a cached copy of
# Site.get_site_root_paths()
# This avoids page.relative_url having to make a database/cache fetch for this list
# each time it's called.
return page.relative_url(current_site, request=context.get('request'))...
@register.simple_tag(takes_context=True)
def slugurl(context, slug):
"""Returns the URL for the page that has the given slug."""
page = Page.objects.filter(slug=slug).first()
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'self': <StandardPage: Sponsors>, u'request': <WSGIRequest: GET '/en/about/sponsors/'>, u'page': <StandardPage: Sponsors>, u'settings': {u'home': {u'conferencesettings': <ConferenceSettings: ConferenceSettings object>}}}] |
current_site | <Site: localhost [default]> |
page | None |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTEXT_DOCUMENT_ROOT | '/var/www/html' |
CONTEXT_PREFIX | '' |
DOCUMENT_ROOT | '/var/www/html' |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'bbbu.gumushane.edu.tr' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | u'/en/about/sponsors/' |
PATH_TRANSLATED | '/home/webadmin/cnfrnces/1bilge1ulke/cnfrnce/wsgi_production.py/en/about/sponsors/' |
QUERY_STRING | '' |
REMOTE_ADDR | '44.197.238.222' |
REMOTE_PORT | '38588' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'http' |
REQUEST_URI | '/en/about/sponsors/' |
SCRIPT_FILENAME | '/home/webadmin/cnfrnces/1bilge1ulke/cnfrnce/wsgi_production.py' |
SCRIPT_NAME | u'' |
SERVER_ADDR | '79.123.244.13' |
SERVER_ADMIN | 'webmaster@localhost' |
SERVER_NAME | 'bbbu.gumushane.edu.tr' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SIGNATURE | '' |
SERVER_SOFTWARE | 'Apache' |
apache.version | (2, 4, 29) |
mod_wsgi.application_group | 'bbbu.gumushane.edu.tr|' |
mod_wsgi.callable_object | 'application' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
mod_wsgi.ignore_activity | '0' |
mod_wsgi.listener_host | '' |
mod_wsgi.listener_port | '80' |
mod_wsgi.path_info | '/en/about/sponsors/' |
mod_wsgi.process_group | '' |
mod_wsgi.request_handler | 'wsgi-script' |
mod_wsgi.request_id | 'cAQDm20jj4U' |
mod_wsgi.request_start | '1711723161781360' |
mod_wsgi.script_name | '' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.script_start | '1711723162212812' |
mod_wsgi.thread_id | 0 |
mod_wsgi.thread_requests | 3L |
mod_wsgi.total_requests | 3L |
mod_wsgi.version | (4, 5, 17) |
wsgi.errors | <mod_wsgi.Log object at 0x7f4b5c08fad0> |
wsgi.file_wrapper | '' |
wsgi.input | <mod_wsgi.Input object at 0x7f4b5d159260> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
cnfrnce.settings.production
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_ACTIVATION_DAYS | 7 |
ADMINS | [] |
ALLOWED_HOSTS | ['1bilge1ulke.gumushane.edu.tr', 'bbbu.gumushane.edu.tr'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | [u'django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | u'********************' |
AUTH_USER_MODEL | u'auth.User' |
BASE_DIR | '/home/webadmin/cnfrnces/1bilge1ulke' |
BASE_URL | 'http://bbbu.gumushane.edu.tr' |
CACHES | {u'default': {u'BACKEND': u'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | u'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
COMPRESS_CACHEABLE_PRECOMPILERS | () |
COMPRESS_CACHE_BACKEND | u'default' |
COMPRESS_CACHE_KEY_FUNCTION | u'********************' |
COMPRESS_CLEAN_CSS_ARGUMENTS | u'' |
COMPRESS_CLEAN_CSS_BINARY | u'cleancss' |
COMPRESS_CLOSURE_COMPILER_ARGUMENTS | u'' |
COMPRESS_CLOSURE_COMPILER_BINARY | u'java -jar compiler.jar' |
COMPRESS_CSS_COMPRESSOR | u'compressor.css.CssCompressor' |
COMPRESS_CSS_FILTERS | [u'compressor.filters.css_default.CssAbsoluteFilter'] |
COMPRESS_CSS_HASHING_METHOD | u'mtime' |
COMPRESS_DATA_URI_MAX_SIZE | 1024 |
COMPRESS_DEBUG_TOGGLE | None |
COMPRESS_ENABLED | False |
COMPRESS_JINJA2_GET_ENVIRONMENT | <function JINJA2_GET_ENVIRONMENT at 0x7f4b5c0d32d0> |
COMPRESS_JS_COMPRESSOR | u'compressor.js.JsCompressor' |
COMPRESS_JS_FILTERS | [u'compressor.filters.jsmin.JSMinFilter'] |
COMPRESS_MINT_DELAY | 30 |
COMPRESS_MTIME_DELAY | 10 |
COMPRESS_OFFLINE | False |
COMPRESS_OFFLINE_CONTEXT | {u'STATIC_URL': u'/site_media/static/'} |
COMPRESS_OFFLINE_MANIFEST | u'manifest.json' |
COMPRESS_OFFLINE_TIMEOUT | 31536000 |
COMPRESS_OUTPUT_DIR | u'CACHE' |
COMPRESS_PARSER | u'compressor.parser.AutoSelectParser' |
COMPRESS_PRECOMPILERS | () |
COMPRESS_REBUILD_TIMEOUT | 2592000 |
COMPRESS_ROOT | u'/home/webadmin/cnfrnces/1bilge1ulke/site_media/static' |
COMPRESS_STORAGE | u'compressor.storage.CompressorFileStorage' |
COMPRESS_TEMPLATE_FILTER_CONTEXT | {u'STATIC_URL': u'/site_media/static/'} |
COMPRESS_URL | u'/site_media/static/' |
COMPRESS_URL_PLACEHOLDER | u'/__compressor_url_placeholder__/' |
COMPRESS_VERBOSE | False |
COMPRESS_YUGLIFY_BINARY | u'yuglify' |
COMPRESS_YUGLIFY_CSS_ARGUMENTS | u'--terminal' |
COMPRESS_YUGLIFY_JS_ARGUMENTS | u'--terminal' |
COMPRESS_YUI_BINARY | u'java -jar yuicompressor.jar' |
COMPRESS_YUI_CSS_ARGUMENTS | u'' |
COMPRESS_YUI_JS_ARGUMENTS | u'' |
CRISPY_ALLOWED_TEMPLATE_PACKS | (u'bootstrap', u'uni_form', u'bootstrap3', u'bootstrap4', u'mdb_crispy') |
CRISPY_TEMPLATE_PACK | u'bootstrap4' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | u'csrftoken' |
CSRF_COOKIE_PATH | u'/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | u'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | u'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': '', 'NAME': '1bilge1ulkedb', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'django'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | u'N j, Y, P' |
DATETIME_INPUT_FORMATS | [u'%Y-%m-%d %H:%M:%S', u'%Y-%m-%d %H:%M:%S.%f', u'%Y-%m-%d %H:%M', u'%Y-%m-%d', u'%m/%d/%Y %H:%M:%S', u'%m/%d/%Y %H:%M:%S.%f', u'%m/%d/%Y %H:%M', u'%m/%d/%Y', u'%m/%d/%y %H:%M:%S', u'%m/%d/%y %H:%M:%S.%f', u'%m/%d/%y %H:%M', u'%m/%d/%y'] |
DATE_FORMAT | u'N j, Y' |
DATE_INPUT_FORMATS | [u'%Y-%m-%d', u'%m/%d/%Y', u'%m/%d/%y', u'%b %d %Y', u'%b %d, %Y', u'%d %b %Y', u'%d %b, %Y', u'%B %d %Y', u'%B %d, %Y', u'%d %B %Y', u'%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | u'.' |
DEFAULT_CHARSET | u'utf-8' |
DEFAULT_CONTENT_TYPE | u'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | u'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | u'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | u'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | u'' |
DEFAULT_TABLESPACE | u'' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | u'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | u'posta.gumushane.edu.tr' |
EMAIL_HOST_PASSWORD | u'********************' |
EMAIL_HOST_USER | u'sysadmin@gumushane.edu.tr' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | u'********************' |
EMAIL_SUBJECT_PREFIX | u'[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
FILE_CHARSET | u'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | [u'django.core.files.uploadhandler.MemoryFileUploadHandler', u'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 | u'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | [u'themes.mdb', u'core', u'home', u'search', u'speakers', u'wagtail.contrib.modeladmin', u'wagtail.contrib.settings', u'wagtail.contrib.table_block', u'wagtail.wagtailforms', u'wagtail.wagtailredirects', u'wagtail.wagtailembeds', u'wagtail.wagtailusers', u'wagtail.wagtailsnippets', u'wagtail.wagtaildocs', u'wagtail.wagtailimages', u'wagtail.wagtailsearch', u'wagtail.wagtailadmin', u'wagtail.wagtailcore', u'wagtail.wagtailsites', u'wagtailgmaps', u'compressor', u'taggit', u'modelcluster', u'rest_framework', u'crispy_forms', u'django.contrib.admin', u'django.contrib.auth', u'django.contrib.contenttypes', u'django.contrib.sessions', u'django.contrib.messages', u'django.contrib.staticfiles'] |
INTERNAL_IPS | [] |
LANGUAGES | (('tr', u'T\xfcrk\xe7e'), ('en', u'English')) |
LANGUAGES_BIDI | [u'he', u'ar', u'fa', u'ur'] |
LANGUAGE_CODE | 'tr' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | u'django_language' |
LANGUAGE_COOKIE_PATH | u'/' |
LOCALE_PATHS | [u'/home/webadmin/cnfrnces/1bilge1ulke/locale'] |
LOGGING | {} |
LOGGING_CONFIG | u'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | u'/accounts/profile/' |
LOGIN_URL | u'/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | u'/home/webadmin/cnfrnces/1bilge1ulke/site_media/media' |
MEDIA_URL | u'/site_media/media/' |
MESSAGE_STORAGE | u'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | [u'django.contrib.sessions.middleware.SessionMiddleware', u'django.middleware.common.CommonMiddleware', u'django.middleware.csrf.CsrfViewMiddleware', u'django.contrib.auth.middleware.AuthenticationMiddleware', u'django.contrib.messages.middleware.MessageMiddleware', u'django.middleware.clickjacking.XFrameOptionsMiddleware', u'django.middleware.security.SecurityMiddleware', u'wagtail.wagtailcore.middleware.SiteMiddleware', u'django.middleware.locale.LocaleMiddleware', u'wagtail.wagtailredirects.middleware.RedirectMiddleware'] |
MIDDLEWARE_CLASSES | [u'django.middleware.common.CommonMiddleware', u'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | u'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
PREPEND_WWW | False |
PROJECT_DIR | '/home/webadmin/cnfrnces/1bilge1ulke/cnfrnce' |
ROOT_URLCONF | u'cnfrnce.urls' |
SECRET_KEY | u'********************' |
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 | u'root@localhost' |
SESSION_CACHE_ALIAS | u'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | u'sessionid' |
SESSION_COOKIE_PATH | u'/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | u'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | u'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'cnfrnce.settings.production' |
SHORT_DATETIME_FORMAT | u'm/d/Y P' |
SHORT_DATE_FORMAT | u'm/d/Y' |
SIGNING_BACKEND | u'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | [u'django.contrib.staticfiles.finders.FileSystemFinder', u'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | u'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | u'/home/webadmin/cnfrnces/1bilge1ulke/site_media/static' |
STATIC_URL | u'/site_media/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/webadmin/cnfrnces/1bilge1ulke/themes/mdb/bbbu_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', 'wagtail.contrib.settings.context_processors.settings']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | u'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | u',' |
TIME_FORMAT | u'P' |
TIME_INPUT_FORMATS | [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M'] |
TIME_ZONE | 'Europe/Istanbul' |
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 |
WAGTAIL_ADDRESS_MAP_CENTER | 'G\xc3\xbcm\xc3\xbc\xc5\x9fhane \xc3\x9cniversitsi, T\xc3\xbcrkiye' |
WAGTAIL_ADDRESS_MAP_KEY | u'********************' |
WAGTAIL_ADDRESS_MAP_ZOOM | 15 |
WAGTAIL_SITE_NAME | 'cnfrnce' |
WSGI_APPLICATION | u'cnfrnce.wsgi.application' |
X_FRAME_OPTIONS | u'SAMEORIGIN' |
YEAR_MONTH_FORMAT | u'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.