'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128)
Request Method: | GET |
---|---|
Request URL: | https://dembski-nowak.pl/blog/tag/termowizja |
Django Version: | 1.10.4 |
Exception Type: | UnicodeEncodeError |
Exception Value: | 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
Exception Location: | /home/denowa/virtualenv/app/dembski-nowak/3.6/lib64/python3.6/genericpath.py in exists, line 19 |
Python Executable: | /home/denowa/virtualenv/app/dembski-nowak/3.6/bin/python |
Python Version: | 3.6.15 |
Python Path: | ['/home/denowa/app/dembski-nowak', '', '/home/denowa/app/dembski-nowak', '/home/denowa/virtualenv/app/dembski-nowak/3.6/lib64/python36.zip', '/home/denowa/virtualenv/app/dembski-nowak/3.6/lib64/python3.6', '/home/denowa/virtualenv/app/dembski-nowak/3.6/lib64/python3.6/lib-dynload', '/opt/alt/python36/lib64/python3.6', '/opt/alt/python36/lib/python3.6', '/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages'] |
Server time: | Pt, 29 Marz 2024 01:26:03 +0000 |
The string that could not be encoded/decoded was: g/zdjęcie_0
In template /home/denowa/app/dembski-nowak/templates/tag-articles.html
, error at line 16
6 | <section class="page-column page-header"> |
---|---|
7 | <h1 class="page-header__text">{% trans 'Blog' %} - {{tag}}</h1> |
8 | </section> |
9 | <section class="articles load-more" data-url="/blog/tag/{{tag}}/wiecej?strona=" data-insert="articles__list"> |
10 | <div class="page-column"> |
11 | <ul class="articles__list articles__list--no-margin"> |
12 | {% for article in articles %} |
13 | <li class="articles__item"> |
14 | <a href="/blog/{{ article.slug }}"> |
15 | <figure class="articles__image-wrapper articles__image-wrapper--no-prefix"> |
16 | <img src="{{ article.thumbnail.url }}" alt="{{ article.title}}" class="articles__image"> |
17 | </figure> |
18 | </a> |
19 | <div class="articles__container articles__container--no-prefix"> |
20 | {% if article.published_at %} |
21 | <p class="articles__date">{{ article.published_at | date:'d m Y' }} {% if not article.public %} <span style="color: red">Artykuł niepubliczny</span> {% endif %}</p> |
22 | {% else %} |
23 | <p class="articles__date">{{ article.created_at | date:'d m Y' }} {% if not article.public %} <span style="color: red">Artykuł niepubliczny</span> {% endif %}</p> |
24 | {% endif %} |
25 | <a href="/blog/{{ article.slug }}"><h4 class="articles__header ellipsis">{{ article.title}}</h4></a> |
26 | <p class="articles__description ellipsis">{{ article.shortcut }}</p> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/django/template/base.py
in _resolve_lookup
detail and shouldn't be called by external code. Use Variable.resolve()
instead.
"""
current = context
try: # catch-all for silent variable failures
for bit in self.lookups:
try: # dictionary lookup
current = current[bit]...
# ValueError/IndexError are for numpy.array lookup on
# numpy < 1.9 and 1.9+ respectively
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(type(current), bit):
Variable | Value |
---|---|
bit | 'url' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
current | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
self | <Variable: 'article.thumbnail.url'> |
template_name | 'tag-articles.html' |
/home/denowa/virtualenv/app/dembski-nowak/3.6/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, assigned=available_attrs(get_response))
def inner(request):
try:
response = get_response(request)...
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | UnicodeEncodeError('ascii', '/home/denowa/app/media/CACHE/images/blog/zdjęcie_01/caaa578951530dcc4d55e20bb29899b2.jpg', 44, 45, 'ordinal not in range(128)') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f65a9fd66d8>> |
request | <WSGIRequest: GET '/blog/tag/termowizja'> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function TagArticlesPageView at 0x7f65a9dec488> |
callback_args | () |
callback_kwargs | {'tag': 'termowizja'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f65a9e370b8>> |
request | <WSGIRequest: GET '/blog/tag/termowizja'> |
resolver | <RegexURLResolver 'dembskinowak.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=articles.views.TagArticlesPageView, args=(), kwargs={'tag': 'termowizja'}, url_name=tagarticles, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f65a9fd66d8> |
wrapped_callback | <function TagArticlesPageView at 0x7f65a9dec488> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function TagArticlesPageView at 0x7f65a9dec488> |
callback_args | () |
callback_kwargs | {'tag': 'termowizja'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f65a9e370b8>> |
request | <WSGIRequest: GET '/blog/tag/termowizja'> |
resolver | <RegexURLResolver 'dembskinowak.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=articles.views.TagArticlesPageView, args=(), kwargs={'tag': 'termowizja'}, url_name=tagarticles, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f65a9fd66d8> |
wrapped_callback | <function TagArticlesPageView at 0x7f65a9dec488> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/django/views/generic/base.py
in view
def view(request, *args, **kwargs):
self = cls(**initkwargs)
if hasattr(self, 'get') and not hasattr(self, 'head'):
self.head = self.get
self.request = request
self.args = args
self.kwargs = kwargs
return self.dispatch(request, *args, **kwargs)...
view.view_class = cls
view.view_initkwargs = initkwargs
# take name and docstring from class
update_wrapper(view, cls, updated=())
Variable | Value |
---|---|
args | () |
cls | <class 'articles.views.TagArticlesPageView'> |
initkwargs | {} |
kwargs | {'tag': 'termowizja'} |
request | <WSGIRequest: GET '/blog/tag/termowizja'> |
self | <articles.views.TagArticlesPageView object at 0x7f65a9b8df60> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/django/views/generic/base.py
in dispatch
# Try to dispatch to the right method; if a method doesn't exist,
# defer to the error handler. Also defer to the error handler if the
# request method isn't on the approved list.
if request.method.lower() in self.http_method_names:
handler = getattr(self, request.method.lower(), self.http_method_not_allowed)
else:
handler = self.http_method_not_allowed
return handler(request, *args, **kwargs)...
def http_method_not_allowed(self, request, *args, **kwargs):
logger.warning(
'Method Not Allowed (%s): %s', request.method, request.path,
extra={'status_code': 405, 'request': request}
)
Variable | Value |
---|---|
args | () |
handler | <bound method TagArticlesPageView.get of <articles.views.TagArticlesPageView object at 0x7f65a9b8df60>> |
kwargs | {'tag': 'termowizja'} |
request | <WSGIRequest: GET '/blog/tag/termowizja'> |
self | <articles.views.TagArticlesPageView object at 0x7f65a9b8df60> |
/home/denowa/app/dembski-nowak/articles/views.py
in get
self.get_content()
if request.user.is_superuser:
articles = Article.objects.filter(tag__translations__text=tag).order_by('-created_at', '-id')[:3]
else:
articles = Article.objects.filter(tag__translations__text=tag, public=True).order_by('-published_at', '-created_at', '-id')[:3]
self.context['articles'] = articles
self.context['tag'] = tag
return render(request, self.template_name, self.context)...
class LoadMoreTagArticlesPageView(View):
template_name = 'ajax/articles.html'
context = {}
Variable | Value |
---|---|
articles | <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]> |
request | <WSGIRequest: GET '/blog/tag/termowizja'> |
self | <articles.views.TagArticlesPageView object at 0x7f65a9b8df60> |
tag | 'termowizja' |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/django/shortcuts.py
in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Returns a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)...
return HttpResponse(content, content_type, status)
def redirect(to, *args, **kwargs):
"""
Returns an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'contact': <Contact: Sekcja kontakt>, 'tag': 'termowizja'} |
request | <WSGIRequest: GET '/blog/tag/termowizja'> |
status | None |
template_name | 'tag-articles.html' |
using | None |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/django/template/loader.py
in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)...
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'contact': <Contact: Sekcja kontakt>, 'tag': 'termowizja'} |
request | <WSGIRequest: GET '/blog/tag/termowizja'> |
template | <django.template.backends.django.Template object at 0x7f65a9b5a518> |
template_name | 'tag-articles.html' |
using | None |
/home/denowa/virtualenv/app/dembski-nowak/3.6/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}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
request | <WSGIRequest: GET '/blog/tag/termowizja'> |
self | <django.template.backends.django.Template object at 0x7f65a9b5a518> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)...
else:
return self._render(context)
finally:
context.render_context.pop()
def compile_nodelist(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
self | <django.template.base.Template object at 0x7f65a9ab6940> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
if context.template is None:
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
self | <django.template.base.Template object at 0x7f65a9ab6940> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/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(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
node | <ExtendsNode: extends 'base.html'> |
self | [<ExtendsNode: extends 'base.html'>] |
/home/denowa/virtualenv/app/dembski-nowak/3.6/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.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
self | <ExtendsNode: extends 'base.html'> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/django/template/loader_tags.py
in render
blocks = {n.name: n for n in
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
return compiled_parent._render(context)...
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f65a9ac9b38> |
blocks | {'footer': <Block Node: footer. Contents: [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f65a9ad4898>, <TextNode: '\n '>]>, 'header': <Block Node: header. Contents: [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f65a9ad4710>, <TextNode: '\n '>]>, 'page_content': <Block Node: page_content. Contents: []>} |
compiled_parent | <django.template.base.Template object at 0x7f65a9ac9da0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
node | <django.template.defaulttags.LoadNode object at 0x7f65a9ad4438> |
self | <ExtendsNode: extends 'base.html'> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
if context.template is None:
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
self | <django.template.base.Template object at 0x7f65a9ac9da0> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/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(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n\n ' |
bits | ['', '\n' '<!DOCTYPE html>\n' '<html>\n' '<head>\n' ' <meta charset="utf-8">\n' ' <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">\n' ' <title>Dembski/Nowak</title>\n' ' <meta name="viewport" content="width=device-width, initial-scale=1">\n' ' <link ' 'href="https://fonts.googleapis.com/css?family=Exo+2:200,300,400,500,700&subset=latin-ext" ' 'rel="stylesheet">\n' ' <link rel="stylesheet" href="/static/css/main.css">\n' ' <link rel="icon" type="image/png" href="', '/static/images/favicon_16.png', '" sizes="16x16" />\n <link rel="icon" type="image/png" href="', '/static/images/favicon_32.png', '" sizes="32x32" />\n' ' <meta property="og:url" content="http://dembski-nowak.pl" />\n' ' <meta property="og:title" content="Dembski/Nowak" />\n' ' <meta property="og:type" content="website" />\n' ' <meta property="og:description" content="Dembski Nowak to zaufany ' 'partner i doświadczony ekspert w dziedzinie nowoczesnego i efektywnego ' 'energetycznie budownictwa." />\n' ' <meta property="og:image" ' 'content="http://denowa.ayz.pl/static/images/og-image.png" />\n' ' </script>\n' '</head>\n' '<body>\n' ' <!--[if lt IE 7]>\n' ' <p class="browsehappy">You are using an <strong>outdated</strong> ' 'browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> ' 'to improve your experience.</p>\n' ' <![endif]-->\n' '\n' ' ', '\n' ' \n' '\n' '\n' '\n' '<header class="header">\n' ' <div class="page-column">\n' ' <div class="header__wrapper">\n' ' <figure class="logo">\n' ' <a href="/" class="logo__link">\n' ' <img src="/static/images/logo.svg" alt="Dembski Nowak" ' 'class="logo__image">\n' ' </a>\n' ' </figure>\n' ' <nav class="lang-menu">\n' ' <ul class="lang-menu__list">\n' ' \n' ' <li class="lang-menu__item">\n' ' <a href="/setlang/?lang=pl" class="lang-menu__link link ' 'lang-menu__link--active">\n' ' PL\n' ' </a>\n' ' </li>\n' ' \n' ' <li class="lang-menu__item">\n' ' <a href="/setlang/?lang=en" class="lang-menu__link link">\n' ' EN\n' ' </a>\n' ' </li>\n' ' \n' ' </ul>\n' ' </nav>\n' ' <nav class="header-menu">\n' ' <p class="header-menu__toggle"></p>\n' ' <ul class="header-menu__list">\n' ' <li class="header-menu__item"><a href="/o-nas/" ' 'class="header-menu__link link ">O nas</a></li>\n' ' <li class="header-menu__item"><a href="/oferta/" ' 'class="header-menu__link link ">Oferta</a></li>\n' ' <li class="header-menu__item"><a href="/realizacje/" ' 'class="header-menu__link link ">Realizacje</a></li>\n' ' <li class="header-menu__item"><a href="/blog/" ' 'class="header-menu__link link ">Blog</a></li>\n' ' <li class="header-menu__item"><a href="/kontakt/" ' 'class="header-menu__link link ">Kontakt</a></li>\n' ' </ul>\n' ' </nav>\n' ' </div>\n' ' </div>\n' '</header>\n' '\n' ' ', '\n\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
node | <Block Node: page_content. Contents: []> |
self | [<django.template.defaulttags.LoadNode object at 0x7f65a9ad4438>, <TextNode: '\n<!DOCTYPE html>\n<html>\n<'>, <django.templatetags.static.StaticNode object at 0x7f65a9ad44e0>, <TextNode: '" sizes="16x16" />\n <l'>, <django.templatetags.static.StaticNode object at 0x7f65a9ad4588>, <TextNode: '" sizes="32x32" />\n <m'>, <Block Node: header. Contents: [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f65a9ad4710>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: page_content. Contents: []>, <TextNode: '\n\n <div class="arrow">'>, <Block Node: footer. Contents: [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f65a9ad4898>, <TextNode: '\n '>]>, <TextNode: '\n\n <script src="'>, <django.templatetags.static.StaticNode object at 0x7f65a9ad4908>, <TextNode: '"></script>\n</body>\n</htm'>] |
/home/denowa/virtualenv/app/dembski-nowak/3.6/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.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
self | <Block Node: page_content. Contents: []> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/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: page_content. Contents: [<TextNode: '\n<section class="page-col'>, <django.templatetags.i18n.TranslateNode object at 0x7f65a9abdc18>, <TextNode: ' - '>, <Variable Node: tag>, <TextNode: '</h1>\n</section>\n<section'>, <Variable Node: tag>, <TextNode: '/wiecej?strona=" data-ins'>, <For Node: for article in articles, tail_len: 19>, <TextNode: '\n </ul>\n <div class'>, <django.template.loader_tags.IncludeNode object at 0x7f65a9abd6d8>, <TextNode: '\n'>, <django.template.loader_tags.IncludeNode object at 0x7f65a9ac9208>, <TextNode: '\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f65a9ac9b38> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
push | <Block Node: page_content. Contents: [<TextNode: '\n<section class="page-col'>, <django.templatetags.i18n.TranslateNode object at 0x7f65a9abdc18>, <TextNode: ' - '>, <Variable Node: tag>, <TextNode: '</h1>\n</section>\n<section'>, <Variable Node: tag>, <TextNode: '/wiecej?strona=" data-ins'>, <For Node: for article in articles, tail_len: 19>, <TextNode: '\n </ul>\n <div class'>, <django.template.loader_tags.IncludeNode object at 0x7f65a9abd6d8>, <TextNode: '\n'>, <django.template.loader_tags.IncludeNode object at 0x7f65a9ac9208>, <TextNode: '\n'>]> |
self | <Block Node: page_content. Contents: []> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/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(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('/wiecej?strona=" data-insert="articles__list">\n' ' <div class="page-column">\n' ' <ul class="articles__list articles__list--no-margin">\n' ' ') |
bits | ['\n' '<section class="page-column page-header">\n' ' <h1 class="page-header__text">', 'Blog', ' - ', 'termowizja', '</h1>\n</section>\n<section class="articles load-more" data-url="/blog/tag/', 'termowizja', '/wiecej?strona=" data-insert="articles__list">\n' ' <div class="page-column">\n' ' <ul class="articles__list articles__list--no-margin">\n' ' '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
node | <For Node: for article in articles, tail_len: 19> |
self | [<TextNode: '\n<section class="page-col'>, <django.templatetags.i18n.TranslateNode object at 0x7f65a9abdc18>, <TextNode: ' - '>, <Variable Node: tag>, <TextNode: '</h1>\n</section>\n<section'>, <Variable Node: tag>, <TextNode: '/wiecej?strona=" data-ins'>, <For Node: for article in articles, tail_len: 19>, <TextNode: '\n </ul>\n <div class'>, <django.template.loader_tags.IncludeNode object at 0x7f65a9abd6d8>, <TextNode: '\n'>, <django.template.loader_tags.IncludeNode object at 0x7f65a9ac9208>, <TextNode: '\n'>] |
/home/denowa/virtualenv/app/dembski-nowak/3.6/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.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
self | <For Node: for article in articles, tail_len: 19> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/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:
# The loop variables were pushed on to the context so pop them
# off again. This is necessary because the tag lets the length
# of loopvars differ to the length of each set of items and we
# don't want to leave any vars from the previous loop on the
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
i | 0 |
item | <Article: Artykuł: Poznań trzyma ciepło> |
len_values | 1 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': True, 'parentloop': {}, 'revcounter': 1, 'revcounter0': 0} |
node | <Variable Node: article.thumbnail.url> |
nodelist | ['\n <li class="articles__item">\n <a href="/blog/', 'poznan-trzyma-ciepo', '">\n' ' <figure class="articles__image-wrapper ' 'articles__image-wrapper--no-prefix">\n' ' <img src="'] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <For Node: for article in articles, tail_len: 19> |
unpack | False |
values | <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/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.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
self | <Variable Node: article.thumbnail.url> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/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}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
self | <Variable Node: article.thumbnail.url> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/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}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
ignore_failures | False |
self | <django.template.base.FilterExpression object at 0x7f65a9ac6208> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/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}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
self | <Variable: 'article.thumbnail.url'> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/django/template/base.py
in _resolve_lookup
# ValueError/IndexError are for numpy.array lookup on
# numpy < 1.9 and 1.9+ respectively
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(type(current), bit):
raise AttributeError
current = getattr(current, bit)...
except (TypeError, AttributeError) as e:
# Reraise an AttributeError raised by a @property
if (isinstance(e, AttributeError) and
not isinstance(current, BaseContext) and bit in dir(current)):
raise
try: # list-index lookup
Variable | Value |
---|---|
bit | 'url' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'contact': <Contact: Sekcja kontakt>, 'certificates': <QuerySet [<Certificate: Certyfikat: certyfikaty/membermini.jpg>, <Certificate: Certyfikat: certyfikaty/OSWBZ_505x.jpg>]>, 'articles': <QuerySet [<Article: Artykuł: Poznań trzyma ciepło>]>, 'tag': 'termowizja'}] |
current | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
self | <Variable: 'article.thumbnail.url'> |
template_name | 'tag-articles.html' |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/imagekit/cachefiles/__init__.py
in url
@property
def path(self):
return self._storage_attr('path')
@property
def url(self):
return self._storage_attr('url')...
def generate(self, force=False):
"""
Generate the file. If ``force`` is ``True``, the file will be generated
whether the file already exists or not.
Variable | Value |
---|---|
self | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/imagekit/cachefiles/__init__.py
in _storage_attr
# require the file to exist; they do not need its contents to work. This
# distinction gives the user the flexibility to create a cache file
# strategy that assumes the existence of a file, but can still make the file
# available when its contents are required.
def _storage_attr(self, attr):
if getattr(self, '_file', None) is None:
existence_required.send(sender=self, file=self)...
fn = getattr(self.storage, attr)
return fn(self.name)
@property
def path(self):
return self._storage_attr('path')
Variable | Value |
---|---|
attr | 'url' |
self | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/django/dispatch/dispatcher.py
in send
Returns a list of tuple pairs [(receiver, response), ... ].
"""
responses = []
if not self.receivers or self.sender_receivers_cache.get(sender) is NO_RECEIVERS:
return responses
for receiver in self._live_receivers(sender):
response = receiver(signal=self, sender=sender, **named)...
responses.append((receiver, response))
return responses
def send_robust(self, sender, **named):
"""
Send signal from sender to all connected receivers catching errors.
Variable | Value |
---|---|
named | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
receiver | <bound method GeneratorRegistry.existence_required_receiver of <imagekit.registry.GeneratorRegistry object at 0x7f65ab397390>> |
responses | [] |
self | <django.dispatch.dispatcher.Signal object at 0x7f65ab397128> |
sender | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/imagekit/registry.py
in existence_required_receiver
autodiscover()
return self._generators.keys()
def content_required_receiver(self, sender, file, **kwargs):
self._receive(file, 'on_content_required')
def existence_required_receiver(self, sender, file, **kwargs):
self._receive(file, 'on_existence_required')...
def _receive(self, file, callback):
generator = file.generator
# FIXME: I guess this means you can't register functions?
if generator.__class__ in self._generators.values():
Variable | Value |
---|---|
file | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
kwargs | {'signal': <django.dispatch.dispatcher.Signal object at 0x7f65ab397128>} |
self | <imagekit.registry.GeneratorRegistry object at 0x7f65ab397390> |
sender | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/imagekit/registry.py
in _receive
def _receive(self, file, callback):
generator = file.generator
# FIXME: I guess this means you can't register functions?
if generator.__class__ in self._generators.values():
# Only invoke the strategy method for registered generators.
call_strategy_method(file, callback)...
class SourceGroupRegistry(object):
"""
The source group registry is responsible for listening to source_* signals
on source groups, and relaying them to the image generated file strategies
Variable | Value |
---|---|
callback | 'on_existence_required' |
file | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
generator | <imagekit.specs.DynamicSpec object at 0x7f65a99e2780> |
self | <imagekit.registry.GeneratorRegistry object at 0x7f65ab397390> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/imagekit/utils.py
in call_strategy_method
return File(content)
def call_strategy_method(file, method_name):
strategy = getattr(file, 'cachefile_strategy', None)
fn = getattr(strategy, method_name, None)
if fn is not None:
fn(file)...
def get_cache(backend, **kwargs):
try:
from django.core.cache import caches
except ImportError:
Variable | Value |
---|---|
file | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
fn | <bound method JustInTime.on_existence_required of <imagekit.cachefiles.strategies.JustInTime object at 0x7f65a99e25f8>> |
method_name | 'on_existence_required' |
strategy | <imagekit.cachefiles.strategies.JustInTime object at 0x7f65a99e25f8> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/imagekit/cachefiles/strategies.py
in on_existence_required
class JustInTime(object):
"""
A strategy that ensures the file exists right before it's needed.
"""
def on_existence_required(self, file):
file.generate()...
def on_content_required(self, file):
file.generate()
class Optimistic(object):
Variable | Value |
---|---|
file | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
self | <imagekit.cachefiles.strategies.JustInTime object at 0x7f65a99e25f8> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/imagekit/cachefiles/__init__.py
in generate
def generate(self, force=False):
"""
Generate the file. If ``force`` is ``True``, the file will be generated
whether the file already exists or not.
"""
if force or getattr(self, '_file', None) is None:
self.cachefile_backend.generate(self, force)...
def _generate(self):
# Generate the file
content = generate(self.generator)
actual_name = self.storage.save(self.name, content)
Variable | Value |
---|---|
force | False |
self | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/imagekit/cachefiles/backends.py
in generate
"""
The most basic file backend. The storage is consulted to see if the file
exists. Files are generated synchronously.
"""
def generate(self, file, force=False):
self.generate_now(file, force=force)...
def _exists(self, file):
return bool(getattr(file, '_file', None)
or file.storage.exists(file.name))
Variable | Value |
---|---|
file | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
force | False |
self | <imagekit.cachefiles.backends.Simple object at 0x7f65a99e2630> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/imagekit/cachefiles/backends.py
in generate_now
def exists(self, file):
return self.get_state(file) == CacheFileState.EXISTS
def generate(self, file, force=False):
raise NotImplementedError
def generate_now(self, file, force=False):
if force or self.get_state(file) not in (CacheFileState.GENERATING, CacheFileState.EXISTS):...
self.set_state(file, CacheFileState.GENERATING)
file._generate()
self.set_state(file, CacheFileState.EXISTS)
file.close()
Variable | Value |
---|---|
file | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
force | False |
self | <imagekit.cachefiles.backends.Simple object at 0x7f65a99e2630> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/imagekit/cachefiles/backends.py
in get_state
return sanitize_cache_key('%s%s-state' %
(settings.IMAGEKIT_CACHE_PREFIX, file.name))
def get_state(self, file, check_if_unknown=True):
key = self.get_key(file)
state = self.cache.get(key)
if state is None and check_if_unknown:
exists = self._exists(file)...
state = CacheFileState.EXISTS if exists else CacheFileState.DOES_NOT_EXIST
self.set_state(file, state)
return state
def set_state(self, file, state):
key = self.get_key(file)
Variable | Value |
---|---|
check_if_unknown | True |
file | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
key | 'imagekit:CACHE/images/blog/zdjęcie_01/caaa578951530dcc4d55e20bb29899b2.jpg-state' |
self | <imagekit.cachefiles.backends.Simple object at 0x7f65a99e2630> |
state | None |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/imagekit/cachefiles/backends.py
in _exists
"""
def generate(self, file, force=False):
self.generate_now(file, force=force)
def _exists(self, file):
return bool(getattr(file, '_file', None)
or file.storage.exists(file.name))...
def _generate_file(backend, file, force=False):
backend.generate_now(file, force=force)
Variable | Value |
---|---|
file | Error in formatting: UnicodeEncodeError: 'ascii' codec can't encode character '\u0119' in position 44: ordinal not in range(128) |
self | <imagekit.cachefiles.backends.Simple object at 0x7f65a99e2630> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib/python3.6/site-packages/django/core/files/storage.py
in exists
try:
os.remove(name)
except OSError as e:
if e.errno != errno.ENOENT:
raise
def exists(self, name):
return os.path.exists(self.path(name))...
def listdir(self, path):
path = self.path(path)
directories, files = [], []
for entry in os.listdir(path):
if os.path.isdir(os.path.join(path, entry)):
Variable | Value |
---|---|
name | 'CACHE/images/blog/zdjęcie_01/caaa578951530dcc4d55e20bb29899b2.jpg' |
self | <django.core.files.storage.FileSystemStorage object at 0x7f65a99e2828> |
/home/denowa/virtualenv/app/dembski-nowak/3.6/lib64/python3.6/genericpath.py
in exists
# Does a path exist?
# This is false for dangling symbolic links on systems that support them.
def exists(path):
"""Test whether a path exists. Returns False for broken symbolic links"""
try:
os.stat(path)...
except OSError:
return False
return True
# This follows symbolic links, so both islink() and isdir() can be true
Variable | Value |
---|---|
path | '/home/denowa/app/media/CACHE/images/blog/zdjęcie_01/caaa578951530dcc4d55e20bb29899b2.jpg' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTPS | 'on' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'dembski-nowak.pl' |
HTTP_REFERER | 'http://dembski-nowak.pl/blog/tag/termowizja' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/blog/tag/termowizja' |
QUERY_STRING | '' |
REMOTE_ADDR | '18.232.88.17' |
REMOTE_PORT | '59906' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/blog/tag/termowizja' |
SCRIPT_NAME | '' |
SCRIPT_URI | 'https://dembski-nowak.pl/blog/tag/termowizja' |
SCRIPT_URL | '/blog/tag/termowizja' |
SERVER_ADDR | '195.78.67.40' |
SERVER_ADMIN | 'webmaster@dembski-nowak.pl' |
SERVER_NAME | 'dembski-nowak.pl' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'LiteSpeed' |
SSL_CIPHER | 'TLS_AES_256_GCM_SHA384' |
SSL_CIPHER_ALGKEYSIZE | '256' |
SSL_CIPHER_USEKEYSIZE | '256' |
SSL_PROTOCOL | 'TLSv1.3' |
X-LSCACHE | 'on' |
X_SPDY | 'HTTP2' |
wsgi.errors | <_io.TextIOWrapper name='<stderr>' mode='w' encoding='ANSI_X3.4-1968'> |
wsgi.file_wrapper | '' |
wsgi.input | <lsapi_wsgi.InputStream object at 0x7f65aba96b28> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
dembskinowak.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/denowa/app/dembski-nowak' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'localhost', 'NAME': 'denowa_mysql', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'denowa_admin'}} |
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 | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
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 | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
IGNORABLE_404_URLS | [] |
IMAGEKIT_CACHEFILE_DIR | 'CACHE/images' |
IMAGEKIT_CACHEFILE_NAMER | 'imagekit.cachefiles.namers.hash' |
IMAGEKIT_CACHE_BACKEND | 'default' |
IMAGEKIT_CACHE_PREFIX | 'imagekit:' |
IMAGEKIT_DEFAULT_CACHEFILE_BACKEND | 'imagekit.cachefiles.backends.Simple' |
IMAGEKIT_DEFAULT_CACHEFILE_STRATEGY | 'imagekit.cachefiles.strategies.JustInTime' |
IMAGEKIT_DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
IMAGEKIT_SPEC_CACHEFILE_NAMER | 'imagekit.cachefiles.namers.source_name_as_path' |
IMAGEKIT_USE_MEMCACHED_SAFE_CACHE_KEY | '********************' |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'parler', 'imagekit', 'rosetta', 'tinymce', 'mce_filebrowser', 'django_cleanup', 'homepage', 'about', 'offer', 'works', 'articles', 'contact'] |
INTERNAL_IPS | [] |
LANGUAGES | (('pl', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7f65ab6a6940>), ('en', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7f65ab6a67b8>)) |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'pl' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | ('/home/denowa/app/dembski-nowak/../locale',) |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/home/denowa/app/dembski-nowak/../media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.locale.LocaleMiddleware'] |
MIDDLEWARE_CLASSES | ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PARLER_LANGUAGES | {1: ({'code': 'pl', 'fallbacks': ['pl'], 'hide_untranslated': False}, {'code': 'en', 'fallbacks': ['pl'], 'hide_untranslated': False}), 'default': {'code': 'pl', 'fallbacks': ['pl'], 'hide_untranslated': False}} |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'dembskinowak.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
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_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'dembskinowak.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
STATICFILES_DIRS | ['/home/denowa/app/dembski-nowak/../frontend/static', '/home/denowa/app/dembski-nowak/../frontend/tinymce'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/denowa/app/dembski-nowak/../static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'UTC' |
TINYMCE_DEFAULT_CONFIG | {'file_browser_callback': 'mce_filebrowser', 'height': 500, 'language': 'pl', 'plugins': 'autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template', 'resize': 'both', 'theme': 'advanced', 'theme_advanced_buttons1': 'bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect', 'theme_advanced_buttons2': 'cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,image,cleanup,code,|,preview,|,forecolor,backcolor', 'theme_advanced_buttons3': 'tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,iespell,advhr,|,ltr,rtl,|,fullscreen', 'theme_advanced_resizing': True, 'theme_advanced_statusbar_location': 'bottom', 'theme_advanced_toolbar_align': 'left', 'theme_advanced_toolbar_location': 'top', 'width': 1000} |
TINYMCE_JS_ROOT | '/static/tinymce/' |
TINYMCE_JS_URL | '/static/tinymce/tiny_mce.js' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'dembskinowak.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.