'Page' object has no attribute 'site_id'
Request Method: | GET |
---|---|
Request URL: | https://ricca-it.com/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/ |
Django Version: | 1.11.21 |
Exception Type: | AttributeError |
Exception Value: | 'Page' object has no attribute 'site_id' |
Exception Location: | /var/www/ricca_website/env/lib/python2.7/site-packages/aldryn_bootstrap3/model_fields.py in get_link_url, line 169 |
Python Executable: | /var/www/ricca_website/env/bin/python |
Python Version: | 2.7.17 |
Python Path: | ['/var/www/ricca_website', '/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', '/var/www/ricca_website/env/lib/python2.7/site-packages'] |
Server time: | Gio, 28 Mar 2024 16:55:40 +0100 |
In template /var/www/ricca_website/env/lib/python2.7/site-packages/aldryn_bootstrap3/templates/aldryn_bootstrap3/plugins/button.html
, error at line 1
1 | {% load cms_tags %}<a href="{{ instance.get_link_url }}" |
---|---|
2 | {% if instance.type == 'btn' or instance.txt_context or instance.classes %} |
3 | class=" |
4 | {% if instance.type == 'btn' %} |
5 | btn{% if instance.btn_context %} btn-{{ instance.btn_context }}{% endif %} |
6 | {% if instance.btn_size %} btn-{{ instance.btn_size }}{% endif %} |
7 | {% if instance.btn_block %} btn-block{% endif %} |
8 | {% else %} |
9 | {% if instance.txt_context %}txt-{{ instance.txt_context }}{% endif %} |
10 | {% endif %} |
11 | {% if instance.classes %} {{ instance.classes }}{% endif %} |
/var/www/ricca_website/env/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("'Page' object has no attribute 'site_id'",) |
get_response | <bound method WSGIHandler._legacy_get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f8794239bd0>> |
request | <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'> |
/var/www/ricca_website/env/lib/python2.7/site-packages/django/core/handlers/base.py
in _legacy_get_response
# Apply request middleware
for middleware_method in self._request_middleware:
response = middleware_method(request)
if response:
break
if response is None:
response = self._get_response(request)...
return response
Variable | Value |
---|---|
middleware_method | <bound method ApphookReloadMiddleware.process_request of <cms.middleware.utils.ApphookReloadMiddleware object at 0x7f878e0fd6d0>> |
request | <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f8794239bd0> |
/var/www/ricca_website/env/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 ArticleDetail at 0x7f878de8fcd0> |
callback_args | () |
callback_kwargs | {u'day': u'14', u'month': u'07', u'slug': u'gdpr-corso-per-data-protection-officer', u'year': u'2017'} |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f878e0fd710>> |
request | <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'> |
resolver | <RegexURLResolver 'ricca_website.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=aldryn_newsblog.views.ArticleDetail, args=(), kwargs={u'year': u'2017', u'slug': u'gdpr-corso-per-data-protection-officer', u'day': u'14', u'month': u'07'}, url_name=article-detail, app_names=[u'aldryn_newsblog'], namespaces=[u'aldryn_newsblog_events']) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f8794239bd0> |
wrapped_callback | <function ArticleDetail at 0x7f878de8fcd0> |
/var/www/ricca_website/env/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 ArticleDetail at 0x7f878de8fcd0> |
callback_args | () |
callback_kwargs | {u'day': u'14', u'month': u'07', u'slug': u'gdpr-corso-per-data-protection-officer', u'year': u'2017'} |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f878e0fd710>> |
request | <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'> |
resolver | <RegexURLResolver 'ricca_website.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=aldryn_newsblog.views.ArticleDetail, args=(), kwargs={u'year': u'2017', u'slug': u'gdpr-corso-per-data-protection-officer', u'day': u'14', u'month': u'07'}, url_name=article-detail, app_names=[u'aldryn_newsblog'], namespaces=[u'aldryn_newsblog_events']) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f8794239bd0> |
wrapped_callback | <function ArticleDetail at 0x7f878de8fcd0> |
/var/www/ricca_website/env/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"> |
/var/www/ricca_website/env/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 | {'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'object': <Article: GDPR: Corso per Data Protection Officer>, u'prev_article': <Article: Ricca GT 2017>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7f878d7e2d10> |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
request | <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'> |
self | <django.template.backends.django.Template object at 0x7f878d7e2d10> |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
self | <django.template.base.Template object at 0x7f878d7be8d0> |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
self | <django.template.base.Template object at 0x7f878d7be8d0> |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
node | <ExtendsNode: extends "aldryn_newsblog/newsblog_events/base.html"> |
self | [<ExtendsNode: extends "aldryn_newsblog/newsblog_events/base.html">] |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
self | <ExtendsNode: extends "aldryn_newsblog/newsblog_events/base.html"> |
/var/www/ricca_website/env/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 0x7f878dac3410> |
compiled_parent | <django.template.base.Template object at 0x7f878dc86dd0> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
node | <ExtendsNode: extends CMS_TEMPLATE> |
self | <ExtendsNode: extends "aldryn_newsblog/newsblog_events/base.html"> |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
self | <django.template.base.Template object at 0x7f878dc86dd0> |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
node | <ExtendsNode: extends CMS_TEMPLATE> |
self | [<ExtendsNode: extends CMS_TEMPLATE>] |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
self | <ExtendsNode: extends CMS_TEMPLATE> |
/var/www/ricca_website/env/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 0x7f878dac3410> |
compiled_parent | <django.template.base.Template object at 0x7f878d8bf7d0> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
node | <ExtendsNode: extends "base.html"> |
self | <ExtendsNode: extends CMS_TEMPLATE> |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
self | <django.template.base.Template object at 0x7f878d8bf7d0> |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
self | <ExtendsNode: extends "base.html"> |
/var/www/ricca_website/env/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 0x7f878dac3410> |
blocks | {u'content': <Block Node: content. Contents: [<TextNode: u'\n '>]>, u'head': <Block Node: head. Contents: [<TextNode: u'\n '>]>} |
compiled_parent | <django.template.base.Template object at 0x7f878d8bf790> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
node | <django.template.defaulttags.LoadNode object at 0x7f878da5fa90> |
self | <ExtendsNode: extends "base.html"> |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
self | <django.template.base.Template object at 0x7f878d8bf790> |
/var/www/ricca_website/env/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'"></script>\n\t\t\n\t\t<script type="text/javascript">\n\t\tvar _iub = _iub || [];\n\t\t_iub.csConfiguration = {"askConsentAtCookiePolicyUpdate":true,"floatingPreferencesButtonDisplay":"bottom-left","perPurposeConsent":true,"purposes":"2,1,3","siteId":3296160,"whitelabel":false,"cookiePolicyId":25755612,"lang":"it", "banner":{ "acceptButtonColor":"#CD001D","acceptButtonDisplay":true,"backgroundColor":"#FFFFFF","brandBackgroundColor":"#F2F2F2","brandTextColor":"#474353","closeButtonDisplay":false,"continueWithoutAcceptingButtonCaptionColor":"#000000","continueWithoutAcceptingButtonColor":"#F2F2F2","continueWithoutAcceptingButtonDisplay":true,"customizeButtonColor":"#474353","customizeButtonDisplay":true,"explicitWithdrawal":true,"listPurposes":true,"logo":"https://www.ricca-it.com/static/static/assets/riccait-logo.png","linksColor":"#0073CE","position":"float-bottom-left","rejectButtonColor":"#CD001D","rejectButtonDisplay":true,"textColor":"#000000" }};\n\t\t</script>\n\t\t<script type="text/javascript" src="https://cs.iubenda.com/autoblocking/3296160.js"></script>\n\t\t<script type="text/javascript" src="//cdn.iubenda.com/cs/iubenda_cs.js" charset="UTF-8" async></script>\n\n <!-- CSS Sekizai -->\n ' |
bits | [u'', u'\n<!DOCTYPE html>\n<html>\n <head>\n\n <!-- Basic -->\n <meta charset="utf-8">\n <meta http-equiv="X-UA-Compatible" content="IE=edge">\n\n <title>Ricca IT Srl -\n ', u'\n GDPR: Corso per Data Protection Officer\n ', u'\n </title>\n\n <meta name="keywords" content="\n ', u'\n \n ', u'\n "/>\n <meta name="description" content="', u'', u'Corso per figure professionali DPO in ambito GDPR.', u'">\n <meta name="author" content="Ricca IT Srl">\n\n <!-- Mobile Metas -->\n <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">\n\n <!-- Web Fonts -->\n\t\t<link rel="stylesheet" href="https://use.typekit.net/ibi6lak.css">\n\n <!-- Vendor CSS -->\n <link rel="stylesheet" href="', u'/static/static/theme/vendor/bootstrap/css/bootstrap.min.css', u'">\n <link rel="stylesheet" href="', u'/static/static/theme/vendor/fontawesome-free-6.4.0-web/css/fontawesome.min.css', u'">\n <link rel="stylesheet" href="', u'/static/static/theme/vendor/fontawesome-free-6.4.0-web/css/regular.css', u'">\n <link rel="stylesheet" href="', u'/static/static/theme/vendor/fontawesome-free-6.4.0-web/css/solid.css', u'">\n <link rel="stylesheet" href="', u'/static/static/theme/vendor/fontawesome-free-6.4.0-web/css/brands.css', u'">\n <link rel="stylesheet" href="', u'/static/static/theme/vendor/simple-line-icons/css/simple-line-icons.min.css', u'">\n <link rel="stylesheet" href="', u'/static/static/theme/vendor/owl.carousel/assets/owl.carousel.min.css', u'">\n <link rel="stylesheet" href="', u'/static/static/theme/vendor/owl.carousel/assets/owl.theme.default.min.css', u'">\n <link rel="stylesheet" href="', u'/static/static/theme/vendor/magnific-popup/magnific-popup.min.css', u'">\n\n <!-- Theme CSS -->\n <link rel="stylesheet" href="', u'/static/static/theme/css/theme.css', u'">\n <link rel="stylesheet" href="', u'/static/static/theme/css/theme-elements.css', u'">\n <link rel="stylesheet" href="', u'/static/static/theme/css/theme-animate.css', u'">\n <link rel="stylesheet" href="', u'/static/static/theme/css/theme-blog.css', u'">\n \n <!-- Current Page CSS -->\n <link rel="stylesheet" href="', u'/static/static/theme/vendor/circle-flip-slideshow/css/component.css', u'" media="screen">\n\n <!-- Skin CSS -->\n <link rel="stylesheet" href="', u'/static/static/theme/css/skins/skin-default.css', u'">\n\n <!-- Theme Custom CSS -->\n <link rel="stylesheet" href="', u'/static/static/theme/css/custom.css', u'">\n\n <!-- Head Libs -->\n <script src="', u'/static/static/theme/vendor/jquery/jquery.min.js', u'"></script>\n <script src="', u'/static/static/theme/vendor/modernizr/modernizr.min.js', u'"></script>\n\t\t\n\t\t<script type="text/javascript">\n\t\tvar _iub = _iub || [];\n\t\t_iub.csConfiguration = {"askConsentAtCookiePolicyUpdate":true,"floatingPreferencesButtonDisplay":"bottom-left","perPurposeConsent":true,"purposes":"2,1,3","siteId":3296160,"whitelabel":false,"cookiePolicyId":25755612,"lang":"it", "banner":{ "acceptButtonColor":"#CD001D","acceptButtonDisplay":true,"backgroundColor":"#FFFFFF","brandBackgroundColor":"#F2F2F2","brandTextColor":"#474353","closeButtonDisplay":false,"continueWithoutAcceptingButtonCaptionColor":"#000000","continueWithoutAcceptingButtonColor":"#F2F2F2","continueWithoutAcceptingButtonDisplay":true,"customizeButtonColor":"#474353","customizeButtonDisplay":true,"explicitWithdrawal":true,"listPurposes":true,"logo":"https://www.ricca-it.com/static/static/assets/riccait-logo.png","linksColor":"#0073CE","position":"float-bottom-left","rejectButtonColor":"#CD001D","rejectButtonDisplay":true,"textColor":"#000000" }};\n\t\t</script>\n\t\t<script type="text/javascript" src="https://cs.iubenda.com/autoblocking/3296160.js"... <trimmed 4259 bytes string> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
node | <Tag: render_block> |
self | [<django.template.defaulttags.LoadNode object at 0x7f878da5fa90>, <TextNode: u'\n<!DOCTYPE html>\n<html>\n '>, <IfNode>, <TextNode: u'\n </title>\n\n '>, <IfNode>, <TextNode: u'\n "/>\n '>, <Tag: page_attribute>, <Variable Node: article.meta_description>, <TextNode: u'">\n <meta name="au'>, <django.templatetags.static.StaticNode object at 0x7f878daf4ad0>, <TextNode: u'">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f878daf48d0>, <TextNode: u'">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f878daf4b90>, <TextNode: u'">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f878daf4bd0>, <TextNode: u'">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f878daf46d0>, <TextNode: u'">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f878daf4e50>, <TextNode: u'">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f878daf4dd0>, <TextNode: u'">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f878daf44d0>, <TextNode: u'">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f878daf4790>, <TextNode: u'">\n\n <!-- Theme CS'>, <django.templatetags.static.StaticNode object at 0x7f878daf4390>, <TextNode: u'">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f878daf4c90>, <TextNode: u'">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f878e0aba10>, <TextNode: u'">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f878e0abbd0>, <TextNode: u'">\n \n <!-- Current'>, <django.templatetags.static.StaticNode object at 0x7f878de51790>, <TextNode: u'" media="screen">\n\n '>, <django.templatetags.static.StaticNode object at 0x7f878de51050>, <TextNode: u'">\n\n <!-- Theme Cu'>, <django.templatetags.static.StaticNode object at 0x7f878de51210>, <TextNode: u'">\n\n <!-- Head Lib'>, <django.templatetags.static.StaticNode object at 0x7f878de51850>, <TextNode: u'"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f878de51d50>, <TextNode: u'"></script>\n\t\t\n\t\t<script '>, <Tag: render_block>] |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
self | <Tag: render_block> |
/var/www/ricca_website/env/lib/python2.7/site-packages/classytags/core.py
in render
"""
INTERNAL method to prepare rendering
Usually you should not override this method, but rather use render_tag.
"""
items = self.kwargs.items()
kwargs = dict([(key, value.resolve(context)) for key, value in items])
kwargs.update(self.blocks)
return self.render_tag(context, **kwargs)...
def render_tag(self, context, **kwargs):
"""
The method you should override in your custom tags
"""
raise NotImplementedError
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
items | [('name', <classytags.values.StringValue object at 0x7f878de514d0>), ('postprocessor', <TemplateConstant: None>)] |
key | 'postprocessor' |
kwargs | {'name': u'css', 'nodelist': [<TextNode: u'\n\n '>, <Block Node: head. Contents: [<TextNode: u'\n '>]>, <TextNode: u'\n\n </head>\n <body>\n'>, <Tag: cms_toolbar>], 'postprocessor': None} |
self | <Tag: render_block> |
value | <TemplateConstant: None> |
/var/www/ricca_website/env/lib/python2.7/site-packages/sekizai/templatetags/sekizai_tags.py
in render_tag
Argument('postprocessor', required=False, default=None, resolve=False),
parser_class=SekizaiParser,
)
def render_tag(self, context, name, postprocessor, nodelist):
if not validate_context(context):
return nodelist.render(context)
rendered_contents = nodelist.render(context)...
varname = get_varname()
data = '\n'.join(context[varname][name])
if postprocessor:
func = import_processor(postprocessor)
data = func(context, data, name)
return '%s\n%s' % (data, rendered_contents)
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
name | u'css' |
nodelist | [<TextNode: u'\n\n '>, <Block Node: head. Contents: [<TextNode: u'\n '>]>, <TextNode: u'\n\n </head>\n <body>\n'>, <Tag: cms_toolbar>] |
postprocessor | None |
self | <Tag: render_block> |
/var/www/ricca_website/env/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 </head>\n <body>\n\n ' |
bits | [u'\n\n ', u'\n\n', u'\n\n </head>\n <body>\n\n '] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
node | <Tag: cms_toolbar> |
self | [<TextNode: u'\n\n '>, <Block Node: head. Contents: [<TextNode: u'\n '>]>, <TextNode: u'\n\n </head>\n <body>\n'>, <Tag: cms_toolbar>] |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
self | <Tag: cms_toolbar> |
/var/www/ricca_website/env/lib/python2.7/site-packages/classytags/core.py
in render
"""
INTERNAL method to prepare rendering
Usually you should not override this method, but rather use render_tag.
"""
items = self.kwargs.items()
kwargs = dict([(key, value.resolve(context)) for key, value in items])
kwargs.update(self.blocks)
return self.render_tag(context, **kwargs)...
def render_tag(self, context, **kwargs):
"""
The method you should override in your custom tags
"""
raise NotImplementedError
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
items | [('name', <TemplateConstant: None>)] |
key | 'name' |
kwargs | {'name': None, 'nodelist': [<TextNode: u'\n\n <div class="body">\n'>, <django.templatetags.static.StaticNode object at 0x7f878de515d0>, <TextNode: u'">\n '>, <Tag: show_menu>, <TextNode: u'\n\n '>, <Block Node: content. Contents: [<TextNode: u'\n '>]>, <TextNode: u'\n <!-- End main Dj'>, <Tag: page_attribute>, <TextNode: u'\n '>, <IfNode>, <TextNode: u' -->\n '>, <django.templatetags.static.StaticNode object at 0x7f878d8cd810>, <TextNode: u'">\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</'>, <django.templatetags.static.StaticNode object at 0x7f878d8cd2d0>, <TextNode: u'" alt="UNI EN ISO 9001:20'>, <django.templatetags.static.StaticNode object at 0x7f878d8cdb50>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878d8cd8d0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878dcbf810>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878dcbf690>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878dcbfa50>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878dcbfc10>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878dcbf710>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da582d0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da588d0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da58ed0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da58bd0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da58f90>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da587d0>, <TextNode: u'"></script>\n\n <!-- The'>, <django.templatetags.static.StaticNode object at 0x7f878da58850>, <TextNode: u'"></script>\n\n <!-- Cur'>, <django.templatetags.static.StaticNode object at 0x7f878da58150>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da58e50>, <TextNode: u'"></script>\n\n <!-- The'>, <django.templatetags.static.StaticNode object at 0x7f878da58e10>, <TextNode: u'"></script>\n\n <!-- The'>, <django.templatetags.static.StaticNode object at 0x7f878da58890>, <TextNode: u'"></script>\n\n <script '>, <Tag: render_block>]} |
self | <Tag: cms_toolbar> |
value | <TemplateConstant: None> |
/var/www/ricca_website/env/lib/python2.7/site-packages/cms/templatetags/cms_tags.py
in render_tag
return nodelist.render(context)
toolbar = get_toolbar_from_request(request)
if toolbar and toolbar.show_toolbar:
toolbar.init_toolbar(request)
return toolbar.render_with_structure(context, nodelist)
return nodelist.render(context)...
class CMSEditableObject(InclusionTag):
"""
Templatetag that links a content extracted from a generic django model
to the model admin changeform.
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
name | None |
nodelist | [<TextNode: u'\n\n <div class="body">\n'>, <django.templatetags.static.StaticNode object at 0x7f878de515d0>, <TextNode: u'">\n '>, <Tag: show_menu>, <TextNode: u'\n\n '>, <Block Node: content. Contents: [<TextNode: u'\n '>]>, <TextNode: u'\n <!-- End main Dj'>, <Tag: page_attribute>, <TextNode: u'\n '>, <IfNode>, <TextNode: u' -->\n '>, <django.templatetags.static.StaticNode object at 0x7f878d8cd810>, <TextNode: u'">\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</'>, <django.templatetags.static.StaticNode object at 0x7f878d8cd2d0>, <TextNode: u'" alt="UNI EN ISO 9001:20'>, <django.templatetags.static.StaticNode object at 0x7f878d8cdb50>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878d8cd8d0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878dcbf810>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878dcbf690>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878dcbfa50>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878dcbfc10>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878dcbf710>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da582d0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da588d0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da58ed0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da58bd0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da58f90>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da587d0>, <TextNode: u'"></script>\n\n <!-- The'>, <django.templatetags.static.StaticNode object at 0x7f878da58850>, <TextNode: u'"></script>\n\n <!-- Cur'>, <django.templatetags.static.StaticNode object at 0x7f878da58150>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da58e50>, <TextNode: u'"></script>\n\n <!-- The'>, <django.templatetags.static.StaticNode object at 0x7f878da58e10>, <TextNode: u'"></script>\n\n <!-- The'>, <django.templatetags.static.StaticNode object at 0x7f878da58890>, <TextNode: u'"></script>\n\n <script '>, <Tag: render_block>] |
request | <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'> |
self | <Tag: cms_toolbar> |
toolbar | <cms.toolbar.toolbar.CMSToolbar object at 0x7f878d9eb210> |
/var/www/ricca_website/env/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 </ul>\n </nav>\n\t\t\t\t\t\t\t\t\t\t<div class="header-icon">\n\t\t\t\t\t\t\t\t\t\t\t<ul class="header-social-icons social-icons">\n\t\t\t\t\t\t\t\t\t\t\t\t<li class="social-icons-linkedin"><a href="https://www.linkedin.com/company/ricca-s-r-l-/" target="_blank"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t title="LinkedIn"><i class="fa-brands fa-linkedin-in"></i></a>\n\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t<li class="social-icons-facebook"><a href="https://www.facebook.com/riccaitsrl" target="_blank"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t title="Facebook"><i class="fa-brands fa-facebook-f"></i></a>\n\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t<li class="social-icons-facebook"><a href="https://www.instagram.com/ricca_it/" target="_blank"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t title="Facebook"><i class="fa-brands fa-instagram"></i></i></a>\n\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t<li class="social-icons-facebook"><a href="https://www.youtube.com/@riccaitsrl7588" target="_blank"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t title="Facebook"><i class="fa-brands fa-youtube"></i></a>\n\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t\t<a href="/it/supporto/" class="btn btn-primary"><i class="fa-solid fa-headset"></i>Supporto</a>\n\t\t\t\t\t\t\t\t\t\t</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </header>\n\n <!-- Main Django content block -->\n ' |
bits | [u'\n\n <div class="body">\n\n <!-- Load Facebook SDK for JavaScript -->\n <div id="fb-root"></div>\n <script>\n window.fbAsyncInit = function() {\n FB.init({\n xfbml : true,\n version : \'v7.0\'\n });\n };\n\n (function(d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id)) return;\n js = d.createElement(s); js.id = id;\n js.src = \'https://connect.facebook.net/it_IT/sdk/xfbml.customerchat.js\';\n fjs.parentNode.insertBefore(js, fjs);\n }(document, \'script\', \'facebook-jssdk\'));</script>\n\n <!-- Your customer chat code -->\n <div class="fb-customerchat"\n attribution=setup_tool\n page_id="110877520574338"\n theme_color="#0084ff"\n logged_in_greeting="Ciao! Come possiamo aiutarti? :)"\n logged_out_greeting="Ciao! Come possiamo aiutarti? :)">\n </div>\n\n <header id="header"\n data-plugin-options=\'{"stickyEnabled": true, "stickyEnableOnBoxed": true, "stickyEnableOnMobile": true, "stickyStartAt": 57, "stickySetTop": "-57px", "stickyChangeLogo": true}\'>\n <div class="header-body">\n <div class="header-container container">\n <div class="header-row">\n <div class="header-column_logo">\n <div class="header-logo">\n <a href="/">\n <img alt="Ricca IT" height="45" data-sticky-height="40" data-sticky-top="33"\n src="', u'/static/static/assets/riccait-logo.png', u'">\n </a>\n </div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<!-- Collapse button -->\n\t\t\t\t\t\t\t<button class="navbar-toggler first-button header-btn-collapse-nav" type="button" data-toggle="collapse" data-target=".header-nav-main"\n\t\t\t\t\t\t\t\taria-controls="navbarSupportedContent20" aria-expanded="false" aria-label="Toggle navigation">\n\t\t\t\t\t\t\t\t<div class="animated-icon1"><span></span><span></span><span></span></div>\n\t\t\t\t\t\t\t</button>\n </div>\n <div class="header-column_menu w_flex-1">\n <!--\n\t\t\t\t\t\t\t<div class="header-row">\n <nav class="header-nav-top">\n <ul class="nav nav-pills">\n <li>\n <a href="mailto:info@ricca-it.com"><i\n class="fa fa-envelope-o"></i>info@ricca-it.com</a>\n </li>\n <li>\n <span class="ws-nowrap"><i class="fa fa-phone"></i>(+39) 0932 668082</span>\n </li>\n </ul>\n </nav>\n </div>\n\t\t\t\t\t\t\t-->\n\t\t\t\t\t\t\t\t\t\n <div class="header-row">\n <div class="header-nav">\n\t\t\t\t\t\t\t\t\t\n <div class="header-nav-main header-nav-main-effect-1 header-nav-main-sub-effect-1 collapse">\n <nav>\n <ul class="nav nav-pills" id="mainNav">\n\n ', u'\n\n\n <li class="\n \n \n \n ">\n \n <a href="/it/"><span>Home</span></a>\n \n </li>\n \n\n <li class="\n \n dropdown\n \n ">\n \n <a class="dropdown-toggle" data-toggle="dropdown" href="#">\n Servizi\n ... <trimmed 11776 bytes string> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
node | <Block Node: content. Contents: [<TextNode: u'\n '>]> |
self | [<TextNode: u'\n\n <div class="body">\n'>, <django.templatetags.static.StaticNode object at 0x7f878de515d0>, <TextNode: u'">\n '>, <Tag: show_menu>, <TextNode: u'\n\n '>, <Block Node: content. Contents: [<TextNode: u'\n '>]>, <TextNode: u'\n <!-- End main Dj'>, <Tag: page_attribute>, <TextNode: u'\n '>, <IfNode>, <TextNode: u' -->\n '>, <django.templatetags.static.StaticNode object at 0x7f878d8cd810>, <TextNode: u'">\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</'>, <django.templatetags.static.StaticNode object at 0x7f878d8cd2d0>, <TextNode: u'" alt="UNI EN ISO 9001:20'>, <django.templatetags.static.StaticNode object at 0x7f878d8cdb50>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878d8cd8d0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878dcbf810>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878dcbf690>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878dcbfa50>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878dcbfc10>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878dcbf710>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da582d0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da588d0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da58ed0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da58bd0>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da58f90>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da587d0>, <TextNode: u'"></script>\n\n <!-- The'>, <django.templatetags.static.StaticNode object at 0x7f878da58850>, <TextNode: u'"></script>\n\n <!-- Cur'>, <django.templatetags.static.StaticNode object at 0x7f878da58150>, <TextNode: u'"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f878da58e50>, <TextNode: u'"></script>\n\n <!-- The'>, <django.templatetags.static.StaticNode object at 0x7f878da58e10>, <TextNode: u'"></script>\n\n <!-- The'>, <django.templatetags.static.StaticNode object at 0x7f878da58890>, <TextNode: u'"></script>\n\n <script '>, <Tag: render_block>] |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
self | <Block Node: content. Contents: [<TextNode: u'\n '>]> |
/var/www/ricca_website/env/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: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f878dac3410> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
push | <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]> |
self | <Block Node: content. Contents: [<TextNode: u'\n '>]> |
/var/www/ricca_website/env/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'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n </div>\n </section>\n\n <div class="container">\n <div class="row">\n <div class="col-md-9">\n <div class="blog-posts">\n\n ' |
bits | [u'\n\n <div role="main" class="main ', u'', u'" ', u' id="blog-archive_single" ', u'>\n\n <section class="page-header">\n\t\t\t<div class="page-header_inner">\n\t\t\t\t<div class="container">\n\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t<div class="col-md-7">\n\t\t\t\t\t\t\t<h1>', u'Eventi', u'</h1>\n\t\t\t\t\t\t\t<div class="subtitle">Rimani aggiornato sul mondo RiccaIT</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-md-5">\n\t\t\t\t\t\t\t<ul class="breadcrumb">\n\t\t\t\t\t\t\t\t<li><a href="/">Home</a></li>\n\t\t\t\t\t\t\t\t<li>Blog</li>\n\t\t\t\t\t\t\t\t', u'\n\t\t\t\t\t\t\t\t\t<li><a href="/eventi/">Eventi</a></li>\n\t\t\t\t\t\t\t\t', u'\n\t\t\t\t\t\t\t\t<li class="active">', u'\n GDPR: Corso per Data Protection Officer\n', u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n </div>\n </section>\n\n <div class="container">\n <div class="row">\n <div class="col-md-9">\n <div class="blog-posts">\n\n '] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
node | <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]> |
self | [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>] |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
self | <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]> |
/var/www/ricca_website/env/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: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f878dac3410> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
push | <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]> |
self | <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]> |
/var/www/ricca_website/env/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 '] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
node | <django.template.loader_tags.IncludeNode object at 0x7f878da5b610> |
self | [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>] |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
self | <django.template.loader_tags.IncludeNode object at 0x7f878da5b610> |
/var/www/ricca_website/env/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'aldryn_newsblog/includes/article.html': <django.template.base.Template object at 0x7f878dc87250>} |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
self | <django.template.loader_tags.IncludeNode object at 0x7f878da5b610> |
template | <django.template.base.Template object at 0x7f878dc87250> |
template_name | u'aldryn_newsblog/includes/article.html' |
values | {u'detail_view': u'true'} |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
self | <django.template.base.Template object at 0x7f878dc87250> |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
self | <django.template.base.Template object at 0x7f878dc87250> |
/var/www/ricca_website/env/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\n<article class="post blog-card">\n\n ', u'\n\n <!-- POST IMAGE -->\n ', u'\n <div class="blog-card_img">\n \n <img class="img-thumbnail" src="/static/media/filer_public_thumbnails/filer_public/12/ea/12ea0bc2-04ad-492f-b06c-b5da885a3a1c/privacy-team-gdpr-170623100904.jpg__1280x500_q85_crop_subsampling-2.jpg" alt="" />\n \n </div>\n ', u'\n <!-- // END POST IMAGE -->\n\n <!-- POST CONTENT -->\n <div class="post-content">\n\n\t\t<!-- POST DATE --> \n\t\t<span>', u'14', u' ', u'Luglio', u' ', u'2017', u'</span>\n\t\t<!-- // END POST DATE -->\n\n <h2>\n ', u'\n GDPR: Corso per Data Protection Officer\n ', u'\n </h2>\n\n ', u'', u'\n\n <div class="post-meta">\n\t\t\t', u'\n\t\t\t\t<span>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<i class="fa fa-tag"></i>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<a href="/it/eventi/category/privacy/">Privacy</a>\n\t\t\t\t\t<!-- , -->\n\t\t\t\t</span>\n\t\t\t\n\t\t\t\t<span>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<a href="/it/eventi/category/gdpr/">GDPR</a>\n\t\t\t\t\t\n\t\t\t\t</span>\n\t\t\t', u'\n </div>\n\n\t\t', u'', u'\n\n ', u'', u'\n '] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
node | <IfNode> |
self | [<django.template.defaulttags.LoadNode object at 0x7f878d9baa90>, <TextNode: u'\n\n<article class="post bl'>, <TextNode: u'\n\n <!-- POST IMAGE -->'>, <IfNode>, <TextNode: u'\n <!-- // END POST IMA'>, <Variable Node: article.publishing_date|date:"d">, <TextNode: u' '>, <Variable Node: article.publishing_date|date:"F">, <TextNode: u' '>, <Variable Node: article.publishing_date|date:"Y">, <TextNode: u'</span>\n\t\t<!-- // END POS'>, <IfNode>, <TextNode: u'\n </h2>\n\n '>, <IfNode>, <TextNode: u'\n\n <div class="pos'>, <For Node: for category in article.categories.all, tail_len: 9>, <TextNode: u'\n </div>\n\n\t\t'>, <IfNode>, <TextNode: u'\n\n '>, <django.template.defaulttags.CommentNode object at 0x7f878d9ba8d0>, <TextNode: u'\n '>, <IfNode>, <TextNode: u'\n </div>\n <!-- // E'>] |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
self | <IfNode> |
/var/www/ricca_website/env/lib/python2.7/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 0x7f878d7e8910>) |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
match | u'true' |
nodelist | [<TextNode: u'\n <p></p>\n '>, <Tag: render_placeholder>, <TextNode: u'\n '>] |
self | <IfNode> |
/var/www/ricca_website/env/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 <p></p>\n ' |
bits | [u'\n <p></p>\n '] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
node | <Tag: render_placeholder> |
self | [<TextNode: u'\n <p></p>\n '>, <Tag: render_placeholder>, <TextNode: u'\n '>] |
/var/www/ricca_website/env/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}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
self | <Tag: render_placeholder> |
/var/www/ricca_website/env/lib/python2.7/site-packages/classytags/core.py
in render
"""
INTERNAL method to prepare rendering
Usually you should not override this method, but rather use render_tag.
"""
items = self.kwargs.items()
kwargs = dict([(key, value.resolve(context)) for key, value in items])
kwargs.update(self.blocks)
return self.render_tag(context, **kwargs)...
def render_tag(self, context, **kwargs):
"""
The method you should override in your custom tags
"""
raise NotImplementedError
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
items | [('width', <TemplateConstant: None>), ('placeholder', <classytags.values.StringValue object at 0x7f878d7e80d0>), ('language', <classytags.values.StringValue object at 0x7f878d7e8d90>), ('varname', <TemplateConstant: None>)] |
key | 'varname' |
kwargs | {'language': '', 'placeholder': <cms.models.placeholdermodel.Placeholder id=371 slot='newsblog_article_content' object at 0x7f878d9bac90>, 'varname': None, 'width': None} |
self | <Tag: render_placeholder> |
value | <TemplateConstant: None> |
/var/www/ricca_website/env/lib/python2.7/site-packages/classytags/helpers.py
in render_tag
"""
varname = kwargs.pop(self.varname_name)
if varname:
value = self.get_value_for_context(context, **kwargs)
context[varname] = value
return ''
else:
value = self.get_value(context, **kwargs)...
return value
def get_value_for_context(self, context, **kwargs):
"""
Called when a value for a varname (in the "as varname" case) should is
requested. This can be used to for example suppress exceptions in this
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
kwargs | {'language': '', 'placeholder': <cms.models.placeholdermodel.Placeholder id=371 slot='newsblog_article_content' object at 0x7f878d9bac90>, 'width': None} |
self | <Tag: render_placeholder> |
varname | None |
/var/www/ricca_website/env/lib/python2.7/site-packages/cms/templatetags/cms_tags.py
in get_value
)
return content
def get_value_for_context(self, context, **kwargs):
return self._get_value(context, editable=False, **kwargs)
def get_value(self, context, **kwargs):
return self._get_value(context, **kwargs)...
class RenderUncachedPlaceholder(RenderPlaceholder):
"""
Uncached version of RenderPlaceholder
This templatetag will neither get the result from cache, nor will update
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
kwargs | {'language': '', 'placeholder': <cms.models.placeholdermodel.Placeholder id=371 slot='newsblog_article_content' object at 0x7f878d9bac90>, 'width': None} |
self | <Tag: render_placeholder> |
/var/www/ricca_website/env/lib/python2.7/site-packages/cms/templatetags/cms_tags.py
in _get_value
content = renderer.render_placeholder(
placeholder=placeholder,
context=context,
language=kwargs.get('language'),
editable=editable,
use_cache=not nocache,
width=kwargs.get('width'),...
)
return content
def get_value_for_context(self, context, **kwargs):
return self._get_value(context, editable=False, **kwargs)
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
editable | True |
kwargs | {'language': '', 'placeholder': <cms.models.placeholdermodel.Placeholder id=371 slot='newsblog_article_content' object at 0x7f878d9bac90>, 'width': None} |
nocache | False |
placeholder | <cms.models.placeholdermodel.Placeholder id=371 slot='newsblog_article_content' object at 0x7f878d9bac90> |
renderer | <cms.plugin_rendering.LegacyRenderer object at 0x7f878d7e2c50> |
request | <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'> |
self | <Tag: render_placeholder> |
toolbar | <cms.toolbar.toolbar.CMSToolbar object at 0x7f878d9eb210> |
/var/www/ricca_website/env/lib/python2.7/site-packages/cms/plugin_rendering.py
in render_placeholder
plugin_content = self.render_plugins(
placeholder,
language=language,
context=context,
editable=editable,
template=template,
)
placeholder_content = ''.join(plugin_content)...
if not placeholder_content and nodelist:
# should be nodelist from a template
placeholder_content = nodelist.render(context)
if use_cache:
Variable | Value |
---|---|
Watcher | <class 'sekizai.helpers.Watcher'> |
cached_value | None |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
editable | False |
language | 'it' |
nodelist | None |
page | None |
placeholder | <cms.models.placeholdermodel.Placeholder id=371 slot='newsblog_article_content' object at 0x7f878d9bac90> |
plugin_content | <generator object render_plugins at 0x7f878d9bddc0> |
self | <cms.plugin_rendering.LegacyRenderer object at 0x7f878d7e2c50> |
template | None |
use_cache | True |
watcher | <sekizai.helpers.Watcher object at 0x7f878d7e8150> |
width | None |
/var/www/ricca_website/env/lib/python2.7/site-packages/cms/plugin_rendering.py
in render_plugins
placeholder=placeholder,
template=template,
language=language,
)
for plugin in plugins:
plugin._placeholder_cache = placeholder
yield self.render_plugin(plugin, context, placeholder, editable)...
def _get_cached_placeholder_content(self, placeholder, language):
"""
Returns a dictionary mapping placeholder content and sekizai data.
Returns None if no cache is present.
"""
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'extra_active': 100, 'to_level': 100, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'namespace': None, 'from_level': 0, 'extra_inactive': 100, 'template': 'menu/menu.html', u'prev_article': <Article: Ricca GT 2017>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}, {'block': <Block Node: content. Contents: [<TextNode: u'\n\n <div role="main" cl'>, <IfNode>, <TextNode: u'" '>, <IfNode>, <TextNode: u'>\n\n <section class'>, <Tag: page_attribute>, <TextNode: u'</h1>\n\t\t\t\t\t\t\t<div class="'>, <IfNode>, <TextNode: u'\n\t\t\t\t\t\t\t\t<li class="activ'>, <Block Node: title. Contents: [<TextNode: u'\n\t\t\t\t\t\t\t\t\t'>, <Tag: page_attribute>, <TextNode: u'\n\t\t\t\t\t\t\t\t'>]>, <TextNode: u'</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t'>, <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </d'>, <Tag: static_placeholder>, <TextNode: u'\n\n </a'>, <Block Node: newblog_content_bottom. Contents: [<TextNode: u'\n '>, <TextNode: u'\n '>]>, <TextNode: u'\n\n </div>\n '>]>}] |
editable | False |
language | 'it' |
placeholder | <cms.models.placeholdermodel.Placeholder id=371 slot='newsblog_article_content' object at 0x7f878d9bac90> |
plugin | <djangocms_text_ckeditor.models.Text id=3464 plugin_type='TextPlugin' object at 0x7f878daec490> |
plugins | [<djangocms_text_ckeditor.models.Text id=3453 plugin_type='TextPlugin' object at 0x7f878daec190>, <cms.models.pluginmodel.CMSPlugin id=3455 plugin_type='AccordionPlugin' object at 0x7f878daec150>, <aldryn_bootstrap3.models.Bootstrap3FilePlugin id=3461 plugin_type='Bootstrap3FileCMSPlugin' object at 0x7f878daec590>, <djangocms_text_ckeditor.models.Text id=3464 plugin_type='TextPlugin' object at 0x7f878daec490>, <djangocms_snippet.models.SnippetPtr id=3466 plugin_type='SnippetPlugin' object at 0x7f878daec250>] |
self | <cms.plugin_rendering.LegacyRenderer object at 0x7f878d7e2c50> |
template | None |
/var/www/ricca_website/env/lib/python2.7/site-packages/cms/plugin_rendering.py
in render_plugin
# we'd better pass a flat dict to template.render
# as plugin.render can return pretty much any kind of context / dictionary
# we'd better flatten it and force to a Context object
# flattening the context means that template must be an engine-specific template object
# which is guaranteed by get_cached_template if the template returned by
# plugin._get_render_template is either a string or an engine-specific template object
context = PluginContext(context, instance, placeholder)
context = plugin.render(context, instance, placeholder.slot)...
context = flatten_context(context)
template = plugin._get_render_template(context, instance, placeholder)
template = self.templates.get_cached_template(template)
content = template.render(context)
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {'None': None, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, u'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, u'STATIC_URL': '/static/static/', 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'from_level': 0, 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'False': False, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, u'TIME_ZONE': 'Europe/Rome', u'detail_view': u'true', 'to_level': 100, 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, 'template': 'menu/menu.html', 'CMS_MEDIA_URL': '/static/media/cms/', 'extra_inactive': 100, 'namespace': None, 'True': True, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/static/media/'}] |
editable | False |
instance | <djangocms_text_ckeditor.models.Text id=3464 plugin_type='TextPlugin' object at 0x7f878daec490> |
placeholder | <cms.models.placeholdermodel.Placeholder id=371 slot='newsblog_article_content' object at 0x7f878d9bac90> |
plugin | Error in formatting: TypeError: __repr__ returned non-string (type __proxy__) |
self | <cms.plugin_rendering.LegacyRenderer object at 0x7f878d7e2c50> |
/var/www/ricca_website/env/lib/python2.7/site-packages/djangocms_text_ckeditor/cms_plugins.py
in render
kwargs['form'] = form # override standard form
return super(TextPlugin, self).get_form(request, obj, **kwargs)
def render(self, context, instance, placeholder):
context.update({
'body': plugin_tags_to_user_html(
instance.body,
context,...
),
'placeholder': placeholder,
'object': instance
})
return context
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {'None': None, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, u'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, u'STATIC_URL': '/static/static/', 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'from_level': 0, 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'False': False, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, u'TIME_ZONE': 'Europe/Rome', u'detail_view': u'true', 'to_level': 100, 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, 'template': 'menu/menu.html', 'CMS_MEDIA_URL': '/static/media/cms/', 'extra_inactive': 100, 'namespace': None, 'True': True, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/static/media/'}] |
instance | <djangocms_text_ckeditor.models.Text id=3464 plugin_type='TextPlugin' object at 0x7f878daec490> |
placeholder | u'newsblog_article_content' |
self | Error in formatting: TypeError: __repr__ returned non-string (type __proxy__) |
/var/www/ricca_website/env/lib/python2.7/site-packages/djangocms_text_ckeditor/utils.py
in plugin_tags_to_user_html
return output_func(obj, m)
return OBJ_ADMIN_RE.sub(_render_tag, text)
def plugin_tags_to_user_html(text, context):
def _render_plugin(obj, match):
return _render_cms_plugin(obj, context)
return _plugin_tags_to_html(text, output_func=_render_plugin)...
def plugin_tags_to_admin_html(text, context):
def _render_plugin(obj, match):
plugin_content = _render_cms_plugin(obj, context)
return plugin_to_tag(obj, content=plugin_content, admin=True)
Variable | Value |
---|---|
_render_plugin | <function _render_plugin at 0x7f878dafcbd0> |
context | [{'False': False, 'None': None, 'True': True}, {'None': None, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, u'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, u'STATIC_URL': '/static/static/', 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'from_level': 0, 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'False': False, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, u'TIME_ZONE': 'Europe/Rome', u'detail_view': u'true', 'to_level': 100, 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, 'template': 'menu/menu.html', 'CMS_MEDIA_URL': '/static/media/cms/', 'extra_inactive': 100, 'namespace': None, 'True': True, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/static/media/'}] |
text | u'<h4>\xa0</h4>\n\n<h5>Prezzo del corso:\xa0\u20ac 1200,00 / persona<br>\nSede: Catania</h5>\n\n<p>Per maggiorni informazioni:</p>\n\n<p><cms-plugin id="3465" alt="Link/Button - Contattaci adesso " title="Link/Button - Contattaci adesso"></cms-plugin></p>' |
/var/www/ricca_website/env/lib/python2.7/site-packages/djangocms_text_ckeditor/utils.py
in _plugin_tags_to_html
except KeyError:
# Object must have been deleted. It cannot be rendered to
# end user so just remove it from the HTML altogether
return u''
else:
obj._render_meta.text_enabled = True
return output_func(obj, m)
return OBJ_ADMIN_RE.sub(_render_tag, text)...
def plugin_tags_to_user_html(text, context):
def _render_plugin(obj, match):
return _render_cms_plugin(obj, context)
return _plugin_tags_to_html(text, output_func=_render_plugin)
Variable | Value |
---|---|
_render_tag | <function _render_tag at 0x7f878dabd450> |
output_func | <function _render_plugin at 0x7f878dafcbd0> |
plugins_by_id | {3465L: <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>} |
text | u'<h4>\xa0</h4>\n\n<h5>Prezzo del corso:\xa0\u20ac 1200,00 / persona<br>\nSede: Catania</h5>\n\n<p>Per maggiorni informazioni:</p>\n\n<p><cms-plugin id="3465" alt="Link/Button - Contattaci adesso " title="Link/Button - Contattaci adesso"></cms-plugin></p>' |
/var/www/ricca_website/env/lib/python2.7/site-packages/djangocms_text_ckeditor/utils.py
in _render_tag
obj = plugins_by_id[plugin_id]
except KeyError:
# Object must have been deleted. It cannot be rendered to
# end user so just remove it from the HTML altogether
return u''
else:
obj._render_meta.text_enabled = True
return output_func(obj, m)...
return OBJ_ADMIN_RE.sub(_render_tag, text)
def plugin_tags_to_user_html(text, context):
def _render_plugin(obj, match):
return _render_cms_plugin(obj, context)
Variable | Value |
---|---|
m | <_sre.SRE_Match object at 0x7f878dabdbb0> |
obj | <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150> |
output_func | <function _render_plugin at 0x7f878dafcbd0> |
plugin_id | 3465 |
plugins_by_id | {3465L: <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>} |
/var/www/ricca_website/env/lib/python2.7/site-packages/djangocms_text_ckeditor/utils.py
in _render_plugin
obj._render_meta.text_enabled = True
return output_func(obj, m)
return OBJ_ADMIN_RE.sub(_render_tag, text)
def plugin_tags_to_user_html(text, context):
def _render_plugin(obj, match):
return _render_cms_plugin(obj, context)...
return _plugin_tags_to_html(text, output_func=_render_plugin)
def plugin_tags_to_admin_html(text, context):
def _render_plugin(obj, match):
plugin_content = _render_cms_plugin(obj, context)
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {'None': None, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, u'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, u'STATIC_URL': '/static/static/', 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'from_level': 0, 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'False': False, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, u'TIME_ZONE': 'Europe/Rome', u'detail_view': u'true', 'to_level': 100, 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, 'template': 'menu/menu.html', 'CMS_MEDIA_URL': '/static/media/cms/', 'extra_inactive': 100, 'namespace': None, 'True': True, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/static/media/'}] |
match | <_sre.SRE_Match object at 0x7f878dabdbb0> |
obj | <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150> |
/var/www/ricca_website/env/lib/python2.7/site-packages/djangocms_text_ckeditor/utils.py
in _render_cms_plugin
# The compromise is to render a template so that Django binds the context to it
# and thus calls context processors AND render the plugin manually with the context
# after it's been bound to a template.
response = render_to_string(
'cms/plugins/render_plugin_preview.html',
context,
request=context['request'],...
)
return response
def random_comment_exempt(view_func):
# Borrowed from
Variable | Value |
---|---|
context | {'CMS_MEDIA_URL': '/static/media/cms/', 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'ERROR': 40, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30}, 'False': False, u'LANGUAGES': (('it', 'it'), ('en', 'en')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'it', u'MEDIA_URL': '/static/media/', 'None': None, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), u'STATIC_URL': '/static/static/', u'TIME_ZONE': 'Europe/Rome', 'True': True, 'article': <Article: GDPR: Corso per Data Protection Officer>, 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, u'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, u'detail_view': u'true', 'extra_active': 100, 'extra_inactive': 100, 'from_level': 0, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'namespace': None, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'prev_article': <Article: Ricca GT 2017>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'template': 'menu/menu.html', 'to_level': 100, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>} |
plugin | <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150> |
/var/www/ricca_website/env/lib/python2.7/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 | {'CMS_MEDIA_URL': '/static/media/cms/', 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'ERROR': 40, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30}, 'False': False, u'LANGUAGES': (('it', 'it'), ('en', 'en')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'it', u'MEDIA_URL': '/static/media/', 'None': None, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), u'STATIC_URL': '/static/static/', u'TIME_ZONE': 'Europe/Rome', 'True': True, 'article': <Article: GDPR: Corso per Data Protection Officer>, 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, u'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, u'detail_view': u'true', 'extra_active': 100, 'extra_inactive': 100, 'from_level': 0, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'namespace': None, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'prev_article': <Article: Ricca GT 2017>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'template': 'menu/menu.html', 'to_level': 100, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>} |
request | <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'> |
template | <django.template.backends.django.Template object at 0x7f878dac1390> |
template_name | 'cms/plugins/render_plugin_preview.html' |
using | None |
/var/www/ricca_website/env/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'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, 'extra_inactive': 100, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/static/media/'}] |
request | <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'> |
self | <django.template.backends.django.Template object at 0x7f878dac1390> |
/var/www/ricca_website/env/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'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, 'extra_inactive': 100, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/static/media/'}] |
self | <django.template.base.Template object at 0x7f878da8fd10> |
/var/www/ricca_website/env/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'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, 'extra_inactive': 100, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/static/media/'}] |
self | <django.template.base.Template object at 0x7f878da8fd10> |
/var/www/ricca_website/env/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'' |
bits | [u''] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, 'extra_inactive': 100, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/static/media/'}] |
node | <django.template.library.SimpleNode object at 0x7f878dabb510> |
self | [<django.template.defaulttags.LoadNode object at 0x7f878dabb690>, <django.template.library.SimpleNode object at 0x7f878dabb510>] |
/var/www/ricca_website/env/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'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, 'extra_inactive': 100, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/static/media/'}] |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
self | <django.template.library.SimpleNode object at 0x7f878dabb510> |
/var/www/ricca_website/env/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'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, 'extra_inactive': 100, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/static/media/'}] |
resolved_args | [[{'False': False, 'None': None, 'True': True}, {}, {}, {u'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, 'extra_inactive': 100, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/static/media/'}], <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>] |
resolved_kwargs | {} |
self | <django.template.library.SimpleNode object at 0x7f878dabb510> |
/var/www/ricca_website/env/lib/python2.7/site-packages/djangocms_text_ckeditor/templatetags/djangocms_text_ckeditor_tags.py
in render_plugin_preview
from cms.plugin_rendering import ContentRenderer
content_renderer = ContentRenderer(request)
content = content_renderer.render_plugin(
instance=plugin,
context=context,
editable=False,...
)
return content
Variable | Value |
---|---|
content_renderer | <cms.plugin_rendering.ContentRenderer object at 0x7f878daecd90> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, 'extra_inactive': 100, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>, u'LANGUAGE_BIDI': False, u'MEDIA_URL': '/static/media/'}] |
plugin | <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150> |
request | <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'> |
/var/www/ricca_website/env/lib/python2.7/site-packages/cms/plugin_rendering.py
in render_plugin
context = PluginContext(context, instance, placeholder)
context = plugin.render(context, instance, placeholder.slot)
context = flatten_context(context)
template = plugin._get_render_template(context, instance, placeholder)
template = self.templates.get_cached_template(template)
content = template.render(context)...
for path in get_cms_setting('PLUGIN_PROCESSORS'):
processor = import_string(path)
content = processor(instance, placeholder, content, context)
if editable:
Variable | Value |
---|---|
context | {'CMS_MEDIA_URL': '/static/media/cms/', 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'ERROR': 40, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30}, 'False': False, u'LANGUAGES': (('it', 'it'), ('en', 'en')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'it', u'MEDIA_URL': '/static/media/', 'None': None, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), u'STATIC_URL': '/static/static/', u'TIME_ZONE': 'Europe/Rome', 'True': True, 'article': <Article: GDPR: Corso per Data Protection Officer>, 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, u'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, u'detail_view': u'true', 'extra_active': 100, 'extra_inactive': 100, 'from_level': 0, 'instance': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'namespace': None, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'object': <Article: GDPR: Corso per Data Protection Officer>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'placeholder': u'newsblog_article_content', 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'prev_article': <Article: Ricca GT 2017>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'template': 'menu/menu.html', 'to_level': 100, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>} |
editable | False |
instance | <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150> |
placeholder | <cms.models.placeholdermodel.Placeholder id=371 slot='newsblog_article_content' object at 0x7f878dac0210> |
plugin | Error in formatting: TypeError: __repr__ returned non-string (type __proxy__) |
self | <cms.plugin_rendering.ContentRenderer object at 0x7f878daecd90> |
template | <django.template.backends.django.Template object at 0x7f878da8fc10> |
/var/www/ricca_website/env/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'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'instance': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'placeholder': u'newsblog_article_content', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'LANGUAGE_BIDI': False, 'extra_inactive': 100, u'MEDIA_URL': '/static/media/', 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}] |
request | None |
self | <django.template.backends.django.Template object at 0x7f878da8fc10> |
/var/www/ricca_website/env/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'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'instance': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'placeholder': u'newsblog_article_content', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'LANGUAGE_BIDI': False, 'extra_inactive': 100, u'MEDIA_URL': '/static/media/', 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}] |
self | <django.template.base.Template object at 0x7f878d9c9610> |
/var/www/ricca_website/env/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'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'instance': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'placeholder': u'newsblog_article_content', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'LANGUAGE_BIDI': False, 'extra_inactive': 100, u'MEDIA_URL': '/static/media/', 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}] |
self | <django.template.base.Template object at 0x7f878d9c9610> |
/var/www/ricca_website/env/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'<a href="' |
bits | [u'', u'<a href="'] |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'instance': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'placeholder': u'newsblog_article_content', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'LANGUAGE_BIDI': False, 'extra_inactive': 100, u'MEDIA_URL': '/static/media/', 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}] |
node | <Variable Node: instance.get_link_url> |
self | [<django.template.defaulttags.LoadNode object at 0x7f878d92d110>, <TextNode: u'<a href="'>, <Variable Node: instance.get_link_url>, <TextNode: u'"\n '>, <IfNode>, <TextNode: u'\n '>, <IfNode>, <TextNode: u'\n '>, <IfNode>, <TextNode: u'\n '>, <Variable Node: instance.link_attributes_str>, <TextNode: u'\n >'>, <django.template.defaulttags.SpacelessNode object at 0x7f878d92d050>, <TextNode: u'</a>'>] |
/var/www/ricca_website/env/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'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'instance': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'placeholder': u'newsblog_article_content', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'LANGUAGE_BIDI': False, 'extra_inactive': 100, u'MEDIA_URL': '/static/media/', 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}] |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
self | <Variable Node: instance.get_link_url> |
/var/www/ricca_website/env/lib/python2.7/site-packages/django/template/base.py
in render
self.filter_expression = filter_expression
def __repr__(self):
return "<Variable Node: %s>" % self.filter_expression
def render(self, context):
try:
output = self.filter_expression.resolve(context)...
except UnicodeDecodeError:
# Unicode conversion can fail sometimes for reasons out of our
# control (e.g. exception rendering). In that case, we fail
# quietly.
return ''
return render_value_in_context(output, context)
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'instance': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'placeholder': u'newsblog_article_content', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'LANGUAGE_BIDI': False, 'extra_inactive': 100, u'MEDIA_URL': '/static/media/', 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}] |
self | <Variable Node: instance.get_link_url> |
/var/www/ricca_website/env/lib/python2.7/site-packages/django/template/base.py
in resolve
self.filters = filters
self.var = var_obj
def resolve(self, context, ignore_failures=False):
if isinstance(self.var, Variable):
try:
obj = self.var.resolve(context)...
except VariableDoesNotExist:
if ignore_failures:
obj = None
else:
string_if_invalid = context.template.engine.string_if_invalid
if string_if_invalid:
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'instance': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'placeholder': u'newsblog_article_content', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'LANGUAGE_BIDI': False, 'extra_inactive': 100, u'MEDIA_URL': '/static/media/', 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}] |
ignore_failures | False |
self | <django.template.base.FilterExpression object at 0x7f878d92d190> |
/var/www/ricca_website/env/lib/python2.7/site-packages/django/template/base.py
in resolve
var)
self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR))
def resolve(self, context):
"""Resolve this variable against a given context."""
if self.lookups is not None:
# We're dealing with a variable that needs to be resolved
value = self._resolve_lookup(context)...
else:
# We're dealing with a literal, so it's already been "resolved"
value = self.literal
if self.translate:
is_safe = isinstance(value, SafeData)
msgid = value.replace('%', '%%')
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'instance': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'placeholder': u'newsblog_article_content', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'LANGUAGE_BIDI': False, 'extra_inactive': 100, u'MEDIA_URL': '/static/media/', 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}] |
self | <Variable: u'instance.get_link_url'> |
/var/www/ricca_website/env/lib/python2.7/site-packages/django/template/base.py
in _resolve_lookup
if callable(current):
if getattr(current, 'do_not_call_in_templates', False):
pass
elif getattr(current, 'alters_data', False):
current = context.template.engine.string_if_invalid
else:
try: # method call (assuming no args required)
current = current()...
except TypeError:
try:
inspect.getcallargs(current)
except TypeError: # arguments *were* required
current = context.template.engine.string_if_invalid # invalid method call
else:
Variable | Value |
---|---|
bit | u'get_link_url' |
context | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <SimpleLazyObject: <function _get_val at 0x7f878d9efa50>>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f878dac3290>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f878d7bef90>, 'cms_menu_renderer': <menus.menu_pool.MenuRenderer object at 0x7f878da58a10>, 'extra_active': 100, 'SEKIZAI_CONTENT_HOLDER': defaultdict(<class 'sekizai.data.UniqueSequence'>, {}), 'CMS_TEMPLATE': <function <lambda> at 0x7f878d89d050>, u'LANGUAGE_CODE': 'it', u'prev_article': <Article: Ricca GT 2017>, 'children': [<Navigation Node: Home>, <Navigation Node: Servizi>, <Navigation Node: Azienda>, <Navigation Node: News>, <Navigation Node: Eventi>, <Navigation Node: Media>, <Navigation Node: Contatti>], 'namespace': None, u'TIME_ZONE': 'Europe/Rome', 'instance': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, 'template': 'menu/menu.html', 'True': True, 'None': None, 'to_level': 100, 'CMS_MEDIA_URL': '/static/media/cms/', u'object': <Article: GDPR: Corso per Data Protection Officer>, 'from_level': 0, u'STATIC_URL': '/static/static/', u'LANGUAGES': (('it', 'it'), ('en', 'en')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f878d9ebdd0>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'detail_view': u'true', 'placeholder': u'newsblog_article_content', 'False': False, 'plugin': <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>, u'next_article': <Article: Evento Sicurezza Informatica - #IDontWannaCry>, u'request': <WSGIRequest: GET '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/'>, 'article': <Article: GDPR: Corso per Data Protection Officer>, u'LANGUAGE_BIDI': False, 'extra_inactive': 100, u'MEDIA_URL': '/static/media/', 'block': <Block Node: newsblog_content. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f878da5b610>, <TextNode: u'\n\n '>, <Tag: static_placeholder>, <TextNode: u'\n\n'>]>, u'view': <aldryn_newsblog.views.ArticleDetail object at 0x7f878d7e5450>}] |
current | <bound method Boostrap3ButtonPlugin.get_link_url of <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150>> |
e | AttributeError("'Page' object has no attribute 'site_id'",) |
self | <Variable: u'instance.get_link_url'> |
template_name | u'aldryn_bootstrap3/plugins/button.html' |
/var/www/ricca_website/env/lib/python2.7/site-packages/aldryn_bootstrap3/model_fields.py
in get_link_url
abstract = True
def get_link_url(self):
if self.link_page:
ref_page = self.link_page
link = ref_page.get_absolute_url()
if ref_page.site_id != getattr(self.page, 'site_id', None):...
ref_site = Site.objects._get_site_by_id(ref_page.site_id)
link = '//{}{}'.format(ref_site.domain, link)
elif self.link_url:
link = self.link_url
elif self.link_phone:
link = 'tel:{}'.format(self.link_phone.replace(' ', ''))
Variable | Value |
---|---|
link | u'/it/contatti/' |
ref_page | <cms.models.pagemodel.Page id=10 is_draft=True object at 0x7f878dac0290> |
self | <aldryn_bootstrap3.models.Boostrap3ButtonPlugin id=3465 plugin_type='Bootstrap3ButtonCMSPlugin' object at 0x7f878dac0150> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTEXT_DOCUMENT_ROOT | '/var/www/ricca_website' |
CONTEXT_PREFIX | '' |
DOCUMENT_ROOT | '/var/www/ricca_website' |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'ricca-it.com' |
HTTP_REFERER | 'https://ricca-it.com/it/eventi/gdpr-corso-per-data-protection-officer/' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | u'/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/' |
PATH_TRANSLATED | '/var/www/ricca_website/ricca_website/wsgi.py/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/' |
QUERY_STRING | '' |
REMOTE_ADDR | '44.200.39.110' |
REMOTE_PORT | '45294' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/' |
SCRIPT_FILENAME | '/var/www/ricca_website/ricca_website/wsgi.py' |
SCRIPT_NAME | u'' |
SERVER_ADDR | '172.17.150.207' |
SERVER_ADMIN | 'webmaster@localhost' |
SERVER_NAME | 'ricca-it.com' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SIGNATURE | '' |
SERVER_SOFTWARE | 'Apache' |
SSL_TLS_SNI | 'ricca-it.com' |
apache.version | (2, 4, 29) |
mod_wsgi.application_group | 'ricca-it.com|' |
mod_wsgi.callable_object | 'application' |
mod_wsgi.connection_id | '+JD9jRpaP6o' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
mod_wsgi.ignore_activity | '0' |
mod_wsgi.listener_host | '' |
mod_wsgi.listener_port | '443' |
mod_wsgi.path_info | '/it/eventi/2017/07/14/gdpr-corso-per-data-protection-officer/' |
mod_wsgi.process_group | '' |
mod_wsgi.request_handler | 'wsgi-script' |
mod_wsgi.request_id | '9IYRjhpaP6o' |
mod_wsgi.request_start | '1711641340249844' |
mod_wsgi.script_name | '' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.script_start | '1711641340249995' |
mod_wsgi.thread_id | 0 |
mod_wsgi.thread_requests | 21L |
mod_wsgi.total_requests | 21L |
mod_wsgi.version | (4, 5, 17) |
wsgi.errors | <mod_wsgi.Log object at 0x7f878d8f6ee0> |
wsgi.file_wrapper | '' |
wsgi.input | <mod_wsgi.Input object at 0x7f878de2e2d0> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
ricca_website.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALDRYN_BOOTSTRAP3_GRID_SIZE | 24 |
ALDRYN_BOOTSTRAP3_ICONSETS | ((u'glyphicons', u'glyphicons', u'Glyphicons'), (u'fontawesome', u'fa', u'Fontawesome')) |
ALLOWED_HOSTS | ['*', 'www.ricca-it.com', 'ricca-it.com', 'ricca-it.it'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | [u'django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | u'********************' |
AUTH_USER_MODEL | u'auth.User' |
BASE_DIR | '/var/www/ricca_website' |
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 |
CMSPLUGIN_FILER_FILE_DEFAULT_STYLE | '' |
CMSPLUGIN_FILER_FILE_STYLE_CHOICES | () |
CMSPLUGIN_FILER_IMAGE_DEFAULT_STYLE | '' |
CMSPLUGIN_FILER_IMAGE_STYLE_CHOICES | () |
CMS_TEMPLATES | (('home.html', 'Home'), ('company.html', 'Azienda'), ('services.html', 'Servizi'), ('work-in-progress.html', 'Work in progress'), ('contacts.html', 'Contatti'), ('customers.html', 'Clienti'), ('single-page.html', 'Pagina singola'), ('events/hackday_ragioneria_2017.html', 'Evento HackDay Ragioneria 2017'), ('single-page-NO-INDEX.html', 'Pagina singola NO-INDEX'), ('manutenzione.html', 'Manutenzione')) |
CONTACT_FORM_FROM_EMAIL | 'assistenza@ricca-it.com' |
CONTACT_FORM_RECIPE_LIST | ['info@ricca-it.com'] |
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': 'localhost', 'NAME': 'ricca_website', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'root'}} |
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 | 'zimbra.ricca-it.com' |
EMAIL_HOST_PASSWORD | u'********************' |
EMAIL_HOST_USER | 'assistenza@ricca-it.com' |
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 |
FILER_IMAGE_MODEL | 'filer.Image' |
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 | ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'djangocms_admin_style', 'django.contrib.admin', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'django.contrib.messages', 'cms', 'treebeard', 'menus', 'sekizai', 'easy_thumbnails', 'filer', 'mptt', 'aldryn_apphooks_config', 'aldryn_categories', 'aldryn_common', 'aldryn_newsblog', 'aldryn_people', 'aldryn_translation_tools', 'parler', 'sortedm2m', 'taggit', 'djangocms_text_ckeditor', 'djangocms_googlemap', 'djangocms_inherit', 'djangocms_video', 'djangocms_link', 'djangocms_snippet', 'cmsplugin_filer_image', 'cmsplugin_filer_file', 'captcha', 'reversion', 'aldryn_bootstrap3', 'core_website', 'ricca_website') |
INTERNAL_IPS | [] |
LANGUAGES | (('it', 'it'), ('en', 'en')) |
LANGUAGES_BIDI | [u'he', u'ar', u'fa', u'ur'] |
LANGUAGE_CODE | 'it' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | u'django_language' |
LANGUAGE_COOKIE_PATH | u'/' |
LOCALE_PATHS | [] |
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 | '/var/www/ricca_website_static/media/' |
MEDIA_URL | '/static/media/' |
MESSAGE_STORAGE | u'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | None |
MIDDLEWARE_CLASSES | ('cms.middleware.utils.ApphookReloadMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware', 'cms.middleware.utils.ApphookReloadMiddleware') |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | u'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
PREPEND_WWW | False |
RECAPTCHA_PRIVATE_KEY | u'********************' |
RECAPTCHA_PUBLIC_KEY | u'********************' |
ROOT_URLCONF | 'ricca_website.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 | True |
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 | 'ricca_website.settings' |
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 | [] |
SITE_ID | 1 |
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 | '/var/www/ricca_website_static/static/' |
STATIC_URL | '/static/static/' |
TEMPLATES | [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/ricca_website/core_website/templates'], 'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.i18n', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.media', 'django.template.context_processors.csrf', 'django.template.context_processors.tz', 'django.template.context_processors.static', 'sekizai.context_processors.sekizai', 'cms.context_processors.cms_settings'], 'loaders': ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'django.template.loaders.eggs.Loader']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | u'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | u',' |
THUMBNAIL_PROCESSORS | ('easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', 'filer.thumbnail_processors.scale_and_crop_with_subject_location', 'easy_thumbnails.processors.filters') |
TIME_FORMAT | u'P' |
TIME_INPUT_FORMATS | [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M'] |
TIME_ZONE | 'Europe/Rome' |
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 |
WSGI_APPLICATION | 'ricca_website.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.