[Errno 2] No such file or directory: '/home/zelena-istra/djangosites/zelenaistra/zelenaistra/media/files/djeca.jpg'
Request Method: | GET |
---|---|
Request URL: | https://www.zelena-istra.hr/hr/articles/novosti/149/uspjesna-akcija-plasticno-nije-fantasticno-u-rovin/ |
Django Version: | 2.2.9 |
Exception Type: | FileNotFoundError |
Exception Value: | [Errno 2] No such file or directory: '/home/zelena-istra/djangosites/zelenaistra/zelenaistra/media/files/djeca.jpg' |
Exception Location: | /home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/magic.py in from_file, line 86 |
Python Executable: | /usr/bin/uwsgi-core |
Python Version: | 3.6.13 |
Python Path: | ['/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/', '.', '', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/home/zelena-istra/djangosites/zelenaistra'] |
Server time: | Pet, 29 Ožu. 2024 02:33:09 +0100 |
In template /home/zelena-istra/djangosites/zelenaistra/zelenaistra/articles/templates/articles/snippets/attachments.html
, error at line 10
1 | {% load i18n %} |
---|---|
2 | |
3 | <h3 class="article-extras-title">{% trans 'Attachments' %}</h3> |
4 | <ul> |
5 | {% for att in article.attachments.all %} |
6 | <li class="attachment-item"> |
7 | <a class="download-btn" |
8 | href="{% url 'articles:attachment-download-counter' att.id %}?{{ att.article }}-{{ att.name }}" |
9 | target="_blank"> |
10 | <i class="{{ att.get_font_awesome_icon }}" aria-hidden="true"></i> |
11 | {{ att.name }} |
12 | <span><i class="fa fa-download" aria-hidden="true"></i></span> |
13 | </a> |
14 | {% blocktrans with count=att.download_counter %} |
15 | <p>Preuzeto {{ count }} puta</p> |
16 | {% endblocktrans %} |
17 | </li> |
18 | {% endfor %} |
19 | </ul> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response)
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 | FileNotFoundError(2, 'No such file or directory') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f778a924160>> |
request | <WSGIRequest: GET '/hr/articles/novosti/149/uspjesna-akcija-plasticno-nije-fantasticno-u-rovin/'> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/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 0x7f778a56d7b8> |
callback_args | () |
callback_kwargs | {'article': 'uspjesna-akcija-plasticno-nije-fantasticno-u-rovin', 'id': 149, 'section': 'novosti'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f778a77b358>> |
request | <WSGIRequest: GET '/hr/articles/novosti/149/uspjesna-akcija-plasticno-nije-fantasticno-u-rovin/'> |
resolver | <URLResolver 'config.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=zelenaistra.articles.views.ArticleDetail, args=(), kwargs={'section': 'novosti', 'id': 149, 'article': 'uspjesna-akcija-plasticno-nije-fantasticno-u-rovin'}, url_name=article-detail, app_names=['articles'], namespaces=['articles'], route=hr/articles/<str:section>/<int:id>/<str:article>/) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f778a924160> |
wrapped_callback | <function ArticleDetail at 0x7f7789991730> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/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 0x7f778a56d7b8> |
callback_args | () |
callback_kwargs | {'article': 'uspjesna-akcija-plasticno-nije-fantasticno-u-rovin', 'id': 149, 'section': 'novosti'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f778a77b358>> |
request | <WSGIRequest: GET '/hr/articles/novosti/149/uspjesna-akcija-plasticno-nije-fantasticno-u-rovin/'> |
resolver | <URLResolver 'config.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=zelenaistra.articles.views.ArticleDetail, args=(), kwargs={'section': 'novosti', 'id': 149, 'article': 'uspjesna-akcija-plasticno-nije-fantasticno-u-rovin'}, url_name=article-detail, app_names=['articles'], namespaces=['articles'], route=hr/articles/<str:section>/<int:id>/<str:article>/) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f778a924160> |
wrapped_callback | <function ArticleDetail at 0x7f7789991730> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Return the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content…
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
retval | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/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):
"""Add a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
context | {'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7f778a0019b0> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/backends/django.py
in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)…
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
request | <WSGIRequest: GET '/hr/articles/novosti/149/uspjesna-akcija-plasticno-nije-fantasticno-u-rovin/'> |
self | <django.template.backends.django.Template object at 0x7f778a0019b0> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)…
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <django.template.base.Template object at 0x7f7789e57dd8> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <django.template.base.Template object at 0x7f7789e57dd8> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <ExtendsNode: extends "base.html"> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/loader_tags.py
in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)…
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, extra_context=None, isolated_context=False, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f7777ae3c88> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n '>]>, 'css': <Block Node: css. Contents: [<TextNode: '\n <!-- Plugin css '>, <django.templatetags.static.StaticNode object at 0x7f7789f45358>, <TextNode: '" media="all" />\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f453c8>, <TextNode: '" media="all" />\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f45470>, <TextNode: '" media="all" />\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f45518>, <TextNode: '" media="all" />\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f455c0>, <TextNode: '" media="all" />\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f45668>, <TextNode: '" media="all" />\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f45710>, <TextNode: '" media="all" />\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f457b8>, <TextNode: '" media="all" />\n\n '>, <compressor.templatetags.compress.CompressorNode object at 0x7f778e323a58>, <TextNode: '\n '>]>, 'extra_style': <Block Node: extra_style. Contents: [<TextNode: '\n '>]>, 'facebook_share': <Block Node: facebook_share. Contents: [<TextNode: '\n '>]>, 'js': <Block Node: js. Contents: [<TextNode: '\n <!-- django-priv'>, <django.template.library.InclusionNode object at 0x7f7789f4e780>, <TextNode: '\n <!-- -->\n\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f4e8d0>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4e940>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4e9e8>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4ea90>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4eb38>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4ebe0>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4ec88>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4ed30>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4edd8>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4ee80>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4ef28>, <TextNode: '"></script>\n\t<!-- Accessi'>, <compressor.templatetags.compress.CompressorNode object at 0x7f778a000828>, <TextNode: '\n\n '>]>, 'title': <Block Node: title. Contents: [<django.templatetags.i18n.TranslateNode object at 0x7f7789f45128>, <TextNode: ' - '>, <Tag: page_attribute>]>} |
compiled_parent | <django.template.base.Template object at 0x7f7789ff3160> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
node | <django.template.defaulttags.LoadNode object at 0x7f778a000c18> |
self | <ExtendsNode: extends "base.html"> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <django.template.base.Template object at 0x7f7789ff3160> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | "\n\n <!-- DjangoCMS's styles (must be out of block tag) -->\n " |
bits | ['', '\n' '\n' '<!DOCTYPE html>\n' '<html lang="en">\n' '\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">\n' ' ', '\n' '<meta property="og:image" ' 'content="http://www.zelena-istra.hr/media/files/images/djecamala.jpg" />\n', '\n\n <!-- django-privacy-mgmt -->\n ', '\n' '\n' '<script ' 'src="/static/django_privacy_mgmt/js/libs/jquery.cookie.2.2.0.js"></script>\n' '<script src="/static/django_privacy_mgmt/js/main.js"></script>\n' '\n', '\n <!-- -->\n\n ', '\n <script src="', '/static/js/django_privacy_mgmt/privacy_mgmt_utils.js', '"></script>\n ', '\n' ' <script type="text/javascript">\n' ' (function () {\n' ' if (django_privacy_mgmt && ' "django_privacy_mgmt.getPreference('STATISTICS')) {\n" " loadScript('//www.google-analytics.com/analytics.js', true, " 'function () {\n' ' (function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;\n' ' ' 'i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new ' 'Date();\n' ' ' 'a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;\n' ' ' 'm.parentNode.insertBefore(a,m)})(window,document,"script","//www.google-analytics.com/analytics.js","ga");\n' ' //ga("create", "UA-3769408-1", { "cookieDomain": "auto" });\n' ' ga("create", "UA-3769408-1", { "cookieDomain": \'', 'www.zelena-istra.hr', "' });\n" ' ga("set", "anonymizeIp", true);ga("send", "pageview");\n' " console.log('Google Analytics Loaded');\n" ' });\n' ' }\n' ' else {\n' " removeCookies(cookieDomain='", 'www.zelena-istra.hr', "', '_ga', '_gid', '_gat', '_gat_gtag_UA_156553005_1');\n" ' }\n' ' })();</script>\n' ' \n' ' <title>', 'Zelena Istra - USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ' 'ROVINJU', '</title>\n ', '', '\n <link rel="shortcut icon" type="image/x-icon" href="', '/static/images/favicon.ico', '" /> \n\n ', '\n' ' <!-- Plugin css -->\n' ' <!-- ' 'https://fontawesome.com/v4.7.0/icons/ -->\n' ' <link rel="stylesheet" type="text/css" ' 'href="/static/css/font-awesome.min.css" media="all" />\n' ' <link rel="stylesheet" type="text/css" ' 'href="/static/fonts/flaticon.css" media="all" />\n' ' <link rel="stylesheet" type="text/css" ' 'href="/static/css/bootstrap.min.css" media="all" />\n' ' <link rel="stylesheet" type="text/css" ' 'href="/static/css/animate.css" media="all" />\n' ' <link rel="stylesheet" type="text/css" ' 'href="/static/css/swiper.min.css" media="all" />\n' ' <link rel="stylesheet" type="text/css" ' 'href="/static/css/lightcase.css" media="all" />\n' ' <link rel="stylesheet" type="text/css" ' 'href="/static/css/jquery.nstSlider.css" media="all" />\n' ' <link rel="stylesheet" type="text/css" ' 'href="/static/css/flexslider.css" media="all" />\n' '\n' ' \n' ' <!-- own style css -->\n' ' <link rel="stylesheet" type="text/css" ' 'href="/static/css/style.css" media="all" />\n' ' <link rel="stylesheet" type="text/css" ' 'href="/static/css/rtl.css" media="all" />\n' ' <link rel="stylesheet" type="text/css" ' 'href="/static/css/responsive.css" media="all" />\n' '\n' ' <!-- additional style css -->\n' ' <link rel="stylesheet" type="text/css" ' 'href="/static/css/pages/index.css" media="all" />\n' ' <link rel="stylesheet" type="text/css" ' 'href="/static/css/pages/snippets/menu.css" media="all" />\n' ' <link rel="stylesheet" type="text/css" ' 'href="/static/css/pages/snippets/footer.css" media="all" />\n' '\n' ' <!-- /* PREVENT THESE ELEMENTS TO NOT APPLY DEFAULT STYLES FOR ' 'IPHONE, ANDROID */ -->\n' ' … <trimmed 4741 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
node | <Tag: render_block> |
self | [<django.template.defaulttags.LoadNode object at 0x7f778a000c18>, <TextNode: '\n\n<!DOCTYPE html>\n<html l'>, <Block Node: facebook_share. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n <!-- django-privacy'>, <django.template.library.InclusionNode object at 0x7f778a000b38>, <TextNode: '\n <!-- -->\n\n '>, <TextNode: '\n <script src="'>, <django.templatetags.static.StaticNode object at 0x7f778a000cf8>, <TextNode: '"></script>\n '>, <TextNode: '\n <script type="text/j'>, <Variable Node: site.domain>, <TextNode: "' });\n ga(">, <Variable Node: site.domain>, <TextNode: "', '_ga', '_gid', '_gat',">, <Block Node: title. Contents: [<django.templatetags.i18n.TranslateNode object at 0x7f7789f45128>, <TextNode: ' - '>, <Tag: page_attribute>]>, <TextNode: '</title>\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789ff3860>, <TextNode: '\n <link rel="shortcut '>, <django.templatetags.static.StaticNode object at 0x7f7789ff3748>, <TextNode: '" /> \n\n '>, <Block Node: css. Contents: [<TextNode: '\n <!-- Plugin css '>, <django.templatetags.static.StaticNode object at 0x7f7789f45358>, <TextNode: '" media="all" />\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f453c8>, <TextNode: '" media="all" />\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f45470>, <TextNode: '" media="all" />\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f45518>, <TextNode: '" media="all" />\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f455c0>, <TextNode: '" media="all" />\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f45668>, <TextNode: '" media="all" />\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f45710>, <TextNode: '" media="all" />\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f457b8>, <TextNode: '" media="all" />\n\n '>, <compressor.templatetags.compress.CompressorNode object at 0x7f778e323a58>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <compressor.templatetags.compress.CompressorNode object at 0x7f7789ff3d68>, <TextNode: "\n\n <!-- DjangoCMS's st">, <Tag: render_block>] |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <Tag: render_block> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
items | dict_items([('name', <classytags.values.StringValue object at 0x7f7789f45eb8>), ('postprocessor', <TemplateConstant: None>)]) |
kwargs | {'name': 'css', 'nodelist': [<TextNode: '\n</head>\n\n<body>\n<!-- dja'>, <django.template.library.InclusionNode object at 0x7f7789f45f60>, <TextNode: '\n<!-- -->\n\n'>, <Tag: cms_toolbar>], 'postprocessor': None} |
self | <Tag: render_block> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
name | 'css' |
nodelist | [<TextNode: '\n</head>\n\n<body>\n<!-- dja'>, <django.template.library.InclusionNode object at 0x7f7789f45f60>, <TextNode: '\n<!-- -->\n\n'>, <Tag: cms_toolbar>] |
postprocessor | None |
self | <Tag: render_block> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n<!-- -->\n\n' |
bits | ['\n</head>\n\n<body>\n<!-- django-privacy-mgmt -->\n', '\n' '\n' '\n' '\n' '\n' '\n' '\n' '\n' '<div class="cookie-bar js-cookie-bar" style="display: none">\n' ' <div class="container banner-container">\n' ' \n' ' <div class="row">\n' ' <div class="banner-text col-md-8">\n' ' Ova web stranica koristi kolačiće s ciljem pružanja boljeg ' 'korisničkog iskustva.\n' '<br class="text-break"> Ako ne pristajete na upotrebu kolačića, isključite ' 'ih u <a href="#" class="js-cookie-settings"><strong>postavkama ' 'privatnosti.</strong></a>\n' '<br> Također, u vezi sa zaštitom podataka, možete pročitati našu <a href="#" ' 'class="privacy-policy-banner-link"><strong>politiku ' 'privatnosti.</strong></a>\n' ' </div>\n' ' <div class="banner-buttons col-md-4">\n' ' <a href="#" class="js-cookie-settings ' 'banner-settings-button">Cookie postavke</a>\n' ' <a href="#" class="js-cookie-accept ' 'banner-accept-button">Prihvati</a>\n' ' </div>\n' ' </div>\n' ' </div>\n' '</div>\n', '\n<!-- -->\n\n'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
node | <Tag: cms_toolbar> |
self | [<TextNode: '\n</head>\n\n<body>\n<!-- dja'>, <django.template.library.InclusionNode object at 0x7f7789f45f60>, <TextNode: '\n<!-- -->\n\n'>, <Tag: cms_toolbar>] |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <Tag: cms_toolbar> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
items | dict_items([('name', <TemplateConstant: None>)]) |
kwargs | {'name': None, 'nodelist': [<TextNode: '\n\n <div class="box-lay'>, <IfNode>, <TextNode: '"><img src="'>, <django.templatetags.static.StaticNode object at 0x7f7789f48198>, <TextNode: '" alt="logo" class="img-r'>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f48390>, <TextNode: '</h6>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f48630>, <TextNode: '</h6>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f48710>, <TextNode: '</h6>\n '>, <Tag: page_url>, <TextNode: '"><button id="donate" typ'>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789ff74e0>, <TextNode: '\n '>, <IfNode>, <TextNode: '"><img src="'>, <django.templatetags.static.StaticNode object at 0x7f7789f487f0>, <TextNode: '" alt="logo" class="img-r'>, <TextNode: '\n '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7f7789f48ba8>, <TextNode: '\n '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7f7789f48c18>, <TextNode: '\n\n '>, <Tag: show_menu>, <TextNode: '\n '>, <ForNode: for language in LANGUAGES, tail_len: 3>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f7789ff7cc0>, <TextNode: '\n\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n <!-- Start Foot'>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f4d7b8>, <TextNode: '</h3>\n '>, <Tag: static_placeholder>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789ffc278>, <TextNode: '\n '>, <Tag: static_placeholder>, <TextNode: '\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f4da58>, <TextNode: '</h3>\n '>, <django.template.library.SimpleNode object at 0x7f7789f4db00>, <TextNode: '\n '>, <ForNode: for section in sections, tail_len: 5>, <TextNode: '\n '>, <django.templatetags.static.StaticNode object at 0x7f7789ffc710>, <TextNode: ') no-repeat;"></span>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f7789ffc6a0>, <TextNode: '</h3>\n '>, <django.template.library.InclusionNode object at 0x7f7789ffc668>, <TextNode: '\n '>, <Tag: static_placeholder>, <TextNode: '\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f4e438>, <TextNode: '</h3>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f7789f4e550>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789ffcb00>, <TextNode: '\n\n\n '>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <TextNode: '\n\n\n <!-- End Pre-Loade'>, <Block Node: js. Contents: [<TextNode: '\n <!-- django-priv'>, <django.template.library.InclusionNode object at 0x7f7789f4e780>, <TextNode: '\n <!-- -->\n\n '>, <djan… <trimmed 5474 bytes string> |
self | <Tag: cms_toolbar> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
name | None |
nodelist | [<TextNode: '\n\n <div class="box-lay'>, <IfNode>, <TextNode: '"><img src="'>, <django.templatetags.static.StaticNode object at 0x7f7789f48198>, <TextNode: '" alt="logo" class="img-r'>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f48390>, <TextNode: '</h6>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f48630>, <TextNode: '</h6>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f48710>, <TextNode: '</h6>\n '>, <Tag: page_url>, <TextNode: '"><button id="donate" typ'>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789ff74e0>, <TextNode: '\n '>, <IfNode>, <TextNode: '"><img src="'>, <django.templatetags.static.StaticNode object at 0x7f7789f487f0>, <TextNode: '" alt="logo" class="img-r'>, <TextNode: '\n '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7f7789f48ba8>, <TextNode: '\n '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7f7789f48c18>, <TextNode: '\n\n '>, <Tag: show_menu>, <TextNode: '\n '>, <ForNode: for language in LANGUAGES, tail_len: 3>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f7789ff7cc0>, <TextNode: '\n\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n <!-- Start Foot'>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f4d7b8>, <TextNode: '</h3>\n '>, <Tag: static_placeholder>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789ffc278>, <TextNode: '\n '>, <Tag: static_placeholder>, <TextNode: '\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f4da58>, <TextNode: '</h3>\n '>, <django.template.library.SimpleNode object at 0x7f7789f4db00>, <TextNode: '\n '>, <ForNode: for section in sections, tail_len: 5>, <TextNode: '\n '>, <django.templatetags.static.StaticNode object at 0x7f7789ffc710>, <TextNode: ') no-repeat;"></span>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f7789ffc6a0>, <TextNode: '</h3>\n '>, <django.template.library.InclusionNode object at 0x7f7789ffc668>, <TextNode: '\n '>, <Tag: static_placeholder>, <TextNode: '\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f4e438>, <TextNode: '</h3>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f7789f4e550>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789ffcb00>, <TextNode: '\n\n\n '>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <TextNode: '\n\n\n <!-- End Pre-Loade'>, <Block Node: js. Contents: [<TextNode: '\n <!-- django-priv'>, <django.template.library.InclusionNode object at 0x7f7789f4e780>, <TextNode: '\n <!-- -->\n\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f4e8d0>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4e940>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4e9e8>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4ea90>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4eb38>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4ebe0>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4ec88>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4ed30>, <TextNode: '"></script>\n <scri'>, <django.templa… <trimmed 4574 bytes string> |
request | <WSGIRequest: GET '/hr/articles/novosti/149/uspjesna-akcija-plasticno-nije-fantasticno-u-rovin/'> |
self | <Tag: cms_toolbar> |
toolbar | <cms.toolbar.toolbar.CMSToolbar object at 0x7f778a001400> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n\n ' |
bits | ['\n' '\n' ' <div class="box-layout">\n' ' <header class="header-style-1">\n' ' <div class="bg-header-top">\n' ' <div class="container">\n' ' <div class="row">\n' ' <div class="header-top">\n' ' <div class="row">\n' ' <div class="col-md-2">\n' ' <a class="pull-left" href="', '/', '"><img src="', '/static/images/logo/zelena-istra-logo.svg', '" alt="logo" class="img-responsive zelenaistra-logo" /></a>\n' ' </div>\n' ' <!-- .col-md-3 -->\n' ' <div class="col-md-8">\n' ' <div class="header-top-right ' 'pull-right">\n' ' <ul class="header-contact">\n' ' <li>\n' ' <i ' 'class="flaticon-message"></i>\n' ' <div ' 'class="h-adress-content">\n' ' <h6>', 'E-MAIL', '</h6>\n' ' ' '<p>ured@zelena-istra.hr</p>\n' ' </div>\n' ' <!-- .h-adress-content -->\n' ' </li>\n' ' <li>\n' ' <i ' 'class="flaticon-vibrating-phone"></i>\n' ' <div ' 'class="h-adress-content">\n' ' <h6>', 'Telefon', '</h6>\n' ' <p>+385 52 506 065</p>\n' ' </div>\n' ' <!-- .h-adress-content -->\n' ' </li>\n' ' <li>\n' ' <i ' 'class="flaticon-placeholder"></i>\n' ' <div ' 'class="h-adress-content">\n' ' <h6>', 'Adresa', '</h6>\n' ' <p>Gajeva 3, 52100 ' 'Pula</p>\n' ' </div>\n' ' <!-- .h-adress-content -->\n' ' </li>\n' ' </ul>\n' ' </div>\n' ' <!-- .header-top-right -->\n' ' </div>\n' ' <!-- .col-md-9 -->\n' ' <div class="col-md-2">\n' ' <a class="pull-right" href="', '/hr/o-nama/doniraj-iili-zaprati/', '"><button id="donate" type="button" class="btn btn-danger btn-lg ' 'align-middle"><strong>Doniraj</strong></button></a>\n' ' </div>\n' ' </div>\n' ' <!-- .row -->\n' ' </div>\n' ' <!-- .header-top -->\n' ' </div>\n' ' <!-- .header-top -->\n' ' </div>\n' ' <!-- .container -->\n' ' </div>\n' ' <!-- .bg-header-top -->\n' '\n' ' <!-- Start Menu -->\n' ' <div class="bg-main-menu menu-scroll">\n' ' <div class="container">\n' ' <div class="row">\n' ' \n' ' <div class="main-menu">\n' ' ', '\n' ' <nav class="navbar">\n' ' <!-… <trimmed 18422 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
node | <Block Node: content. Contents: [<TextNode: '\n '>]> |
self | [<TextNode: '\n\n <div class="box-lay'>, <IfNode>, <TextNode: '"><img src="'>, <django.templatetags.static.StaticNode object at 0x7f7789f48198>, <TextNode: '" alt="logo" class="img-r'>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f48390>, <TextNode: '</h6>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f48630>, <TextNode: '</h6>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f48710>, <TextNode: '</h6>\n '>, <Tag: page_url>, <TextNode: '"><button id="donate" typ'>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789ff74e0>, <TextNode: '\n '>, <IfNode>, <TextNode: '"><img src="'>, <django.templatetags.static.StaticNode object at 0x7f7789f487f0>, <TextNode: '" alt="logo" class="img-r'>, <TextNode: '\n '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7f7789f48ba8>, <TextNode: '\n '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7f7789f48c18>, <TextNode: '\n\n '>, <Tag: show_menu>, <TextNode: '\n '>, <ForNode: for language in LANGUAGES, tail_len: 3>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f7789ff7cc0>, <TextNode: '\n\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n <!-- Start Foot'>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f4d7b8>, <TextNode: '</h3>\n '>, <Tag: static_placeholder>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789ffc278>, <TextNode: '\n '>, <Tag: static_placeholder>, <TextNode: '\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f4da58>, <TextNode: '</h3>\n '>, <django.template.library.SimpleNode object at 0x7f7789f4db00>, <TextNode: '\n '>, <ForNode: for section in sections, tail_len: 5>, <TextNode: '\n '>, <django.templatetags.static.StaticNode object at 0x7f7789ffc710>, <TextNode: ') no-repeat;"></span>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f7789ffc6a0>, <TextNode: '</h3>\n '>, <django.template.library.InclusionNode object at 0x7f7789ffc668>, <TextNode: '\n '>, <Tag: static_placeholder>, <TextNode: '\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f7789f4e438>, <TextNode: '</h3>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f7789f4e550>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789ffcb00>, <TextNode: '\n\n\n '>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <TextNode: '\n\n\n <!-- End Pre-Loade'>, <Block Node: js. Contents: [<TextNode: '\n <!-- django-priv'>, <django.template.library.InclusionNode object at 0x7f7789f4e780>, <TextNode: '\n <!-- -->\n\n '>, <django.templatetags.static.StaticNode object at 0x7f7789f4e8d0>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4e940>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4e9e8>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4ea90>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4eb38>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4ebe0>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4ec88>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f7789f4ed30>, <TextNode: '"></script>\n <scri'>, <django.templa… <trimmed 4574 bytes string> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <Block Node: content. Contents: [<TextNode: '\n '>]> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)…
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: '\n<!-- Start Single Articl'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f7789e51518>, <TextNode: '" alt="blog-img-10" class'>, <django.template.defaulttags.CommentNode object at 0x7f7789e74278>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e74c50>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e74588>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e8cd68>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e8c390>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e55320>, <TextNode: '\n '>, <Variable Node: article.title>, <TextNode: '</h4>\n '>, <IfNode>, <TextNode: '\n\n\n '>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e1eac8>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e38ac8>, <TextNode: '\n\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789eae358>, <TextNode: '\n\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e27978>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n\n\n </'>, <django.template.loader_tags.IncludeNode object at 0x7f7789e5fe10>, <TextNode: '\n </di'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f7777ae3c88> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
push | <Block Node: content. Contents: [<TextNode: '\n<!-- Start Single Articl'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f7789e51518>, <TextNode: '" alt="blog-img-10" class'>, <django.template.defaulttags.CommentNode object at 0x7f7789e74278>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e74c50>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e74588>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e8cd68>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e8c390>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e55320>, <TextNode: '\n '>, <Variable Node: article.title>, <TextNode: '</h4>\n '>, <IfNode>, <TextNode: '\n\n\n '>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e1eac8>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e38ac8>, <TextNode: '\n\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789eae358>, <TextNode: '\n\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e27978>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n\n\n </'>, <django.template.loader_tags.IncludeNode object at 0x7f7789e5fe10>, <TextNode: '\n </di'>]> |
self | <Block Node: content. Contents: [<TextNode: '\n '>]> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n\n ' |
bits | ['\n' '<!-- Start Single Article Section -->\n' '\n' '<section class="bg-single-blog">\n' ' <div class="container">\n' ' <div class="row">\n' ' <div class="single-blog">\n' ' <div class="row">\n' ' <div class="col-md-9">\n' ' <div class="blog-items">\n' ' <div class="blog-img">\n' ' <img src="', '/media/files/images/djecamala.jpg.1200x900_q90_crop_upscale.jpg', '" alt="blog-img-10" class="img-responsive" />\n' ' </div>\n' ' <!-- .blog-img -->\n' ' <div class="blog-content-box">\n' ' <div class="meta-box">\n' ' <div class="event-author-option">\n' ' ', '', '\n' ' <!-- .author-img -->\n' ' <div class="event-author-name">\n' ' ', '\n' ' <i class="fa fa-user" ' 'aria-hidden="true"></i><p>irena</p>\n' ' ', '\n ', '\n' ' <i class="fa fa-calendar" ' 'aria-hidden="true"></i><p>04. 05. 2009. </p>\n' ' ', '\n' ' </div>\n' ' <!-- .author-name -->\n' ' </div>\n' ' <!-- .author-option -->\n' ' ', '', '\n ', '', '\n ', '', '\n ', '', '\n ', '', '\n' ' </div>\n' ' <!-- .meta-box -->\n' ' <div class="blog-content">\n' ' <h4>', 'USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU', '</h4>\n ', '\n' ' <div ' 'class="article-content-old-site"> \n' ' Danas je u Rovinju održana ' 'akcija "Plastično nije fantastično". U sklopu akcije Zelena Istra je u ' 'suradnji s Komunalnim servisom i Gradom Rovinjom podijelila 600 platnenih ' 'vrećica, a do kraja mjeseca putem radionica u vrtićima i školama bit će ' 'podijeljeno još 400 vrećica. Odaziv građana je bio velik te su svi u zamjenu ' 'za platnenu donijeli svoje stare plastične vrećice. Kontejner za plastiku ' 'napunio se plastičnim vrećicama u samo sat vremena.\r\n' 'Sudjelovali su i mališani vrtića "Naridola" i "Neven" te su izložili svoje ' 'radove napravljene od starih plastičnih vrećica.\r\n' 'Ova kampanja nastala je kao odgovor na opće prepoznati problem onečišćenja ' 'okoliša plastičnim vrećicama. Borba protiv plastičnih vrećica samo je jedan ' 'korak, poticaj građanima da se napokon uključe i doprinesu zaštiti ' 'okoliša. \r\n' 'Prema nekim procjenama stručnjaka u Hrvatskoj se samo u u velikim trgovačkim ' 'centrima dnevno podijeli oko 250.000 plastičnih vrećica, što znači više od ' 'milijun godišnje!\r\n' 'Poručujemo građanima da ponesu svoje platnene torbe i košare kada idu u ' 'kupovinu te da izbjegavaju kupovinu pretjerano zapakiranih proizvoda, ' 'pogotovo plastične ambalaže.\r\n' 'Jedna trajna vrećica u svom trajanju zamjenjuje 1000 plastičnih vrećica!\n' ' </div>\n' ' ', '\n\n\n ', '\n ', '', '\n' ' </div>\n' ' <!-- .blog-content -->\n' '\n' ' … <trimmed 8832 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
node | <IfNode> |
self | [<TextNode: '\n<!-- Start Single Articl'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f7789e51518>, <TextNode: '" alt="blog-img-10" class'>, <django.template.defaulttags.CommentNode object at 0x7f7789e74278>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e74c50>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e74588>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e8cd68>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e8c390>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e55320>, <TextNode: '\n '>, <Variable Node: article.title>, <TextNode: '</h4>\n '>, <IfNode>, <TextNode: '\n\n\n '>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e1eac8>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e38ac8>, <TextNode: '\n\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789eae358>, <TextNode: '\n\n '>, <django.template.defaulttags.CommentNode object at 0x7f7789e27978>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n\n\n </'>, <django.template.loader_tags.IncludeNode object at 0x7f7789e5fe10>, <TextNode: '\n </di'>] |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <IfNode> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)…
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | (literal <django.template.base.FilterExpression object at 0x7f7789ddff60>) |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
match | <QuerySet [<Attachment: slikaa.jpg>, <Attachment: slika4.jpg>, <Attachment: slika5.jpg>, <Attachment: P5060676.JPG>, <Attachment: djeca.jpg>]> |
nodelist | [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f7789e5f278>, <TextNode: '\n '>] |
self | <IfNode> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n ' |
bits | ['\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
node | <django.template.loader_tags.IncludeNode object at 0x7f7789e5f278> |
self | [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f7789e5f278>, <TextNode: '\n '>] |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f7789e5f278> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/loader_tags.py
in render
values = {
name: var.resolve(context)
for name, var in self.extra_context.items()
}
if self.isolated_context:
return template.render(context.new(values))
with context.push(**values):
return template.render(context)…
@register.tag('block')
def do_block(parser, token):
"""
Define a block that can be overridden by child templates.
Variable | Value |
---|---|
cache | {'articles/snippets/attachments.html': <django.template.base.Template object at 0x7f7789d4f518>} |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <django.template.loader_tags.IncludeNode object at 0x7f7789e5f278> |
template | <django.template.base.Template object at 0x7f7789d4f518> |
template_name | 'articles/snippets/attachments.html' |
values | {} |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)
else:
return self._render(context)…
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
is True and an exception occurs during parsing, the exception is
is annotated with contextual line information where it occurred in the
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <django.template.base.Template object at 0x7f7789d4f518> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <django.template.base.Template object at 0x7f7789d4f518> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '</h3>\n<ul>\n' |
bits | ['', '\n\n<h3 class="article-extras-title">', 'Prilozi', '</h3>\n<ul>\n'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
node | <ForNode: for att in article.attachments.all, tail_len: 13> |
self | [<django.template.defaulttags.LoadNode object at 0x7f7789d4fb70>, <TextNode: '\n\n<h3 class="article-extr'>, <django.templatetags.i18n.TranslateNode object at 0x7f7789d4fbe0>, <TextNode: '</h3>\n<ul>\n'>, <ForNode: for att in article.attachments.all, tail_len: 13>, <TextNode: '\n</ul>'>] |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <ForNode: for att in article.attachments.all, tail_len: 13> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/defaulttags.py
in render
unpacked_vars = dict(zip(self.loopvars, item))
pop_context = True
context.update(unpacked_vars)
else:
context[self.loopvars[0]] = item
for node in self.nodelist_loop:
nodelist.append(node.render_annotated(context))…
if pop_context:
# Pop the loop variables pushed on to the context to avoid
# the context ending up in an inconsistent state when other
# tags (e.g., include and with) push data to context.
context.pop()
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
i | 4 |
item | <Attachment: djeca.jpg> |
len_values | 5 |
loop_dict | {'counter': 5, 'counter0': 4, 'first': False, 'last': True, 'parentloop': {}, 'revcounter': 1, 'revcounter0': 0} |
node | <Variable Node: att.get_font_awesome_icon> |
nodelist | ['\n' ' <li class="attachment-item">\n' ' <a class="download-btn" \n' ' href="', '/hr/articles/attachment-download/149/', '?', 'USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU', '-', 'slikaa.jpg', '"\n target="_blank">\n <i class="', 'None', '" aria-hidden="true"></i>\n ', 'slikaa.jpg', '\n' ' <span><i class="fa fa-download" aria-hidden="true"></i></span>\n' ' </a>\n' ' ', '\n <p>Preuzeto 0 puta</p>\n ', '\n </li>\n', '\n' ' <li class="attachment-item">\n' ' <a class="download-btn" \n' ' href="', '/hr/articles/attachment-download/150/', '?', 'USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU', '-', 'slika4.jpg', '"\n target="_blank">\n <i class="', 'None', '" aria-hidden="true"></i>\n ', 'slika4.jpg', '\n' ' <span><i class="fa fa-download" aria-hidden="true"></i></span>\n' ' </a>\n' ' ', '\n <p>Preuzeto 0 puta</p>\n ', '\n </li>\n', '\n' ' <li class="attachment-item">\n' ' <a class="download-btn" \n' ' href="', '/hr/articles/attachment-download/151/', '?', 'USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU', '-', 'slika5.jpg', '"\n target="_blank">\n <i class="', 'None', '" aria-hidden="true"></i>\n ', 'slika5.jpg', '\n' ' <span><i class="fa fa-download" aria-hidden="true"></i></span>\n' ' </a>\n' ' ', '\n <p>Preuzeto 0 puta</p>\n ', '\n </li>\n', '\n' ' <li class="attachment-item">\n' ' <a class="download-btn" \n' ' href="', '/hr/articles/attachment-download/152/', '?', 'USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU', '-', 'P5060676.JPG', '"\n target="_blank">\n <i class="', 'None', '" aria-hidden="true"></i>\n ', 'P5060676.JPG', '\n' ' <span><i class="fa fa-download" aria-hidden="true"></i></span>\n' ' </a>\n' ' ', '\n <p>Preuzeto 0 puta</p>\n ', '\n </li>\n', '\n' ' <li class="attachment-item">\n' ' <a class="download-btn" \n' ' href="', '/hr/articles/attachment-download/228/', '?', 'USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU', '-', 'djeca.jpg', '"\n target="_blank">\n <i class="'] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <ForNode: for att in article.attachments.all, tail_len: 13> |
unpack | False |
values | <QuerySet [<Attachment: slikaa.jpg>, <Attachment: slika4.jpg>, <Attachment: slika5.jpg>, <Attachment: P5060676.JPG>, <Attachment: djeca.jpg>]> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <Variable Node: att.get_font_awesome_icon> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <Variable Node: att.get_font_awesome_icon> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
ignore_failures | False |
self | <django.template.base.FilterExpression object at 0x7f7789d522e8> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/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 | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
self | <Variable: 'att.get_font_awesome_icon'> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/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:
getcallargs(current)
except TypeError: # arguments *were* required
current = context.template.engine.string_if_invalid # invalid method call
else:
Variable | Value |
---|---|
bit | 'get_font_awesome_icon' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'article': <Article: USPJEŠNA AKCIJA "PLASTIČNO NIJE FANTASTIČNO" U ROVINJU>, 'view': <zelenaistra.articles.views.ArticleDetail object at 0x7f778a001160>, 'LANGUAGE_CODE': 'hr', 'LANGUAGES': [('hr', 'Hrvatski'), ('en', 'Engleski')], 'children': [<Navigation Node: Početna>, <Navigation Node: O nama>, <Navigation Node: Projekti>, <Navigation Node: Novosti>, <Navigation Node: Medijske objave>, <Navigation Node: Multimedija>, <Navigation Node: Kontakt>], 'template': 'pages/snippets/menu.html', 'from_level': 0, 'to_level': 1, 'extra_inactive': 100, 'extra_active': 100, 'namespace': None}] |
current | <bound method Attachment.get_font_awesome_icon of <Attachment: djeca.jpg>> |
self | <Variable: 'att.get_font_awesome_icon'> |
template_name | 'articles/detail.html' |
./zelenaistra/articles/models.py
in get_font_awesome_icon
content_type, icon = pair
if content_type == self.content_type():
return f'file_type_icons/{icon}'
def get_font_awesome_icon(self):
for pair in self.FONT_AWESOME_CONTENT_TYPE_CSS_CLASS_PAIRS:
content_type, fa_icon = pair
if content_type == self.content_type():…
return fa_icon
def content_type(self):
mime = Magic(mime=True)
return mime.from_file(self.file.path)
Variable | Value |
---|---|
content_type | 'application/pdf' |
fa_icon | 'fa fa-file-pdf-o' |
pair | ('application/pdf', 'fa fa-file-pdf-o') |
self | <Attachment: djeca.jpg> |
./zelenaistra/articles/models.py
in content_type
for pair in self.FONT_AWESOME_CONTENT_TYPE_CSS_CLASS_PAIRS:
content_type, fa_icon = pair
if content_type == self.content_type():
return fa_icon
def content_type(self):
mime = Magic(mime=True)
return mime.from_file(self.file.path)…
class ArticlesPluginModel(CMSPlugin):
section = models.ForeignKey(Section, null=True, blank=True, related_name='articles_plugins', on_delete=models.SET_NULL)
paginate_by = models.PositiveIntegerField(
_("Articles per page"), default=10,
validators=[MinValueValidator(1), MaxValueValidator(50)],
Variable | Value |
---|---|
mime | <magic.Magic object at 0x7f778d1e5e10> |
self | <Attachment: djeca.jpg> |
/home/zelena-istra/djangosites/zelenaistra-env/lib/python3.6/site-packages/magic.py
in from_file
buf = buf.encode('utf-8', errors='replace')
return maybe_decode(magic_buffer(self.cookie, buf))
except MagicException as e:
return self._handle509Bug(e)
def from_file(self, filename):
# raise FileNotFoundException or IOError if the file does not exist
with open(filename):…
pass
with self.lock:
try:
return maybe_decode(magic_file(self.cookie, filename))
except MagicException as e:
return self._handle509Bug(e)
Variable | Value |
---|---|
filename | '/home/zelena-istra/djangosites/zelenaistra/zelenaistra/media/files/djeca.jpg' |
self | <magic.Magic object at 0x7f778d1e5e10> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | '' |
CSRF_COOKIE | 'Ht7SlsSA0zkYtHuWbEQ5olrzLhUo2cMEM33KjOT39aSBbIyrmYxCOqQY7TJCBSyA' |
CSRF_COOKIE_USED | True |
DOCUMENT_ROOT | '/usr/share/nginx/html' |
HTTPS | 'on' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'www.zelena-istra.hr' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/hr/articles/novosti/149/uspjesna-akcija-plasticno-nije-fantasticno-u-rovin/' |
QUERY_STRING | '' |
REMOTE_ADDR | '3.81.221.121' |
REMOTE_PORT | '35022' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/hr/articles/novosti/149/uspjesna-akcija-plasticno-nije-fantasticno-u-rovin/' |
SCRIPT_NAME | '' |
SERVER_NAME | 'zelena-istra.fwd.hr' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
UWSGI_CHDIR | '/home/zelena-istra/djangosites/zelenaistra/' |
UWSGI_PYHOME | '/home/zelena-istra/djangosites/zelenaistra-env' |
UWSGI_SCRIPT | 'wsgi' |
uwsgi.node | b'linode4' |
uwsgi.version | b'2.0.12-debian' |
wsgi.errors | <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <uwsgi._Input object at 0x7f7777ad8450> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
config.settings.production
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_ADAPTER | 'zelenaistra.users.adapters.AccountAdapter' |
ACCOUNT_ALLOW_REGISTRATION | True |
ACCOUNT_AUTHENTICATION_METHOD | 'username' |
ACCOUNT_EMAIL_REQUIRED | True |
ACCOUNT_EMAIL_VERIFICATION | 'mandatory' |
ADMINS | [('luka ribaric', 'luka.ribaric01@gmail.com')] |
ADMIN_URL | 'admin' |
ALLOWED_HOSTS | ['zelena-istra.fwd.hr', 'linode4.fwd.hr', 'zelena-istra.hr', 'www.zelena-istra.hr'] |
APPEND_SLASH | True |
APPS_DIR | <Path:/home/zelena-istra/djangosites/zelenaistra/zelenaistra> |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'users.User' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CMS_LANGUAGES | {1: [{'code': 'hr', 'fallbacks': ['hr', 'en'], 'hide_untranslated': True, 'name': 'Hrvatski', 'public': True, 'redirect_on_fallback': True}, {'code': 'en', 'fallbacks': ['hr', 'en'], 'hide_untranslated': True, 'name': 'Engleski', 'public': True, 'redirect_on_fallback': True}], 'default': {'fallbacks': ['hr', 'en'], 'hide_untranslated': True, 'public': True, 'redirect_on_fallback': True}, <class 'cms.utils.conf.VERIFIED'>: True} |
CMS_PLACEHOLDER_CONF | {'about_sponsors': {'name': 'About Sponsors', 'plugins': ['TextPlugin']}, 'bulletin_archives': {'excluded_plugins': ['BannerPlugin'], 'name': 'Sadržaj'}, 'bulletins': {'name': 'Bulletins', 'plugins': ['FilePlugin', 'FolderPlugin', 'DownloadCounterPlugin']}, 'contact_location': {'name': 'Location', 'plugins': ['TextPlugin']}, 'contact_mail_web': {'name': 'Mail - Web', 'plugins': ['TextPlugin']}, 'contact_phone': {'name': 'Telefon', 'plugins': ['TextPlugin']}, 'content': {'excluded_plugins': ['BannerPlugin'], 'name': 'Sadržaj'}, 'counters': {'limits': {'CounterPlugin': 4}, 'name': 'Counters', 'plugins': ['CounterPlugin']}, 'footer_about_us': {'name': 'Footer - About', 'plugins': ['TextPlugin']}, 'footer_banners': {'name': 'Footer Banners', 'plugins': ['BannerPlugin']}, 'gallery_images_placeholder': {'name': 'Gallery Images', 'plugins': ['FolderPlugin']}, 'privacy_policy_link': {'name': 'Privacy Policy Link', 'plugins': ['LinkPlugin']}, 'sidebar_projects': {'name': 'Sidebar Projects', 'plugins': ['TeaserPlugin', 'TextPlugin', 'LinkPlugin']}, 'sidebar_publications': {'child_classes': {'PicturePlugin': ['FilePlugin']}, 'name': 'Sidebar Publications', 'plugins': ['PicturePlugin']}, 'slide_1_button': {'limits': {'LinkPlugin': 1}, 'name': 'Slider 1: Button', 'plugins': ['LinkPlugin']}, 'slide_1_image': {'name': 'Slider 1: Image', 'plugins': ['PicturePlugin']}, 'slide_1_text': {'name': 'Slider 1: Text', 'plugins': ['TextPlugin']}, 'slide_2_button': {'limits': {'LinkPlugin': 1}, 'name': 'Slider 2: Button', 'plugins': ['LinkPlugin']}, 'slide_2_image': {'name': 'Slider 2: Image', 'plugins': ['PicturePlugin']}, 'slide_2_text': {'name': 'Slider 2: Text', 'plugins': ['TextPlugin']}, 'slide_3_button': {'limits': {'LinkPlugin': 1}, 'name': 'Slider 3: Button', 'plugins': ['LinkPlugin']}, 'slide_3_image': {'name': 'Slider 3: Image', 'plugins': ['PicturePlugin']}, 'slide_3_text': {'name': 'Slider 3: Text', 'plugins': ['TextPlugin']}, 'sponsors': {'name': 'Sponsors', 'plugins': ['SponsorsPlugin']}} |
CMS_TEMPLATES | [('pages/index.html', 'Početna'), ('pages/content.html', 'Sadržaj')] |
COMPRESSORS | {'css': 'compressor.css.CssCompressor', 'js': 'compressor.js.JsCompressor'} |
COMPRESS_CACHEABLE_PRECOMPILERS | () |
COMPRESS_CACHE_BACKEND | 'default' |
COMPRESS_CACHE_KEY_FUNCTION | '********************' |
COMPRESS_CLEAN_CSS_ARGUMENTS | '' |
COMPRESS_CLEAN_CSS_BINARY | 'cleancss' |
COMPRESS_CLOSURE_COMPILER_ARGUMENTS | '' |
COMPRESS_CLOSURE_COMPILER_BINARY | 'java -jar compiler.jar' |
COMPRESS_CSS_HASHING_METHOD | 'mtime' |
COMPRESS_DATA_URI_MAX_SIZE | 1024 |
COMPRESS_DEBUG_TOGGLE | None |
COMPRESS_ENABLED | False |
COMPRESS_FILTERS | {'css': ['compressor.filters.css_default.CssAbsoluteFilter'], 'js': ['compressor.filters.jsmin.JSMinFilter']} |
COMPRESS_JINJA2_GET_ENVIRONMENT | <function CompressorConf.JINJA2_GET_ENVIRONMENT at 0x7f778b2348c8> |
COMPRESS_MINT_DELAY | 30 |
COMPRESS_MTIME_DELAY | 10 |
COMPRESS_OFFLINE | False |
COMPRESS_OFFLINE_CONTEXT | {'STATIC_URL': '/static/'} |
COMPRESS_OFFLINE_MANIFEST | 'manifest.json' |
COMPRESS_OFFLINE_TIMEOUT | 31536000 |
COMPRESS_OUTPUT_DIR | 'CACHE' |
COMPRESS_PARSER | 'compressor.parser.AutoSelectParser' |
COMPRESS_PRECOMPILERS | () |
COMPRESS_REBUILD_TIMEOUT | 2592000 |
COMPRESS_ROOT | '/home/zelena-istra/djangosites/zelenaistra/staticfiles' |
COMPRESS_STORAGE | 'compressor.storage.CompressorFileStorage' |
COMPRESS_TEMPLATE_FILTER_CONTEXT | {'STATIC_URL': '/static/'} |
COMPRESS_URL | '/static/' |
COMPRESS_URL_PLACEHOLDER | '/__compressor_url_placeholder__/' |
COMPRESS_VERBOSE | False |
COMPRESS_YUGLIFY_BINARY | 'yuglify' |
COMPRESS_YUGLIFY_CSS_ARGUMENTS | '--terminal' |
COMPRESS_YUGLIFY_JS_ARGUMENTS | '--terminal' |
COMPRESS_YUI_BINARY | 'java -jar yuicompressor.jar' |
COMPRESS_YUI_CSS_ARGUMENTS | '' |
COMPRESS_YUI_JS_ARGUMENTS | '' |
CONTACT_EMAIL_ADDRESS | 'ured@zelena-istra.hr' |
CRISPY_TEMPLATE_PACK | 'bootstrap4' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | True |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | True |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': True, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 60, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'localhost', 'NAME': 'zelena_istra', 'OPTIONS': {'charset': 'utf8mb4'}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'zelena_istra'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'Zelena Istra <noreply@zelena-istra.hr>' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
DJANGOCMS_FILE_TEMPLATES | [('image_wrap', 'Image Wrap'), ('gallery', 'Gallery')] |
DJANGOCMS_PICTURE_ALIGN | [('center', 'Center'), ('float-left', 'Left Wrap'), ('float-right', 'Right Wrap')] |
DJANGOCMS_PICTURE_NESTING | True |
DJANGOCMS_PICTURE_TEMPLATES | [('filelink', 'Poveznica na datoteku'), ('slider', 'Slider')] |
DJANGOCMS_VIDEO_TEMPLATES | [('full_width', 'Full Width'), ('half_width', 'Half Width')] |
DJANGO_APPS | ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'djangocms_admin_style', 'modeltranslation', 'django.contrib.admin'] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.sendgrid.net' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'apikey' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Zelena Istra]' |
EMAIL_TIMEOUT | 5 |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
FILER_IMAGE_MODEL | 'filer.Image' |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | ('/home/zelena-istra/djangosites/zelenaistra/zelenaistra/fixtures',) |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
HAYSTACK_CONNECTIONS | {'default': {'ENGINE': 'zelenaistra.utils.haystack_utils.MultilingualWhooshEngine', 'PATH': <Path:/home/zelena-istra/djangosites/zelenaistra/zelenaistra/whoosh_indexes/hr>}, 'default_en': {'ENGINE': 'zelenaistra.utils.haystack_utils.MultilingualWhooshEngine', 'PATH': <Path:/home/zelena-istra/djangosites/zelenaistra/zelenaistra/whoosh_indexes/en>}} |
HAYSTACK_ITERATOR_LOAD_PER_QUERY | 500 |
HAYSTACK_LIMIT_TO_REGISTERED_MODELS | False |
HONEYPOT_FIELD_NAME | 'special_address_2' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'djangocms_admin_style', 'modeltranslation', 'django.contrib.admin', 'zelenaistra.users.apps.UsersConfig', 'crispy_forms', 'allauth', 'allauth.account', 'allauth.socialaccount', 'rest_framework', 'rosetta', 'django_privacy_mgmt', 'parler', 'autoslug', 'model_utils', 'embed_video', 'bootstrap_pagination', 'django_unused_media', 'haystack', 'cms', 'menus', 'treebeard', 'sekizai', 'filer', 'easy_thumbnails', 'mptt', 'djangocms_text_ckeditor', 'djangocms_link', 'djangocms_file', 'djangocms_picture', 'djangocms_video', 'djangocms_googlemap', 'djangocms_snippet', 'djangocms_style', 'adminsortable2', 'honeypot', 'zelenaistra.articles', 'zelenaistra.sponsors', 'zelenaistra.gallery', 'zelenaistra.contact', 'zelenaistra.bulletin_archive', 'zelenaistra.up_counter', 'zelenaistra.djangocms_teaser_filelink', 'zelenaistra.footer_banner_plugin', 'zelenaistra.djangocms_teaser', 'zelenaistra.download_counter', 'compressor'] |
INTERNAL_IPS | [] |
LANGUAGES | [('hr', 'Hrvatski'), ('en', 'Engleski')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'hr' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [<Path:/home/zelena-istra/djangosites/zelenaistra/locale>] |
LOCAL_APPS | ['zelenaistra.articles', 'zelenaistra.sponsors', 'zelenaistra.gallery', 'zelenaistra.contact', 'zelenaistra.bulletin_archive', 'zelenaistra.up_counter', 'zelenaistra.djangocms_teaser_filelink', 'zelenaistra.footer_banner_plugin', 'zelenaistra.djangocms_teaser', 'zelenaistra.download_counter'] |
LOGGING | {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'formatters': {'verbose': {'format': '%(levelname)s %(asctime)s %(module)s ' '%(process)d %(thread)d %(message)s'}}, 'handlers': {'console': {'class': 'logging.StreamHandler', 'formatter': 'verbose', 'level': 'DEBUG'}}, 'loggers': {'django.security.DisallowedHost': {'handlers': ['console'], 'level': 'ERROR', 'propagate': True}}, 'root': {'handlers': ['console'], 'level': 'INFO'}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | 'users:redirect' |
LOGIN_URL | 'account_login' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [('luka ribaric', 'luka.ribaric01@gmail.com')] |
MEDIA_ROOT | '/home/zelena-istra/djangosites/zelenaistra/zelenaistra/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'cms.middleware.utils.ApphookReloadMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware'] |
MIGRATION_MODULES | {'sites': 'zelenaistra.contrib.sites.migrations'} |
MODELTRANSLATION_DEFAULT_LANGUAGE | 'hr' |
MODELTRANSLATION_FALLBACK_LANGUAGES | ('hr',) |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
READ_DOT_ENV_FILE | True |
ROOT_DIR | <Path:/home/zelena-istra/djangosites/zelenaistra> |
ROOT_URLCONF | 'config.urls' |
ROSETTA_UWSGI_AUTO_RELOAD | True |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | True |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | True |
SECURE_HSTS_PRELOAD | True |
SECURE_HSTS_SECONDS | 60 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SENDGRID_API_KEY | '********************' |
SERVER_EMAIL | '' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | True |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'config.settings.production' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
SOCIALACCOUNT_ADAPTER | 'zelenaistra.users.adapters.SocialAccountAdapter' |
STATICFILES_DIRS | ['/home/zelena-istra/djangosites/zelenaistra/zelenaistra/static'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'compressor.finders.CompressorFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/zelena-istra/djangosites/zelenaistra/staticfiles' |
STATIC_URL | '/static/' |
TEMPLATES | [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/zelena-istra/djangosites/zelenaistra/zelenaistra/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', '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', 'zelenaistra.utils.context_processors.settings_context', 'zelenaistra.utils.context_processors.site_processor', 'sekizai.context_processors.sekizai', 'cms.context_processors.cms_settings'], 'libraries': {'utils_tags': 'zelenaistra.utils.templatetags.utils_tags'}, 'loaders': [('django.template.loaders.cached.Loader', ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'])]}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THIRD_PARTY_APPS | ['crispy_forms', 'allauth', 'allauth.account', 'allauth.socialaccount', 'rest_framework', 'rosetta', 'django_privacy_mgmt', 'parler', 'autoslug', 'model_utils', 'embed_video', 'bootstrap_pagination', 'django_unused_media', 'haystack', 'cms', 'menus', 'treebeard', 'sekizai', 'filer', 'easy_thumbnails', 'mptt', 'djangocms_text_ckeditor', 'djangocms_link', 'djangocms_file', 'djangocms_picture', 'djangocms_video', 'djangocms_googlemap', 'djangocms_snippet', 'djangocms_style', 'adminsortable2', 'honeypot'] |
THOUSAND_SEPARATOR | ',' |
THUMBNAIL_HIGH_RESOLUTION | True |
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 | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Europe/Zagreb' |
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 | 'config.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.