'WSGIRequest' object has no attribute 'user'
Request Method: | GET |
---|---|
Request URL: | https://www.pomionline.it/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/ |
Django Version: | 1.9.10 |
Exception Type: | AttributeError |
Exception Value: | 'WSGIRequest' object has no attribute 'user' |
Exception Location: | /opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/cms/utils/moderator.py in use_draft, line 7 |
Python Executable: | /opt/pyenv/versions/2.7.12/envs/pomi-website-2018/bin/uwsgi |
Python Version: | 2.7.12 |
Python Path: | ['.', '', '/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages', '/opt/pyenv/versions/2.7.12/envs/pomi-website-2018/lib/python27.zip', '/opt/pyenv/versions/2.7.12/envs/pomi-website-2018/lib/python2.7', '/opt/pyenv/versions/2.7.12/envs/pomi-website-2018/lib/python2.7/plat-linux2', '/opt/pyenv/versions/2.7.12/envs/pomi-website-2018/lib/python2.7/lib-tk', '/opt/pyenv/versions/2.7.12/envs/pomi-website-2018/lib/python2.7/lib-old', '/opt/pyenv/versions/2.7.12/envs/pomi-website-2018/lib/python2.7/lib-dynload', '/opt/pyenv/versions/2.7.12/lib/python2.7', '/opt/pyenv/versions/2.7.12/lib/python2.7/plat-linux2', '/opt/pyenv/versions/2.7.12/lib/python2.7/lib-tk', '/opt/pyenv/versions/2.7.12/envs/pomi-website-2018/lib/python2.7/site-packages', '/opt/pomi-website-2018/project/pomi_website_2018', '/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/odf', '/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/odf', '/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/odf', '/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/odf', '/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/odf', '/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/odf', '/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/odf'] |
Server time: | Gio, 28 Mar 2024 20:37:48 +0100 |
In template /opt/pomi-website-2018/project/pomi_website_2018/core/templates/core/error/404.html
, error at line 0
1 | {% extends "core/style/errors.html" %} |
---|---|
2 | |
3 | {% load menu_tags %} |
4 | {% load i18n %} |
5 | |
6 | {% block title %} |
7 | {% trans "Page not found" %} |
8 | {% endblock %} |
9 | |
10 |
/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
# Use a flag to check if the response was rendered to prevent
# multiple renderings or to force rendering if necessary.
response_is_rendered = False
try:
response = None
# Apply request middleware
for middleware_method in self._request_middleware:
response = middleware_method(request)...
if response:
break
if response is None:
if hasattr(request, 'urlconf'):
# Reset url resolver with a custom URLconf.
Variable | Value |
---|---|
response_is_rendered | False |
middleware_method | <function process_request at 0x7fc2c5c52398> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fc3688cc550> |
request | <WSGIRequest: GET '/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'> |
resolver | <RegexURLResolver u'_pomi_website_2018.urls' (None:None) ^/> |
response | None |
urlconf | u'_pomi_website_2018.urls' |
/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/sentry_sdk/integrations/django/middleware.py
in sentry_wrapped_method
# type: (*Any, **Any) -> Any
middleware_span = _check_middleware_span(old_method)
if middleware_span is None:
return old_method(*args, **kwargs)
with middleware_span:
return old_method(*args, **kwargs)...
try:
# fails for __call__ of function on Python 2 (see py2.7-django-1.11)
sentry_wrapped_method = wraps(old_method)(sentry_wrapped_method)
# Necessary for Django 3.1
Variable | Value |
---|---|
old_method | <bound method LocaleMiddleware.process_request of <core.middleware.LocaleMiddleware object at 0x7fc3500a9c50>> |
middleware_span | <Span(op='django.middleware', description:'core.middleware.LocaleMiddleware.process_request', trace_id='3b28df522d4d4d50bb252e3c28e032a7', span_id='8ee80faa08d4dad3', parent_span_id='90e5538bbad286cc', sampled=False)> |
_check_middleware_span | <function _check_middleware_span at 0x7fc2c5c522a8> |
args | (<WSGIRequest: GET '/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'>,) |
kwargs | {} |
./core/middleware.py
in process_request
# no language defined in url, or cookie
return HttpResponseRedirect(current_site.settings.get_absolute_url())
enabled_languages = current_site.settings.enabled_languages
print('enabled languages: {}'.format(enabled_languages))
if language not in enabled_languages:
if source == LANGUAGE_FROM_PATH:
response_page_not_found = page_not_found(request)...
response_page_not_found.status_code = 404
return response_page_not_found
return HttpResponseRedirect(current_site.settings.get_absolute_url())
translation.activate(language)
Variable | Value |
---|---|
current_site | <Site: www.pomionline.it> |
language | u'en-us' |
url | '/favicon.ico' |
enabled_languages | [u'it', u'en'] |
request | <WSGIRequest: GET '/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'> |
script_name | u'' |
check_url_for_redirect | True |
source | 'from_path' |
path_info | u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/' |
self | <core.middleware.LocaleMiddleware object at 0x7fc3500a9c50> |
request_path | u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/' |
./core/views.py
in page_not_found
try:
template_name = 'core/error/404.html'
template = loader.get_template(template_name)
except TemplateDoesNotExist:
template = Template(
'<h1>Not Found</h1>'
'<p>The requested URL {{ request_path }} was not found on this server.</p>')
return http.HttpResponseNotFound(template.render(RequestContext(request, {'request_path': request.path})))...
def page_error(request):
try:
template_name = 'core/error/500.html'
template = loader.get_template(template_name)
Variable | Value |
---|---|
template_name | u'core/error/404.html' |
request | <WSGIRequest: GET '/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'> |
template | <django.template.backends.django.Template object at 0x7fc2c58411d0> |
/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/django/template/backends/django.py
in render
"render() must be called with a dict, not a Context.",
RemovedInDjango110Warning, stacklevel=2)
else:
context = make_context(context, request)
try:
return self.template.render(context)...
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
self | <django.template.backends.django.Template object at 0x7fc2c58411d0> |
request | None |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)...
else:
return self._render(context)
finally:
context.render_context.pop()
def compile_nodelist(self):
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7fc2c6131fd0> |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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"
context.render_context.push()
try:
if context.template is None:
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7fc2c6131fd0> |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
node | <ExtendsNode: extends "core/style/errors.html"> |
self | [<ExtendsNode: extends "core/style/errors.html">] |
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
self | <ExtendsNode: extends "core/style/errors.html"> |
e | AttributeError("'WSGIRequest' object has no attribute 'user'",) |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/django/template/loader_tags.py
in render
blocks = {n.name: n for n in
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.
return compiled_parent._render(context)...
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, **kwargs):
Variable | Value |
---|---|
node | <django.template.defaulttags.LoadNode object at 0x7fc2c3414490> |
blocks | {u'base_content': <Block Node: base_content. Contents: []>, u'body_extra_class': <Block Node: body_extra_class. Contents: []>, u'container_extra_class': <Block Node: container_extra_class. Contents: []>, u'css': <Block Node: css. Contents: []>, u'js': <Block Node: js. Contents: []>, u'page_header': <Block Node: page_header. Contents: [<TextNode: u'\n <header>\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414c50>, <TextNode: u'\n </header>\n'>]>, u'title': <Block Node: title. Contents: []>} |
block_context | <django.template.loader_tags.BlockContext object at 0x7fc2c1f26e50> |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
compiled_parent | <django.template.base.Template object at 0x7fc2c41d90d0> |
self | <ExtendsNode: extends "core/style/errors.html"> |
/opt/pyenv/versions/pomi-website-2018/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"
context.render_context.push()
try:
if context.template is None:
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7fc2c41d90d0> |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
node | <Tag: render_block> |
bit | u'">\n ' |
bits | [u'<!doctype html>\n', u'', u'\n', u'', u'\n<html class="no-js" lang="', u'it', u'">\n<head>\n <meta charset="utf-8">\n <meta http-equiv="x-ua-compatible" content="ie=edge">\n <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">\n <meta name="google-site-verification" content="x15I6otksSLgFU_cVhdSJyCXZfewUMt622X0ANsJ3IU">\n <meta name="format-detection" content="telephone=no">\n\n <title>', u'\n Pagina non trovata\n', u' | ', u'Pomi International', u'</title>\n\n <link rel="stylesheet" href="', u'/static/vendor.css?8tFFOxRV', u'">\n <link rel="stylesheet" href="', u'/static/main.css?8RRgIefN', u'">\n '] |
self | [<TextNode: u'<!doctype html>\n'>, <django.template.defaulttags.LoadNode object at 0x7fc2c3414490>, <TextNode: u'\n'>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7fc2c3414050>, <TextNode: u'\n<html class="no-js" lang'>, <Variable Node: LANGUAGE_CODE>, <TextNode: u'">\n<head>\n <meta chars'>, <Block Node: title. Contents: []>, <TextNode: u' | '>, <Variable Node: current_site.name>, <TextNode: u'</title>\n\n <link rel="'>, <django.template.library.SimpleNode object at 0x7fc2c3414a90>, <TextNode: u'">\n <link rel="stylesh'>, <django.template.library.SimpleNode object at 0x7fc2c3414110>, <TextNode: u'">\n '>, <Tag: render_block>] |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
self | <Tag: render_block> |
e | AttributeError("'WSGIRequest' object has no attribute 'user'",) |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
key | 'postprocessor' |
items | [('name', <classytags.values.StringValue object at 0x7fc2c3414e50>), ('postprocessor', <TemplateConstant: None>)] |
self | <Tag: render_block> |
value | <TemplateConstant: None> |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
kwargs | {'name': u'css', 'nodelist': [<TextNode: u'\n '>, <Block Node: css. Contents: []>, <TextNode: u'\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c34143d0>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414850>, <TextNode: u'\n\n'>, <TextNode: u'\n'>, <TextNode: u'\n</head>\n<body class="'>, <Block Node: body_extra_class. Contents: []>, <Tag: render_block>], 'postprocessor': None} |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
self | <Tag: render_block> |
nodelist | [<TextNode: u'\n '>, <Block Node: css. Contents: []>, <TextNode: u'\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c34143d0>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414850>, <TextNode: u'\n\n'>, <TextNode: u'\n'>, <TextNode: u'\n</head>\n<body class="'>, <Block Node: body_extra_class. Contents: []>, <Tag: render_block>] |
name | u'css' |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
postprocessor | None |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
node | <Tag: render_block> |
bit | u'' |
bits | [u'\n ', u'', u'\n\n ', u'<meta name="google-site-verification" content="grW6lmdpuXgsMUAWZkPvYjtmvioY0JgEVt9u8CI3wvc" />', u'\n ', u"<!-- Google Tag Manager -->\n<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n})(window,document,'script','dataLayer','GTM-WF7257P');</script>\n<!-- End Google Tag Manager -->", u'\n\n', u'\n', u'\n</head>\n<body class="', u''] |
self | [<TextNode: u'\n '>, <Block Node: css. Contents: []>, <TextNode: u'\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c34143d0>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414850>, <TextNode: u'\n\n'>, <TextNode: u'\n'>, <TextNode: u'\n</head>\n<body class="'>, <Block Node: body_extra_class. Contents: []>, <Tag: render_block>] |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
self | <Tag: render_block> |
e | AttributeError("'WSGIRequest' object has no attribute 'user'",) |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
key | 'postprocessor' |
items | [('name', <classytags.values.StringValue object at 0x7fc2c3414b10>), ('postprocessor', <TemplateConstant: None>)] |
self | <Tag: render_block> |
value | <TemplateConstant: None> |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
kwargs | {'name': u'body_extra_class', 'nodelist': [<TextNode: u'">\n'>, <Tag: cms_toolbar>], 'postprocessor': None} |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
self | <Tag: render_block> |
nodelist | [<TextNode: u'">\n'>, <Tag: cms_toolbar>] |
name | u'body_extra_class' |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
postprocessor | None |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
node | <Tag: cms_toolbar> |
bit | u'">\n' |
bits | [u'">\n'] |
self | [<TextNode: u'">\n'>, <Tag: cms_toolbar>] |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
self | <Tag: cms_toolbar> |
e | AttributeError("'WSGIRequest' object has no attribute 'user'",) |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
key | 'name' |
items | [('name', <TemplateConstant: None>)] |
self | <Tag: cms_toolbar> |
value | <TemplateConstant: None> |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
kwargs | {'name': None, 'nodelist': [<TextNode: u'\n'>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414ed0>, <TextNode: u'\n\n'>, <Block Node: page_header. Contents: [<TextNode: u'\n <header>\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414c50>, <TextNode: u'\n </header>\n'>]>, <TextNode: u'\n\n'>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3d83350>, <TextNode: u'\n\n<div class="main-contai'>, <Block Node: container_extra_class. Contents: []>, <TextNode: u'">\n\n <div class="page-'>, <IfNode>, <TextNode: u'\n '>, <Block Node: base_content. Contents: []>, <TextNode: u'\n </div>\n</div>\n\n<foot'>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3d83f50>, <TextNode: u'\n</footer>\n\n<div id="over'>, <django.template.library.SimpleNode object at 0x7fc2c3d83e10>, <TextNode: u'"></script>\n<script src="'>, <django.template.library.SimpleNode object at 0x7fc2c3d83710>, <TextNode: u'"></script>\n'>, <Tag: render_block>]} |
/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/cms/templatetags/cms_tags.py
in render_tag
with force_language(language):
# needed to populate the context with sekizai content
render_to_string('cms/toolbar/toolbar_javascript.html', flatten_context(context))
context['addons'] = mark_safe(toolbar.render_addons(context))
else:
language = None
# render everything below the tag
rendered_contents = nodelist.render(context)...
# sanity checks
if not request:
return rendered_contents
if not toolbar:
return rendered_contents
if not toolbar.show_toolbar:
Variable | Value |
---|---|
nodelist | [<TextNode: u'\n'>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414ed0>, <TextNode: u'\n\n'>, <Block Node: page_header. Contents: [<TextNode: u'\n <header>\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414c50>, <TextNode: u'\n </header>\n'>]>, <TextNode: u'\n\n'>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3d83350>, <TextNode: u'\n\n<div class="main-contai'>, <Block Node: container_extra_class. Contents: []>, <TextNode: u'">\n\n <div class="page-'>, <IfNode>, <TextNode: u'\n '>, <Block Node: base_content. Contents: []>, <TextNode: u'\n </div>\n</div>\n\n<foot'>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3d83f50>, <TextNode: u'\n</footer>\n\n<div id="over'>, <django.template.library.SimpleNode object at 0x7fc2c3d83e10>, <TextNode: u'"></script>\n<script src="'>, <django.template.library.SimpleNode object at 0x7fc2c3d83710>, <TextNode: u'"></script>\n'>, <Tag: render_block>] |
name | None |
language | None |
self | <Tag: cms_toolbar> |
request | <WSGIRequest: GET '/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'> |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
toolbar | None |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
node | <Block Node: page_header. Contents: [<TextNode: u'\n <header>\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414c50>, <TextNode: u'\n </header>\n'>]> |
bit | u'\n\n' |
bits | [u'\n', u'<!-- Google Tag Manager (noscript) -->\n<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WF7257P"\nheight="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>\n<!-- End Google Tag Manager (noscript) -->', u'\n\n'] |
self | [<TextNode: u'\n'>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414ed0>, <TextNode: u'\n\n'>, <Block Node: page_header. Contents: [<TextNode: u'\n <header>\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414c50>, <TextNode: u'\n </header>\n'>]>, <TextNode: u'\n\n'>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3d83350>, <TextNode: u'\n\n<div class="main-contai'>, <Block Node: container_extra_class. Contents: []>, <TextNode: u'">\n\n <div class="page-'>, <IfNode>, <TextNode: u'\n '>, <Block Node: base_content. Contents: []>, <TextNode: u'\n </div>\n</div>\n\n<foot'>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3d83f50>, <TextNode: u'\n</footer>\n\n<div id="over'>, <django.template.library.SimpleNode object at 0x7fc2c3d83e10>, <TextNode: u'"></script>\n<script src="'>, <django.template.library.SimpleNode object at 0x7fc2c3d83710>, <TextNode: u'"></script>\n'>, <Tag: render_block>] |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
self | <Block Node: page_header. Contents: [<TextNode: u'\n <header>\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414c50>, <TextNode: u'\n </header>\n'>]> |
e | AttributeError("'WSGIRequest' object has no attribute 'user'",) |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
push | <Block Node: page_header. Contents: [<TextNode: u'\n <header>\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414c50>, <TextNode: u'\n </header>\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7fc2c1f26e50> |
block | <Block Node: page_header. Contents: [<TextNode: u'\n <header>\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414c50>, <TextNode: u'\n </header>\n'>]> |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
self | <Block Node: page_header. Contents: [<TextNode: u'\n <header>\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414c50>, <TextNode: u'\n </header>\n'>]> |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
node | <django.template.loader_tags.IncludeNode object at 0x7fc2c3414c50> |
bit | u'\n <header>\n ' |
bits | [u'\n <header>\n '] |
self | [<TextNode: u'\n <header>\n '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c3414c50>, <TextNode: u'\n </header>\n'>] |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
self | <django.template.loader_tags.IncludeNode object at 0x7fc2c3414c50> |
e | AttributeError("'WSGIRequest' object has no attribute 'user'",) |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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:
if context.template.engine.debug:
raise
template_name = getattr(context, 'template_name', None) or 'unknown'
logger.warning(
"Exception raised while rendering {%% include %%} for "
Variable | Value |
---|---|
template | <django.template.base.Template object at 0x7fc2c3d83610> |
template_name | u'core/commons/header.html' |
self | <django.template.loader_tags.IncludeNode object at 0x7fc2c3414c50> |
cache | {u'core/commons/google_site_verification.html': <django.template.base.Template object at 0x7fc2c34142d0>, u'core/commons/gtm_body.html': <django.template.base.Template object at 0x7fc2c3d83490>, u'core/commons/gtm_head.html': <django.template.base.Template object at 0x7fc2c3414d10>, u'core/commons/header.html': <django.template.base.Template object at 0x7fc2c3d83610>} |
values | {} |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/django/template/base.py
in render
context.render_context.push()
try:
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)
else:
return self._render(context)...
finally:
context.render_context.pop()
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7fc2c3d83610> |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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"
context.render_context.push()
try:
if context.template is None:
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7fc2c3d83610> |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
node | <django.template.loader_tags.IncludeNode object at 0x7fc2c428a350> |
bit | u'\n' |
bits | [u'', u'\n', u'\n\n\n<!-- LARGE UP -->\n<div class="container">\n <div class="row collapse large-header">\n <div class="large-3 medium-4 small-12 columns col-logo">\n <a href="/it/" class="logo ">\n \n <?xml version="1.0" encoding="utf-8"?>\n<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->\n<svg version="1.1" id="pomi_logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 355.6 118.9" style="enable-background:new 0 0 355.6 118.9;" xml:space="preserve">\n<style type="text/css">\n\t.st0_POMI{clip-path:url(#SVGID_2_POMI);}\n\t.st1_POMI{clip-path:url(#SVGID_2_POMI);fill:none;stroke:#000000;stroke-width:0.226;stroke-miterlimit:3.864;}\n\t.st2_POMI{clip-path:url(#SVGID_2_POMI);fill:#50b948;}\n\t.st3_POMI{clip-path:url(#SVGID_2_POMI);fill:#FFFFFF;}\n</style>\n<polygon points="2.2,9 9.3,15.6 13.1,15.4 11.6,8 "/>\n<polygon points="94.2,10.2 101.3,16.6 95.1,14.2 "/>\n<polygon points="56.8,102.4 63.8,108.7 60.4,114.4 53.6,113.9 "/>\n<polygon points="0.4,110.8 7.3,117.2 9.2,117.4 10.1,109.8 "/>\n<polygon points="101.9,98.9 111.2,107.7 109.2,101.2 "/>\n<polygon points="158.8,44.3 167.3,51.9 159.4,51.6 "/>\n<polygon points="169.5,47.2 176.5,53.7 179.4,53.1 180,46.6 "/>\n<polygon points="205,37.7 209.9,44.2 205.3,47.7 204,37.9 "/>\n<polygon points="240.9,40.4 248.3,47.1 257.7,52.5 253.4,58.6 240.1,51.1 "/>\n<polygon points="285.2,41.4 292.7,48.2 284.2,48.9 "/>\n<polygon points="259.1,111.6 265.9,117.8 271.3,111.1 "/>\n<polygon points="254.6,102.7 260.7,109 260.3,115.4 252.6,113.3 "/>\n<polygon points="215.8,111.4 222.8,117.7 227,110.8 "/>\n<polygon points="211.9,102.4 219.3,111.9 211,109.5 "/>\n<polygon points="169.3,111.5 176.3,117.8 184.3,111.1 "/>\n<polygon points="342.6,114.8 352.5,116.4 355.1,109.1 347.8,102.5 "/>\n<polygon points="337.2,37 344.2,43.2 336.5,44.3 "/>\n<polygon points="300.5,47.2 307.5,53.6 309,47.9 "/>\n<polygon points="330.5,22.8 337.1,28.7 326.8,27.6 "/>\n<polygon points="295,18.1 302.1,24.5 303.9,22.5 "/>\n<g>\n\t<defs>\n\t\t<rect id="SVGID_1_" y="0" width="355.6" height="118.9"/>\n\t</defs>\n\t<clipPath id="SVGID_2_POMI">\n\t\t<use xlink:href="#SVGID_1_" style="overflow:visible;"/>\n\t</clipPath>\n\t<path class="st0_POMI" d="M57.1,16.6c-1.8,0-4.2,1.7-4.3,4.2l-0.7,36c0,0.8,0.7,1.1,1.1,1.1h8.1c1.4,0,3.6-0.5,3.6-0.5\n\t\tc0.2-0.1,11.2,0,11.2-18.3v-6.7c0-3.8-1.5-15.9-10.3-15.9H57.1z M10.2,6.3h54c0,0,8.1,0,13.2,0.7c5.4,0.7,9.2,0.9,13.6,2.8\n\t\tc3.4,1.5,6,3.2,8.2,5c2.5,2,4.5,4.1,6.3,7.5c2.4,4.4,3.1,9.4,3.1,12.6v5.9c0,13.4-12.5,29.4-34.3,29.4H53.3c0,0-1.3,0.6-1.3,2.5\n\t\tl-0.4,31.8c0,3.4,5.3,3.8,6.7,3.8c3.9,0.2,1.3-0.2,4.8,0c0,0,1.7,0.3,1.7,3v4c0,2.5-1,2.5-4.5,2.5H9.1c-1.2,0-2.1-0.3-2.1-1.6v-5.2\n\t\tc0,0-0.1-2.3,2.2-2.7c1.5-0.2,3.8-0.4,5.4-0.6c3.5-0.7,4.8-1,4.8-4.8c0-1,0-81.1,0-82.1c0-1.7-0.2-4.2-2-4.2c0,0,0.6-0.6-2.5-0.7\n\t\tc-0.1,0-3.1,0-4.3,0c-1.1,0-1.6-0.2-1.6-1.1V8.1C9,8.1,8.6,6.3,10.2,6.3 M139.4,50.9c-4.2,0-7.5,2.5-9.2,8.5\n\t\tc-1.3,4.4-1.5,6.6-1.9,10.8c-0.4,3.6-0.4,5.6-0.4,9.3c0,2.9-0.1,4.6,0.1,7.5c0.4,5.3,0.7,8.9,2.2,13.5c1.6,5,4.5,8.7,9.5,8.5\n\t\tc4.8-0.1,7.5-3.5,9-8.6c1.2-4.1,1.7-8.1,2.1-13.4c0.2-2.9,0.3-7.4,0.3-7.5c-0.1-2.3-0.2-5.5-0.6-9c-0.5-4.2-1.1-8-2-10.7\n\t\tC146.4,53,143,50.9,139.4,50.9 M139.4,40.9c21.3,0.1,39.5,16.5,39.9,38.3c0.4,22.3-18.4,39.8-40.2,39.7\n\t\tc-21.7-0.1-40.2-17.4-39.9-39.6C99.5,57.4,117.9,40.8,139.4,40.9 M305.3,118.1h-38.6c-0.7,0-1.3-0.8-1.3-1.6l0-4.7\n\t\tc0-1.9,0.6-3.3,3-3.7c2-0.4,4.1-0.4,4.1-3.9V67.4c0-5.6-2.5-8.7-6-8.7h-1.9c-2.7,0-8.6,4.6-8.5,14.2l0.1,31.3\n\t\tc0,2.7,1.6,3.4,2.8,3.8c2.2,0.6,3.4,0.5,3.4,3.8l0,4.8c0,0.4-0.6,1.5-1.3,1.5h-37.1c-0.8,0-1.5-0.5-1.5-1.4l0-5\n\t\tc0-2.8,1.1-3.2,2.7-3.3c3.1-0.1,4.7-1.2,4.7-5.1V67.4c0-4.5-3-9-7.5-9c-3.7,0-9.2,4.7-9.2,13v32.2c0,3,0.8,4.2,3.1,4.7\n\t\tc1.8,0.4,3.5-0.4,3.5,2.5l0,5c0,1.8-0.7,2.3-1.6,2.3h-40.8c0,0-1.4,0.2-1.3-1.8l0-4.3c0-3.3,0.6-3.4,1.6-3.4h2.1\n\t\tc2.8,0,6.4-1.6,6.4-4.6V59.5c0-3.8-1.6-4.6-3.7-5.1c-2.2-0.5-6,0-6-1.4c-0.2-4.2,0-3.7,0-5.1c0-1.5-0.4-2.9,2.1-3\... <trimmed 13029 bytes string> |
self | [<django.template.defaulttags.LoadNode object at 0x7fc2c428a310>, <TextNode: u'\n'>, <django.template.loader_tags.IncludeNode object at 0x7fc2c428a150>, <TextNode: u'\n'>, <django.template.loader_tags.IncludeNode object at 0x7fc2c428a350>, <TextNode: u'\n\n'>] |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
self | <django.template.loader_tags.IncludeNode object at 0x7fc2c428a350> |
e | AttributeError("'WSGIRequest' object has no attribute 'user'",) |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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:
if context.template.engine.debug:
raise
template_name = getattr(context, 'template_name', None) or 'unknown'
logger.warning(
"Exception raised while rendering {%% include %%} for "
Variable | Value |
---|---|
template | <django.template.base.Template object at 0x7fc2c1ea0090> |
template_name | u'core/commons/header/site_menu_mobile.html' |
self | <django.template.loader_tags.IncludeNode object at 0x7fc2c428a350> |
cache | {u'core/commons/header/site_menu_desktop.html': <django.template.base.Template object at 0x7fc2c428a450>, u'core/commons/header/site_menu_mobile.html': <django.template.base.Template object at 0x7fc2c1ea0090>} |
values | {} |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/django/template/base.py
in render
context.render_context.push()
try:
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)
else:
return self._render(context)...
finally:
context.render_context.pop()
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7fc2c1ea0090> |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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"
context.render_context.push()
try:
if context.template is None:
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7fc2c1ea0090> |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
node | <Tag: page_url> |
bit | u'\n <li><a href="' |
bits | [u'', u'\n\n\n\n<div id="mobile-bar" class="mobile-bar-wrapper hide-for-large">\n <a class="mobile-bar__item" data-toggle="small-menu-panel overlay" id="hamburger-mobile">\n <i class="mobile-bar__icon mobile-bar__icon--hamb">', u'<svg version="1.1" id="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="-267 400.9 61 41" style="enable-background:new -267 400.9 61 41;" xml:space="preserve">\n<style type="text/css">\n\t.st0{fill:#666666;}\n</style>\n<path id="Rectangle_4_copy_2" class="st0" d="M-267,400.9h61v5h-61V400.9z M-267,418.9h61v5h-61V418.9z M-267,436.9h61v5h-61V436.9z\n\t"/>\n</svg>\n', u'</i></a>\n</div>\n\n<div class="small-menu-panel" id="small-menu-panel" data-toggler=".is-active">\n <div class="small-menu-section">\n <div class="clearfix">\n <div class="float-left">\n <div class="panel-logo">\n ', u'\n <?xml version="1.0" encoding="utf-8"?>\n<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->\n<svg version="1.1" id="pomi_logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 355.6 118.9" style="enable-background:new 0 0 355.6 118.9;" xml:space="preserve">\n<style type="text/css">\n\t.st0_POMI{clip-path:url(#SVGID_2_POMI);}\n\t.st1_POMI{clip-path:url(#SVGID_2_POMI);fill:none;stroke:#000000;stroke-width:0.226;stroke-miterlimit:3.864;}\n\t.st2_POMI{clip-path:url(#SVGID_2_POMI);fill:#50b948;}\n\t.st3_POMI{clip-path:url(#SVGID_2_POMI);fill:#FFFFFF;}\n</style>\n<polygon points="2.2,9 9.3,15.6 13.1,15.4 11.6,8 "/>\n<polygon points="94.2,10.2 101.3,16.6 95.1,14.2 "/>\n<polygon points="56.8,102.4 63.8,108.7 60.4,114.4 53.6,113.9 "/>\n<polygon points="0.4,110.8 7.3,117.2 9.2,117.4 10.1,109.8 "/>\n<polygon points="101.9,98.9 111.2,107.7 109.2,101.2 "/>\n<polygon points="158.8,44.3 167.3,51.9 159.4,51.6 "/>\n<polygon points="169.5,47.2 176.5,53.7 179.4,53.1 180,46.6 "/>\n<polygon points="205,37.7 209.9,44.2 205.3,47.7 204,37.9 "/>\n<polygon points="240.9,40.4 248.3,47.1 257.7,52.5 253.4,58.6 240.1,51.1 "/>\n<polygon points="285.2,41.4 292.7,48.2 284.2,48.9 "/>\n<polygon points="259.1,111.6 265.9,117.8 271.3,111.1 "/>\n<polygon points="254.6,102.7 260.7,109 260.3,115.4 252.6,113.3 "/>\n<polygon points="215.8,111.4 222.8,117.7 227,110.8 "/>\n<polygon points="211.9,102.4 219.3,111.9 211,109.5 "/>\n<polygon points="169.3,111.5 176.3,117.8 184.3,111.1 "/>\n<polygon points="342.6,114.8 352.5,116.4 355.1,109.1 347.8,102.5 "/>\n<polygon points="337.2,37 344.2,43.2 336.5,44.3 "/>\n<polygon points="300.5,47.2 307.5,53.6 309,47.9 "/>\n<polygon points="330.5,22.8 337.1,28.7 326.8,27.6 "/>\n<polygon points="295,18.1 302.1,24.5 303.9,22.5 "/>\n<g>\n\t<defs>\n\t\t<rect id="SVGID_1_" y="0" width="355.6" height="118.9"/>\n\t</defs>\n\t<clipPath id="SVGID_2_POMI">\n\t\t<use xlink:href="#SVGID_1_" style="overflow:visible;"/>\n\t</clipPath>\n\t<path class="st0_POMI" d="M57.1,16.6c-1.8,0-4.2,1.7-4.3,4.2l-0.7,36c0,0.8,0.7,1.1,1.1,1.1h8.1c1.4,0,3.6-0.5,3.6-0.5\n\t\tc0.2-0.1,11.2,0,11.2-18.3v-6.7c0-3.8-1.5-15.9-10.3-15.9H57.1z M10.2,6.3h54c0,0,8.1,0,13.2,0.7c5.4,0.7,9.2,0.9,13.6,2.8\n\t\tc3.4,1.5,6,3.2,8.2,5c2.5,2,4.5,4.1,6.3,7.5c2.4,4.4,3.1,9.4,3.1,12.6v5.9c0,13.4-12.5,29.4-34.3,29.4H53.3c0,0-1.3,0.6-1.3,2.5\n\t\tl-0.4,31.8c0,3.4,5.3,3.8,6.7,3.8c3.9,0.2,1.3-0.2,4.8,0c0,0,1.7,0.3,1.7,3v4c0,2.5-1,2.5-4.5,2.5H9.1c-1.2,0-2.1-0.3-2.1-1.6v-5.2\n\t\tc0,0-0.1-2.3,2.2-2.7c1.5-0.2,3.8-0.4,5.4-0.6c3.5-0.7,4.8-1,4.8-4.8c0-1,0-81.1,0-82.1c0-1.7-0.2-4.2-2-4.2c0,0,0.6-0.6-2.5-0.7\n\t\tc-0.1,0-3.1,0-4.3,0c-1.1,0-1.6-0.2-1.6-1.1V8.1C9,8.1,8.6,6.3,10.2,6.3 M139.4,50.9c-4.2,0-7.5,2.5-9.2,8.5\n\t\tc-1.3,4.4-1.5,6.6-1.9,10.8c-0.4,3.6-0.4,5.6-0.4,9.3c0,2.9-0.1,4.6,0.1,7.5c0.4,5.3,0.7,8.9,2.2,13.5c1.6,5,4.5,8.7,9.5,8.5\n\t\tc4.8-0.1,7.5-3.5,9-8.6c1.2-4.1,1.7-8.1,2.1-13.4c0.2-2.9,0.3-7.4,0.3-7.5c-0.1-2.3-0.2-5.5-0.6-9c-0.5-4.2-1.1-8-2-10.7\n\t\tC146.4,53,143,50.9,139.4,50.9 M139.4,40.9c21.3,0.1,39.5,16.5,39.9,38.3c0.4... <trimmed 12249 bytes string> |
self | [<django.template.defaulttags.LoadNode object at 0x7fc2c60ac950>, <TextNode: u'\n\n\n\n<div id="mobile-bar" '>, <django.template.loader_tags.IncludeNode object at 0x7fc2c60acc10>, <TextNode: u'</i></a>\n</div>\n\n<div cla'>, <IfNode>, <TextNode: u'\n </div>\n '>, <IfNode>, <TextNode: u'">\n <a hre'>, <django.templatetags.i18n.TranslateNode object at 0x7fc2c22e64d0>, <TextNode: u'</a>\n </li>\n '>, <Tag: show_site_menu>, <TextNode: u'\n <li><a href='>, <Tag: page_url>, <TextNode: u'">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7fc2c430bfd0>, <TextNode: u'\n </a></li>\n '>, <Tag: page_url>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fc2c430b550>, <TextNode: u'</a>\n </li>\n '>, <Tag: page_url>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fc2c430b210>, <TextNode: u'</a>\n </li>\n\n '>, <django.templatetags.i18n.TranslateNode object at 0x7fc2c16fd450>, <TextNode: u'</a>\n </li'>] |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
self | <Tag: page_url> |
e | AttributeError("'WSGIRequest' object has no attribute 'user'",) |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
key | 'site' |
items | [('lang', <TemplateConstant: None>), ('varname', <TemplateConstant: None>), ('page_lookup', <classytags.values.StringValue object at 0x7fc2c430b4d0>), ('site', <TemplateConstant: None>)] |
self | <Tag: page_url> |
value | <TemplateConstant: None> |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
kwargs | {'lang': None, 'page_lookup': u'contacts_page', 'site': None, 'varname': None} |
/opt/pyenv/versions/pomi-website-2018/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 |
---|---|
varname | None |
self | <Tag: page_url> |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
kwargs | {'lang': None, 'page_lookup': u'contacts_page', 'site': None} |
/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/cms/templatetags/cms_tags.py
in get_value
return ''
if lang is None:
lang = get_language_from_request(request)
url = get_page_url_cache(page_lookup, lang, site_id)
if url is None:
page = _get_page_by_untyped_arg(page_lookup, request, site_id)...
if page:
url = page.get_absolute_url(language=lang)
set_page_url_cache(page_lookup, lang, site_id, url)
if url:
return url
return ''
Variable | Value |
---|---|
lang | u'en' |
url | None |
site_id | 1 |
self | <Tag: page_url> |
request | <WSGIRequest: GET '/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'> |
site | None |
context | [{'False': False, 'None': None, 'True': True}, {u'request_path': u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'}, {}, {'python_version': '2.7.12', 'cms_version': '3.2.3', u'LANGUAGE_CODE': u'it', 'cms_edit_off': 'edit_off', 'django_version': '1.9.10', 'cms_edit_on': 'edit'}] |
page_lookup | u'contacts_page' |
/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/cms/templatetags/cms_tags.py
in _get_page_by_untyped_arg
return page.publisher_draft
else:
if page.publisher_is_draft:
return page.publisher_public
else:
return page
else:
return get_page_queryset(request).get(**page_lookup)...
except Page.DoesNotExist:
site = Site.objects.get_current()
subject = _('Page not found on %(domain)s') % {'domain': site.domain}
body = _("A template tag couldn't find the page with lookup arguments `%(page_lookup)s\n`. "
"The URL of the request was: http://%(host)s%(path)s") \
% {'page_lookup': repr(page_lookup), 'host': site.domain, 'path': request.path_info}
Variable | Value |
---|---|
site_id | 1 |
request | <WSGIRequest: GET '/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'> |
page_lookup | {'reverse_id': u'contacts_page', 'site': 1} |
/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/cms/utils/page_resolver.py
in get_page_queryset
from cms.utils.urlutils import any_path_re, admin_reverse
ADMIN_PAGE_RE_PATTERN = r'cms/page/(\d+)'
ADMIN_PAGE_RE = re.compile(ADMIN_PAGE_RE_PATTERN)
def get_page_queryset(request=None):
if request and use_draft(request):...
return Page.objects.drafts()
return Page.objects.public()
def get_page_queryset_from_path(path, preview=False, draft=False, site=None):
Variable | Value |
---|---|
request | <WSGIRequest: GET '/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'> |
/opt/pyenv/versions/pomi-website-2018/lib/python2.7/site-packages/cms/utils/moderator.py
in use_draft
# -*- coding: utf-8 -*-
from cms.models import CMSPlugin, Title
def use_draft(request):
if request:
is_staff = request.user.is_authenticated() and request.user.is_staff...
edit_mode = is_staff and request.session.get('cms_edit', False)
build_mode = is_staff and request.session.get('cms_build', False)
return is_staff and edit_mode or build_mode
return False
Variable | Value |
---|---|
request | <WSGIRequest: GET '/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/'> |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
wsgi.multiprocess | False |
HTTP_REFERER | 'http://www.pomionline.it/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/' |
uwsgi.version | '2.0.15' |
SCRIPT_NAME | u'' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/' |
SERVER_PROTOCOL | 'HTTP/1.1' |
QUERY_STRING | '' |
CONTENT_LENGTH | '' |
HTTP_USER_AGENT | 'claudebot' |
SERVER_NAME | 'www.pomionline.it' |
REMOTE_ADDR | '10.0.3.1' |
wsgi.url_scheme | 'https' |
SERVER_PORT | '80' |
uwsgi.node | 'webapplications' |
DOCUMENT_ROOT | '/opt/pomi-website-2018/project' |
uwsgi.core | 18 |
HTTP_X_FORWARDED_PROTO | 'https' |
wsgi.input | <uwsgi._Input object at 0x7fc2c3ae70c0> |
HTTP_HOST | 'www.pomionline.it' |
wsgi.multithread | True |
REQUEST_URI | '/en-us/products/strained-tomatoes/strained-tomatoes-food-service-usa/22/' |
HTTP_ACCEPT | '*/*' |
wsgi.version | (1, 0) |
HTTP_X_FORWARDED_FOR | '54.89.70.161' |
wsgi.errors | <open file 'wsgi_errors', mode 'w' at 0x7fc35511d030> |
REMOTE_PORT | '44354' |
REQUEST_SCHEME | 'http' |
wsgi.run_once | False |
CONTENT_TYPE | '' |
wsgi.file_wrapper | '' |
_pomi_website_2018.settings
Setting | Value |
---|---|
NOCAPTCHA | True |
SECURE_BROWSER_XSS_FILTER | False |
USE_X_FORWARDED_PORT | False |
CCDP_API_BASE_URL | u'********************' |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | u'en' |
ROOT_URLCONF | u'_pomi_website_2018.urls' |
MANAGERS | [] |
MODELTRANSLATION_FALLBACK_LANGUAGES | () |
DEFAULT_TO_EMAIL | (u'info@pomionline.it',) |
BASE_DIR | '/opt/pomi-website-2018/project/pomi_website_2018' |
SILENCED_SYSTEM_CHECKS | [] |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_INDEX_TABLESPACE | '' |
STATIC_ROOT | u'/opt/pomi-website-2018/project/pomi_website_2018/../static' |
FACTORIES_API_URL | u'********************' |
CKEDITOR_UPLOAD_PATH | u'uploads/' |
THUMBNAIL_OPTIMIZE_COMMAND | {u'gif': u'/usr/bin/optipng {filename}', u'jpeg': u'/usr/bin/jpegoptim {filename}', u'png': u'/usr/bin/optipng {filename}'} |
ALLOWED_HOSTS | [u'*'] |
MAILCHIMP_API_KEY_USA | u'********************' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
RECAPTCHA_PRIVATE_KEY | u'********************' |
WSGI_APPLICATION | u'_pomi_website_2018.wsgi.application' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SERVER_EMAIL | 'root@localhost' |
CMS_PAGE_CACHE | False |
SECURE_HSTS_SECONDS | 0 |
CELERY_RESULT_SERIALIZER | u'json' |
STATICFILES_FINDERS | (u'django.contrib.staticfiles.finders.FileSystemFinder', u'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | u'_sessionid' |
CELERY_BROKER_URL | u'amqp://pomi-2018:pomi-2018@localhost:5672/pomi-2018' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
SECURE_REDIRECT_EXEMPT | [] |
DATABASES | {u'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, u'ENGINE': u'django.db.backends.postgresql_psycopg2', u'HOST': u'10.0.3.2', u'NAME': u'pomi_website_2018', 'OPTIONS': {}, u'PASSWORD': u'********************', u'PORT': u'', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, u'USER': u'pomi_web'}} |
EMAIL_SSL_KEYFILE | u'********************' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
RECAPTCHA_PUBLIC_KEY | u'********************' |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | [u'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
CMS_LOCALE_ENABLE | True |
DEFAULT_CONTENT_TYPE | 'text/html' |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | [] |
DEFAULT_TABLESPACE | '' |
MAILCHIMP_LIST_USA | u'34c5902ff5' |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {u'default': {u'BACKEND': u'django.core.cache.backends.memcached.MemcachedCache', u'KEY_PREFIX': u'********************', u'LOCATION': u'127.0.0.1:11211', u'TIMEOUT': 3600}} |
PLEIADI_CMSPLUGINS_GALLERY_NO_LINK | 'no_link' |
CONFIG_DEFAULT_NEWSLETTER_TO_EMAIL | {'LIVE': (u'marketing@pomionline.it',), 'LOCAL': (u'm.grignaffini@hoopcommunication.it',), 'TEST': (u'l.lanzoni@hoopcommunication.it',)} |
SESSION_COOKIE_PATH | '/' |
PLEIADI_CMSPLUGINS_TEASER_STYLE_CHOICES | (('h1', <django.utils.functional.__proxy__ object at 0x7fc361c28510>), ('simple', <django.utils.functional.__proxy__ object at 0x7fc361c28550>), ('article', <django.utils.functional.__proxy__ object at 0x7fc361c28590>), ('article_red', <django.utils.functional.__proxy__ object at 0x7fc361c285d0>), ('article_bg', <django.utils.functional.__proxy__ object at 0x7fc361c28650>), ('image', <django.utils.functional.__proxy__ object at 0x7fc361c286d0>), ('banner', <django.utils.functional.__proxy__ object at 0x7fc361c28750>), ('simple_mp4', <django.utils.functional.__proxy__ object at 0x7fc361c287d0>), ('banner_white', <django.utils.functional.__proxy__ object at 0x7fc361c28850>), ('left_image', <django.utils.functional.__proxy__ object at 0x7fc361c288d0>), ('bottom_image_red', <django.utils.functional.__proxy__ object at 0x7fc361c28950>), ('recipe', <django.utils.functional.__proxy__ object at 0x7fc361c289d0>), ('recipe_left', <django.utils.functional.__proxy__ object at 0x7fc361c28a50>), ('banner_video_in_page', <django.utils.functional.__proxy__ object at 0x7fc361cc07d0>), ('banner_bigger', <django.utils.functional.__proxy__ object at 0x7fc361c28ad0>), ('banner_cook', <django.utils.functional.__proxy__ object at 0x7fc361c28b50>), ('trace', <django.utils.functional.__proxy__ object at 0x7fc361c28bd0>), ('simple_image', <django.utils.functional.__proxy__ object at 0x7fc361c28c90>), ('right_image', <django.utils.functional.__proxy__ object at 0x7fc361c28d10>), ('banner_text', <django.utils.functional.__proxy__ object at 0x7fc361c28d90>), ('pdf_right', <django.utils.functional.__proxy__ object at 0x7fc361c28e10>), ('rules', <django.utils.functional.__proxy__ object at 0x7fc361c28e90>), ('cookbooks', <django.utils.functional.__proxy__ object at 0x7fc361c28f10>), ('float_banner', <django.utils.functional.__proxy__ object at 0x7fc361c28f90>), ('service', <django.utils.functional.__proxy__ object at 0x7fc361c2c050>), ('overlay', <django.utils.functional.__proxy__ object at 0x7fc361c2c0d0>), ('overlay_vinci', <django.utils.functional.__proxy__ object at 0x7fc361c2c150>), ('bottom_over', <django.utils.functional.__proxy__ object at 0x7fc361c2c1d0>), ('cookies', <django.utils.functional.__proxy__ object at 0x7fc361c2c250>)) |
THUMBNAIL_PREFIX | u'generated_' |
CONFIG_DEFAULT_TO_EMAIL | {'LIVE': (u'info@pomionline.it',), 'LOCAL': (u'm.grignaffini@hoopcommunication.it',), 'TEST': (u'l.lanzoni@hoopcommunication.it',)} |
THUMBNAIL_DEBUG | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
CMS_TEMPLATES | (('cms/pages/default_page.html', 'Default page'), ('cms/pages/event_page.html', 'Event page (Banner full height)'), ('cms/pages/event_page_natural_height.html', 'Event page')) |
MIDDLEWARE_CLASSES | [u'raven.contrib.django.middleware.DjangoRestFrameworkCompatMiddleware', u'raven.contrib.django.middleware.SentryMiddleware', u'site_extension.middleware.SiteExtensionMiddleware', u'corsheaders.middleware.CorsMiddleware', u'cms.middleware.utils.ApphookReloadMiddleware', u'django.middleware.security.SecurityMiddleware', u'django.contrib.sessions.middleware.SessionMiddleware', u'core.middleware.LocaleMiddleware', u'django.middleware.common.CommonMiddleware', u'django.middleware.csrf.CsrfViewMiddleware', u'django.contrib.auth.middleware.AuthenticationMiddleware', u'django.contrib.auth.middleware.SessionAuthenticationMiddleware', u'django.contrib.messages.middleware.MessageMiddleware', u'django.middleware.clickjacking.XFrameOptionsMiddleware', u'crequest.middleware.CrequestMiddleware', u'cms.middleware.user.CurrentUserMiddleware', u'cms.middleware.page.CurrentPageMiddleware', u'cms.middleware.toolbar.ToolbarMiddleware', u'cms.middleware.language.LanguageCookieMiddleware', u'pleiadi_content.seo.middleware.SeoMiddleware', u'oauth2_provider.middleware.OAuth2TokenMiddleware'] |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
CMS_LANGUAGES | {1: [{'code': 'it', 'fallbacks': [], 'hide_untranslated': True, 'name': 'Italian', 'public': True, 'redirect_on_fallback': False}, {'code': 'en', 'fallbacks': [], 'hide_untranslated': True, 'name': 'English', 'public': True, 'redirect_on_fallback': False}], 2: [{'code': 'it', 'fallbacks': [], 'hide_untranslated': True, 'name': 'Italian', 'public': True, 'redirect_on_fallback': False}, {'code': 'en', 'fallbacks': [], 'hide_untranslated': True, 'name': 'English', 'public': True, 'redirect_on_fallback': False}, {'code': 'en-us', 'fallbacks': [], 'hide_untranslated': True, 'name': 'American English', 'public': True, 'redirect_on_fallback': False}], 3: [{'code': 'en-us', 'fallbacks': ['es'], 'hide_untranslated': True, 'name': 'American English', 'public': True, 'redirect_on_fallback': False}, {'code': 'es', 'fallbacks': [], 'hide_untranslated': True, 'name': 'Spanish', 'public': True, 'redirect_on_fallback': False}], 6: [{'code': 'de', 'fallbacks': [], 'hide_untranslated': True, 'name': 'German', 'public': True, 'redirect_on_fallback': False}], 7: [{'code': 'en', 'fallbacks': ['fr'], 'hide_untranslated': True, 'name': 'English', 'public': True, 'redirect_on_fallback': False}, {'code': 'fr', 'fallbacks': ['en'], 'hide_untranslated': True, 'name': 'French', 'public': True, 'redirect_on_fallback': False}], 8: [{'code': 'de', 'fallbacks': [], 'hide_untranslated': True, 'name': 'German', 'public': True, 'redirect_on_fallback': False}], 9: [{'code': 'en', 'fallbacks': [], 'hide_untranslated': True, 'name': 'English', 'public': True, 'redirect_on_fallback': False}, {'code': 'ar', 'fallbacks': [], 'hide_untranslated': True, 'name': 'Arabian', 'public': True, 'redirect_on_fallback': False}], 10: [{'code': 'ar', 'fallbacks': [], 'hide_untranslated': True, 'name': 'Arabian', 'public': True, 'redirect_on_fallback': False}], 11: [{'code': 'en', 'fallbacks': [], 'hide_untranslated': True, 'name': 'English', 'public': True, 'redirect_on_fallback': False}, {'code': 'ru', 'fallbacks': [], 'hide_untranslated': True, 'name': 'Russian', 'public': True, 'redirect_on_fallback': False}], 12: [{'code': 'en', 'fallbacks': [], 'hide_untranslated': True, 'name': 'English', 'public': True, 'redirect_on_fallback': False}, {'code': 'ja', 'fallbacks': [], 'hide_untranslated': True, 'name': 'Japanese', 'public': True, 'redirect_on_fallback': False}], 13: [{'code': 'ar', 'fallbacks': [], 'hide_untranslated': True, 'name': 'Arabian', 'public': True, 'redirect_on_fallback': False}], 14: [{'code': 'ar', 'fallbacks': [], 'hide_untranslated': True, 'name': 'Arabian', 'public': True, 'redirect_on_fallback': False}], 15: [{'code': 'ar', 'fallbacks': [], 'hide_untranslated': True, 'name': 'Arabian', 'public': True, 'redirect_on_fallback': False}], 16: [{'code': 'es', 'fallbacks': [], 'hide_untranslated': True, 'name': 'Spanish', 'public': True, 'redirect_on_fallback': False}], 17: [{'code': 'en', 'fallbacks': [], 'hide_untranslated': True, 'name': 'English', 'public': True, 'redirect_on_fallback': False}, {'code': 'he', 'fallbacks': [], 'hide_untranslated': True, 'name': 'Hebrew', 'public': True, 'redirect_on_fallback': False}], 18: [{'code': 'en', 'fallbacks': [], 'hide_untranslated': True, 'name': 'English', 'public': True, 'redirect_on_fallback': False}, {'code': 'ar', 'fallbacks': [], 'hide_untranslated': True, 'name': 'Arabian', 'public': True, 'redirect_on_fallback': False}], <class cms.utils.conf.VERIFIED at 0x7fc369a94188>: True, 'default': {'fallbacks': [], 'hide_untranslated': True, 'public': False, 'redirect_on_fallback': False}} |
CACHE_DURATION_DEFAULT | 3600 |
LANGUAGE_COOKIE_NAME | 'django_language' |
DEFAULT_SCHEME | u'https' |
FILE_UPLOAD_TEMP_DIR | None |
LOGGING_CONFIG | 'logging.config.dictConfig' |
DEFAULT_NEWSLETTER_TO_EMAIL | (u'marketing@pomionline.it',) |
SITE_MENU_MAIL_RECIPIENTS | [u'c.bartolini@hoopcommunication.it', u'm.grignaffini@hoopcommunication.it'] |
TEMPLATE_LOADERS | ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'] |
FILER_IMAGE_MODEL | 'filer.Image' |
LANGUAGES_CONFIGURATION | {u'ar': {u'active': True, u'country_slug': u'united-arab-emirates', u'flag': u'pleiadi_content/languages/images/flags/ar.gif', u'locale': u'ar', u'locale_country': u'ar-AE', u'rel_alternate_language_code': u'ar', u'text_direction': u'rtl', u'visible_front_end': True}, u'de': {u'active': True, u'country_slug': u'germany', u'flag': u'pleiadi_content/languages/images/flags/de.gif', u'locale': u'de', u'locale_country': u'de-DE', u'rel_alternate_language_code': u'de', u'text_direction': u'ltr', u'visible_front_end': True}, u'en': {u'active': True, u'country_slug': None, u'flag': u'pleiadi_content/languages/images/flags/uk.gif', u'locale': u'en', u'locale_country': u'en-GB', u'rel_alternate_language_code': u'x-default', u'text_direction': u'ltr', u'visible_front_end': True}, u'en-us': {u'active': True, u'country_slug': None, u'flag': u'pleiadi_content/languages/images/flags/usa.gif', u'locale': u'en-us', u'locale_country': u'en-US', u'rel_alternate_language_code': u'en-us', u'text_direction': u'ltr', u'visible_front_end': True}, u'es': {u'active': True, u'country_slug': u'spain', u'flag': u'pleiadi_content/languages/images/flags/es.gif', u'locale': u'es', u'locale_country': u'es-ES', u'rel_alternate_language_code': u'es', u'text_direction': u'ltr', u'visible_front_end': True}, u'fr': {u'active': True, u'country_slug': u'france', u'flag': u'pleiadi_content/languages/images/flags/fr.gif', u'locale': u'fr', u'locale_country': u'fr-FR', u'rel_alternate_language_code': u'fr', u'text_direction': u'ltr', u'visible_front_end': True}, u'he': {u'active': True, u'country_slug': u'israel', u'flag': u'pleiadi_content/languages/images/flags/il.gif', u'locale': u'he', u'locale_country': u'he', u'rel_alternate_language_code': u'he', u'text_direction': u'rtl', u'visible_front_end': True}, u'it': {u'active': True, u'country_slug': u'italy', u'flag': u'pleiadi_content/languages/images/flags/it.gif', u'locale': u'it', u'locale_country': u'it-IT', u'rel_alternate_language_code': u'it', u'text_direction': u'ltr', u'visible_front_end': True}, u'ja': {u'active': True, u'country_slug': u'japan', u'flag': u'pleiadi_content/languages/images/flags/ja.gif', u'locale': u'ja', u'locale_country': u'ja', u'rel_alternate_language_code': u'ja', u'text_direction': u'ltr', u'visible_front_end': True}, u'ru': {u'active': True, u'country_slug': u'russian-federation', u'flag': u'pleiadi_content/languages/images/flags/ru.gif', u'locale': u'ru', u'locale_country': u'ru', u'rel_alternate_language_code': u'ru', u'text_direction': u'ltr', u'visible_front_end': True}} |
CKEDITOR_SETTINGS | {u'language': u'{{ language }}', u'skin': u'moono', u'toolbar_CMS': [[u'Styles', u'Format', u'Font', u'FontSize', u'NumberedList', u'BulletedList'], {u'items': [u'Cut', u'Copy', u'Paste', u'PasteText', u'PasteFromWord', u'-', u'Undo', u'Redo'], u'name': u'clipboard'}, [u'JustifyLeft', u'JustifyCenter', u'JustifyRight', u'JustifyBlock'], [u'Bold', u'Italic', u'Underline', u'Strike', u'Subscript', u'Superscript', u'-', u'Undo', u'Redo'], [u'Link', u'Unlink', u'Anchor'], [u'Image', u'Table', u'HorizontalRule'], [u'Source']]} |
TEMPLATE_DEBUG | False |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | u'_csrftoken' |
PLEIADI_CMSPLUGINS_GALLERY_FILELIST_STYLE_CHOICES | (('filelist_downloads', <django.utils.functional.__proxy__ object at 0x7fc361c60450>),) |
AUTH_PASSWORD_VALIDATORS | u'********************' |
USE_X_FORWARDED_HOST | False |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
EMAIL_TIMEOUT | None |
SECURE_SSL_HOST | None |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
SEO_ALTERNATE_ENABLE | True |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
CSRF_TRUSTED_ORIGINS | [] |
LANGUAGE_COOKIE_DOMAIN | None |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | [u'dynamic_settings.apps.DynamicSettingsConfig', u'modeltranslation', u'django.contrib.admin', u'django.contrib.auth', u'django.contrib.sites', u'django.contrib.contenttypes', u'django.contrib.sessions', u'django.contrib.messages', u'django.contrib.staticfiles', u'django.contrib.sitemaps', u'celery', u'core', u'cms', u'cms_extensions', u'site_extension', u'site_menu', u'treebeard', u'menus', u'sekizai', u'easy_thumbnails', u'easy_thumbnails.optimize', u'filer', u'mptt', u'ckeditor', u'ckeditor_uploader', u'oauth2_provider', u'rest_framework', u'corsheaders', u'djangocms_admin_style', u'djangocms_text_ckeditor', u'djangocms_column', u'pleiadi_cmsplugins.base', u'pleiadi_cmsplugins.gallery', u'pleiadi_cmsplugins.teaser', u'import_export', u'el_pagination', u'gulp_rev', u'captcha', u'raven.contrib.django.raven_compat', u'async_import_export', u'adminsortable2', u'sortedm2m', u'mailing', u'pleiadi_content', u'multiselectfield', u'pleiadi_geographic', u'news', u'products', u'recipes', u'tracking', u'food_columns', u'farmers', u'network', u'bullettins', u'contacts', u'newsletter', u'recipes_book', u'landings', u'social_entries', u'press', u'competitors'] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
USE_L10N | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
STATICFILES_DIRS | [u'/opt/pomi-website-2018/project/pomi_website_2018/frontend-libs', u'/opt/pomi-website-2018/project/pomi_website_2018/frontend-assets'] |
PLEIADI_CMSPLUGINS_GALLERY_DEFAULT_STYLE | 'teaserlist_carousel' |
SECURE_PROXY_SSL_HEADER | (u'HTTP_X_FORWARDED_PROTO', u'https') |
LANGUAGE_COOKIE_AGE | None |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
INTERNAL_IPS | [] |
PLEIADI_CMSPLUGINS_GALLERY_SLIDESHOW_STYLE_CHOICES | (('teaserlist_carousel_simple', <django.utils.functional.__proxy__ object at 0x7fc361cd5e50>), ('teaserlist_carousel_simple_vimeo', <django.utils.functional.__proxy__ object at 0x7fc361cd5e90>), ('teaserlist_carousel_factories', <django.utils.functional.__proxy__ object at 0x7fc361cd5ed0>), ('teaserlist_carousel_event', <django.utils.functional.__proxy__ object at 0x7fc361cd5f10>), ('teaserlist_carousel_event2', <django.utils.functional.__proxy__ object at 0x7fc361cd5f90>), ('teaserlist_carousel_html_video', <django.utils.functional.__proxy__ object at 0x7fc361c60050>), ('teaserlist_carousel_image_video', <django.utils.functional.__proxy__ object at 0x7fc361c600d0>), ('teaserlist_carousel_right_text', <django.utils.functional.__proxy__ object at 0x7fc361c60150>), ('teaserlist_carousel_left_text', <django.utils.functional.__proxy__ object at 0x7fc361c601d0>), ('teaserlist_carousel_timeline', <django.utils.functional.__proxy__ object at 0x7fc361c60250>), ('teaserlist_carousel_interview', <django.utils.functional.__proxy__ object at 0x7fc361c602d0>), ('teaserlist_carousel_spot', <django.utils.functional.__proxy__ object at 0x7fc361c60350>), ('teaserlist_carousel_interview_video', <django.utils.functional.__proxy__ object at 0x7fc361c603d0>)) |
MONTH_DAY_FORMAT | 'F j' |
LOGIN_URL | '/accounts/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
TIME_FORMAT | 'P' |
AUTH_USER_MODEL | 'auth.User' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
PLEIADI_CMSPLUGINS_GALLERY_LINK_TYPE_CHOICES | (('no_link', <django.utils.functional.__proxy__ object at 0x7fc361cc0590>), ('page_link', <django.utils.functional.__proxy__ object at 0x7fc361cc05d0>), ('url_link', <django.utils.functional.__proxy__ object at 0x7fc361cc0610>), ('media_link', <django.utils.functional.__proxy__ object at 0x7fc361cc0650>)) |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
EMAIL_HOST_PASSWORD | u'********************' |
CONFIG_DATABASES | {'LIVE': {u'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, u'ENGINE': u'django.db.backends.postgresql_psycopg2', u'HOST': u'10.0.3.2', u'NAME': u'pomi_website_2018', 'OPTIONS': {}, u'PASSWORD': u'********************', u'PORT': u'', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, u'USER': u'pomi_web'}}, 'LOCAL': {u'default': {u'ENGINE': u'django.db.backends.postgresql_psycopg2', u'HOST': u'docker.for.mac.localhost', u'NAME': u'pomi_website_2018', u'PASSWORD': u'********************', u'PORT': u'', u'USER': u'pomi_web'}}, 'TEST': {u'default': {u'ENGINE': u'django.db.backends.postgresql_psycopg2', u'HOST': u'localhost', u'NAME': u'pomi_website_2018', u'PASSWORD': u'********************', u'PORT': u'', u'USER': u'pomi_web'}}} |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
SESSION_FILE_PATH | None |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
NUMBER_GROUPING | 0 |
DEFAULT_CC_EMAIL | () |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
PLEIADI_CMSPLUGINS_TEASER_DEFAULT_STYLE | 'teaser' |
CACHE_KEY_PREFIX | u'********************' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
CELERY_TASK_SERIALIZER | u'json' |
CELERY_BROKER_URL_CONFIG | {'LIVE': u'amqp://pomi-2018:pomi-2018@localhost:5672/pomi-2018', 'LOCAL': u'amqp://pomi-2018:pomi-2018@localhost:5672/pomi-2018', 'TEST': u'amqp://pomi-2018:pomi-2018@localhost:5672/pomi-2018'} |
DECIMAL_SEPARATOR | '.' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
SITE_ID | 1 |
LOCALE_PATHS | (u'/opt/pomi-website-2018/project/pomi_website_2018/locale',) |
TEMPLATE_STRING_IF_INVALID | '' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
FIXTURE_DIRS | [] |
EMAIL_HOST | u'smtp5.studiopleiadi.com' |
DATE_FORMAT | 'N j, Y' |
USE_MINIFIED_TEMPLATES | False |
MEDIA_ROOT | u'/opt/pomi-website-2018/project/pomi_website_2018/../media' |
TRACKING_API_URL | u'********************' |
PLEIADI_CMSPLUGINS_GALLERY_TEASERLIST_STYLE_CHOICES | (('teaserlist_image_boxes', <django.utils.functional.__proxy__ object at 0x7fc361c60550>), ('teaserlist_video_boxes', <django.utils.functional.__proxy__ object at 0x7fc361c605d0>), ('teaserlist_squares', <django.utils.functional.__proxy__ object at 0x7fc361c60650>), ('teaserlist_icons', <django.utils.functional.__proxy__ object at 0x7fc361c60690>), ('teaserlist_icons_up_down', <django.utils.functional.__proxy__ object at 0x7fc361c60710>), ('teaserlist_icons_images', <django.utils.functional.__proxy__ object at 0x7fc361c60790>), ('teaserlist_boxes_img_text', <django.utils.functional.__proxy__ object at 0x7fc361c60810>), ('teaserlist_rules', <django.utils.functional.__proxy__ object at 0x7fc361c60890>), ('teaserlist_icons_in_shadow', <django.utils.functional.__proxy__ object at 0x7fc361c60910>), ('teaserlist_icons_five', <django.utils.functional.__proxy__ object at 0x7fc361c60990>), ('teaserlist_products', <django.utils.functional.__proxy__ object at 0x7fc361c60a10>), ('teaserlist_icons_green_dots', <django.utils.functional.__proxy__ object at 0x7fc361c60a90>), ('teaserlist_banner_green', <django.utils.functional.__proxy__ object at 0x7fc361c60b10>), ('teaserlist_text_half', <django.utils.functional.__proxy__ object at 0x7fc361c60b90>), ('teaserlist_videos', <django.utils.functional.__proxy__ object at 0x7fc361c60c10>)) |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | ((u'Luca Lanzoni', u'l.lanzoni@hoopcommunication.it'), (u'Claudio Bartolini', u'c.bartolini@hoopcommunication.it')) |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | u'Pomi <pomismtp@studiopleiadi.com>' |
PLEIADI_CMSPLUGINS_GALLERY_URL_LINK | 'url_link' |
REST_FRAMEWORK | {u'DEFAULT_AUTHENTICATION_CLASSES': (u'rest_framework.authentication.SessionAuthentication',), u'DEFAULT_PERMISSION_CLASSES': (u'rest_framework.permissions.IsAuthenticatedOrReadOnly',), u'DEFAULT_THROTTLE_RATES': {u'anon': u'30/minute'}} |
WKHTMLTOPDF_BIN | u'/usr/local/bin/wkhtmltopdf' |
MEDIA_URL | u'/media/' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | [] |
CKEDITOR_CONFIGS | {u'default': {u'toolbar': u'Custom', u'toolbar_Custom': [[u'Styles', u'Format', u'Font', u'FontSize', u'NumberedList', u'BulletedList'], {u'items': [u'Cut', u'Copy', u'Paste', u'PasteText', u'PasteFromWord', u'-', u'Undo', u'Redo'], u'name': u'clipboard'}, [u'JustifyLeft', u'JustifyCenter', u'JustifyRight', u'JustifyBlock'], [u'Bold', u'Italic', u'Underline', u'Strike', u'Subscript', u'Superscript', u'-', u'Undo', u'Redo'], [u'Link', u'Unlink', u'Anchor'], [u'Image', u'Table', u'HorizontalRule'], [u'Source']]}} |
MAILCHIMP_API_KEY | u'********************' |
DISALLOWED_USER_AGENTS | [] |
ALLOWED_INCLUDE_ROOTS | [] |
CURRENT_ENV | 'LIVE' |
LOGGING | {} |
PREPEND_WWW | False |
SHORT_DATE_FORMAT | 'm/d/Y' |
SECRET_KEY | u'********************' |
DEFAULT_BCC_EMAIL | (u'l.lanzoni@hoopcommunication.it', u'c.bartolini@hoopcommunication.it', u'm.grignaffini@hoopcommunication.it') |
TEMPLATES | [{u'BACKEND': u'django.template.backends.django.DjangoTemplates', u'DIRS': [u'/opt/pomi-website-2018/project/pomi_website_2018/templates'], u'OPTIONS': {u'context_processors': [u'django.template.context_processors.debug', u'django.template.context_processors.request', u'django.contrib.auth.context_processors.auth', u'django.contrib.messages.context_processors.messages', u'django.template.context_processors.i18n', u'django.template.context_processors.media', u'django.template.context_processors.static', u'sekizai.context_processors.sekizai', u'cms.context_processors.cms_settings', u'site_extension.context_processors.sites_context', u'core.context_processors.current_language', u'core.context_processors.active_languages_front_end', u'pleiadi_content.seo.context_processors.rel_alternate'], u'loaders': [u'core.template.loaders.minified_filesystem.Loader', u'core.template.loaders.minified_app_directories.Loader', u'django.template.loaders.filesystem.Loader', u'django.template.loaders.app_directories.Loader']}}] |
MAILCHIMP_LISTS | {u'en': u'ef7fa0612a', u'en-us': u'f87c4c859a', u'it': u'ff25e8c10f'} |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
IGNORABLE_404_URLS | [] |
SECURE_SSL_REDIRECT | False |
TIME_ZONE | u'Europe/Rome' |
CORS_ORIGIN_ALLOW_ALL | True |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
PLEIADI_CMSPLUGINS_GALLERY_MEDIA_LINK | 'media_link' |
EMAIL_USE_SSL | False |
TEMPLATE_CONTEXT_PROCESSORS | ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages'] |
MIGRATION_MODULES | {} |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | '_pomi_website_2018.settings' |
PROJECT_PATH | '/opt/pomi-website-2018/project/pomi_website_2018/_pomi_website_2018' |
USE_ETAGS | False |
MEMCACHED_LOCATION | {'LIVE': u'127.0.0.1:11211', 'LOCAL': u'127.0.0.1:11211', 'TEST': u'127.0.0.1:11211'} |
LANGUAGES | ((u'it', u'Italian'), (u'en', u'English'), (u'es', u'Spanish'), (u'de', u'German'), (u'fr', u'French'), (u'ar', u'Arabic'), (u'ru', u'Russian'), (u'ja', u'Japanese'), (u'en-us', u'English'), (u'he', u'Hebrew')) |
GULP_REV_PATH | u'/opt/pomi-website-2018/project/pomi_website_2018/frontend-libs/rev-manifest.json' |
CELERY_TASK_ALWAYS_EAGER | False |
CSRF_COOKIE_AGE | 31449600 |
STATIC_URL | u'/static/' |
EMAIL_PORT | 10025 |
PLEIADI_CMSPLUGINS_GALLERY_PAGE_LINK | 'page_link' |
PLEIADI_CMSPLUGINS_GALLERY_DEFAULT_LINK_TYPE | 'no_link' |
USE_TZ | True |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
CELERY_RESULT_BACKEND | u'amqp' |
TEST_NON_SERIALIZED_APPS | [] |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
LANGUAGE_COOKIE_PATH | '/' |
CACHE_MIDDLEWARE_SECONDS | 600 |
EMAIL_SSL_CERTFILE | None |
CSRF_COOKIE_HTTPONLY | False |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
FORCE_SCRIPT_NAME | None |
EMAIL_HOST_USER | '' |
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.