The source file does not appear to be an image
Request Method: | GET |
---|---|
Request URL: | https://studena.hr/prijavljeni-uzori/b84bbd9b-dda7-4153-9ee9-65e8030a1354/ |
Django Version: | 1.11.25 |
Exception Type: | InvalidImageFormatError |
Exception Value: | The source file does not appear to be an image |
Exception Location: | /home/sonda/virtualenvs/studena/lib/python3.6/site-packages/easy_thumbnails/files.py in generate_thumbnail, line 388 |
Python Executable: | /usr/bin/uwsgi-core |
Python Version: | 3.6.9 |
Python Path: | ['.', '', '/home/sonda/virtualenvs/studena/lib/python36.zip', '/home/sonda/virtualenvs/studena/lib/python3.6', '/home/sonda/virtualenvs/studena/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/home/sonda/virtualenvs/studena/lib/python3.6/site-packages'] |
Server time: | Pet, 29 Ožu. 2024 05:44:33 +0100 |
In template /home/sonda/djangosites/studena/studena/templates/base.html
, error at line 0
1 | {% load cms_tags sekizai_tags menu_tags static gtm_tags commons_tags thumbnail cookielaw_tags i18n %} |
---|---|
2 | {% load render_bundle from webpack_loader %} |
3 | |
4 | <script> window.location = 'https://www.gucguc.hr'; </script> |
5 | |
6 | <!DOCTYPE html> |
7 | <html lang="{{ LANGUAGE_CODE }}"> |
8 | <head> |
9 | <!-- |
10 | <script>window.location.href='https://www.srcemzasutra.hr/projekt/prirodno-mi-je-reciklirati/';</script> |
/home/sonda/virtualenvs/studena/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 | InvalidImageFormatError('The source file does not appear to be an image',) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f14d37fe588>> |
request | <WSGIRequest: GET '/prijavljeni-uzori/b84bbd9b-dda7-4153-9ee9-65e8030a1354/'> |
/home/sonda/virtualenvs/studena/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 cms_perms.<locals>.inner at 0x7f14d20b0a60> |
callback_args | () |
callback_kwargs | {'uuid': 'b84bbd9b-dda7-4153-9ee9-65e8030a1354'} |
middleware_method | <bound method ToolbarMiddleware.process_view of <cms.middleware.toolbar.ToolbarMiddleware object at 0x7f14d3766b00>> |
request | <WSGIRequest: GET '/prijavljeni-uzori/b84bbd9b-dda7-4153-9ee9-65e8030a1354/'> |
resolver | <RegexURLResolver 'studena.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=applications.views.ConfirmCandidateApplicationView, args=(), kwargs={'uuid': 'b84bbd9b-dda7-4153-9ee9-65e8030a1354'}, url_name=confirm_application, app_names=['application_list'], namespaces=['application_list']) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f14d37fe588> |
wrapped_callback | <function cms_perms.<locals>.inner at 0x7f14d20b0a60> |
/home/sonda/virtualenvs/studena/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 cms_perms.<locals>.inner at 0x7f14d20b0a60> |
callback_args | () |
callback_kwargs | {'uuid': 'b84bbd9b-dda7-4153-9ee9-65e8030a1354'} |
middleware_method | <bound method ToolbarMiddleware.process_view of <cms.middleware.toolbar.ToolbarMiddleware object at 0x7f14d3766b00>> |
request | <WSGIRequest: GET '/prijavljeni-uzori/b84bbd9b-dda7-4153-9ee9-65e8030a1354/'> |
resolver | <RegexURLResolver 'studena.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=applications.views.ConfirmCandidateApplicationView, args=(), kwargs={'uuid': 'b84bbd9b-dda7-4153-9ee9-65e8030a1354'}, url_name=confirm_application, app_names=['application_list'], namespaces=['application_list']) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f14d37fe588> |
wrapped_callback | <function cms_perms.<locals>.inner at 0x7f14d20b0a60> |
/home/sonda/virtualenvs/studena/lib/python3.6/site-packages/cms/utils/decorators.py
in inner
def inner(request, *args, **kwargs):
page = request.current_page
if page:
if page.login_required and not request.user.is_authenticated():
return redirect_to_login(urlquote(request.get_full_path()), settings.LOGIN_URL)
if not user_can_view_page(request.user, page):
return _handle_no_page(request, "$")
return func(request, *args, **kwargs)...
inner.__module__ = func.__module__
inner.__doc__ = func.__doc__
if hasattr(func, '__name__'):
inner.__name__ = func.__name__
elif hasattr(func, '__class__'):
inner.__name__ = func.__class__.__name__
Variable | Value |
---|---|
args | () |
func | <function ConfirmCandidateApplicationView at 0x7f14d3255488> |
kwargs | {'uuid': 'b84bbd9b-dda7-4153-9ee9-65e8030a1354'} |
page | <SimpleLazyObject: <cms.models.pagemodel.Page object at 0x7f14d270c7b8>> |
request | <WSGIRequest: GET '/prijavljeni-uzori/b84bbd9b-dda7-4153-9ee9-65e8030a1354/'> |
/home/sonda/virtualenvs/studena/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 'applications.views.ConfirmCandidateApplicationView'> |
initkwargs | {} |
kwargs | {'uuid': 'b84bbd9b-dda7-4153-9ee9-65e8030a1354'} |
request | <WSGIRequest: GET '/prijavljeni-uzori/b84bbd9b-dda7-4153-9ee9-65e8030a1354/'> |
self | <applications.views.ConfirmCandidateApplicationView object at 0x7f14d30932e8> |
/home/sonda/virtualenvs/studena/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 ConfirmCandidateApplicationView.get of <applications.views.ConfirmCandidateApplicationView object at 0x7f14d30932e8>> |
kwargs | {'uuid': 'b84bbd9b-dda7-4153-9ee9-65e8030a1354'} |
request | <WSGIRequest: GET '/prijavljeni-uzori/b84bbd9b-dda7-4153-9ee9-65e8030a1354/'> |
self | <applications.views.ConfirmCandidateApplicationView object at 0x7f14d30932e8> |
./applications/views.py
in get
candidate.published = True
candidate.save()
def get(self, request, uuid, *args, **kwargs):
return render(
request,
template_name='applications/candidate_detail.html',
context=self._prepare_context(uuid)...
)
def post(self, request, uuid, *args, **kwargs):
accepted_application = True if request.POST.get('accept-application') == 'on' else False
context = self._prepare_context(uuid)
Variable | Value |
---|---|
args | () |
kwargs | {} |
request | <WSGIRequest: GET '/prijavljeni-uzori/b84bbd9b-dda7-4153-9ee9-65e8030a1354/'> |
self | <applications.views.ConfirmCandidateApplicationView object at 0x7f14d30932e8> |
uuid | 'b84bbd9b-dda7-4153-9ee9-65e8030a1354' |
/home/sonda/virtualenvs/studena/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 | {'candidate': <Candidate: Mihael Kurtoić>} |
request | <WSGIRequest: GET '/prijavljeni-uzori/b84bbd9b-dda7-4153-9ee9-65e8030a1354/'> |
status | None |
template_name | 'applications/candidate_detail.html' |
using | None |
/home/sonda/virtualenvs/studena/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 | {'candidate': <Candidate: Mihael Kurtoić>} |
request | <WSGIRequest: GET '/prijavljeni-uzori/b84bbd9b-dda7-4153-9ee9-65e8030a1354/'> |
template | <django.template.backends.django.Template object at 0x7f14d2fc88d0> |
template_name | 'applications/candidate_detail.html' |
using | None |
/home/sonda/virtualenvs/studena/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}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
request | <WSGIRequest: GET '/prijavljeni-uzori/b84bbd9b-dda7-4153-9ee9-65e8030a1354/'> |
self | <django.template.backends.django.Template object at 0x7f14d2fc88d0> |
/home/sonda/virtualenvs/studena/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}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
self | <django.template.base.Template object at 0x7f14d1047320> |
/home/sonda/virtualenvs/studena/lib/python3.6/site-packages/django/test/utils.py
in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal
that can be intercepted by the test system Client
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)...
class _TestState(object):
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
self | <django.template.base.Template object at 0x7f14d1047320> |
/home/sonda/virtualenvs/studena/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}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
node | <ExtendsNode: extends 'base.html'> |
self | [<ExtendsNode: extends 'base.html'>] |
/home/sonda/virtualenvs/studena/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}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
self | <ExtendsNode: extends 'base.html'> |
/home/sonda/virtualenvs/studena/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, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f14d1bfd7f0> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n '>]>, 'meta': <Block Node: meta. Contents: [<TextNode: '\n <meta property="'>, <IfNode>, <Variable Node: request.site.name>, <TextNode: '">\n <meta property'>, <Variable Node: request.build_absolute_uri>, <TextNode: '">\n '>, <IfNode>, <TextNode: '\n <meta property="'>, <Variable Node: page_description>, <TextNode: '">\n '>]>, 'scripts': <Block Node: scripts. Contents: [<django.template.library.SimpleNode object at 0x7f14d2e5a940>]>, 'styles': <Block Node: styles. Contents: [<django.template.library.SimpleNode object at 0x7f14d254f2b0>]>, 'title': <Block Node: title. Contents: [<TextNode: '\n '>, <Tag: page_attribute>, <TextNode: '\n <title>'>, <IfNode>, <Variable Node: request.site.name>, <TextNode: '</title>\n '>, <Tag: page_attribute>, <TextNode: '\n <meta name="desc'>, <Variable Node: page_description>, <TextNode: '">\n '>]>} |
compiled_parent | <django.template.base.Template object at 0x7f14d1164278> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
node | <django.template.defaulttags.LoadNode object at 0x7f14d1bfd5f8> |
self | <ExtendsNode: extends 'base.html'> |
/home/sonda/virtualenvs/studena/lib/python3.6/site-packages/django/test/utils.py
in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal
that can be intercepted by the test system Client
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)...
class _TestState(object):
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
self | <django.template.base.Template object at 0x7f14d1164278> |
/home/sonda/virtualenvs/studena/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 ' |
bits | ['', '\n', '', '\n' '\n' "<script> window.location = 'https://www.gucguc.hr'; </script>\n" '\n' '<!DOCTYPE html>\n' '<html lang="', '', '">\n' '<head>\n' ' <!--\n' ' ' "<script>window.location.href='https://www.srcemzasutra.hr/projekt/prirodno-mi-je-reciklirati/';</script>\n" ' -->\n' ' <meta charset="UTF-8">\n' ' <meta name="viewport" content="width=device-width, initial-scale=1.0">\n' ' <meta http-equiv="X-UA-Compatible" content="ie=edge">\n' '\n' ' ', '\n' ' \n' ' <title>Prijavljeni Uzori\n' ' | Studena</title>\n' ' \n' ' <meta name="description" content="">\n' ' ', '\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
node | <Block Node: meta. Contents: [<TextNode: '\n <meta property="'>, <IfNode>, <Variable Node: request.site.name>, <TextNode: '">\n <meta property'>, <Variable Node: request.build_absolute_uri>, <TextNode: '">\n '>, <IfNode>, <TextNode: '\n <meta property="'>, <Variable Node: page_description>, <TextNode: '">\n '>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f14d1bfd5f8>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f14d1bfd2b0>, <TextNode: '\n\n<script> window.locatio'>, <Variable Node: LANGUAGE_CODE>, <TextNode: '">\n<head>\n <!--\n <s'>, <Block Node: title. Contents: [<TextNode: '\n '>, <Tag: page_attribute>, <TextNode: '\n <title>'>, <IfNode>, <Variable Node: request.site.name>, <TextNode: '</title>\n '>, <Tag: page_attribute>, <TextNode: '\n <meta name="desc'>, <Variable Node: page_description>, <TextNode: '">\n '>]>, <TextNode: '\n '>, <Block Node: meta. Contents: [<TextNode: '\n <meta property="'>, <IfNode>, <Variable Node: request.site.name>, <TextNode: '">\n <meta property'>, <Variable Node: request.build_absolute_uri>, <TextNode: '">\n '>, <IfNode>, <TextNode: '\n <meta property="'>, <Variable Node: page_description>, <TextNode: '">\n '>]>, <TextNode: '\n\n <link rel="icon" ty'>, <django.templatetags.static.StaticNode object at 0x7f14d254f9b0>, <TextNode: '">\n <link rel="icon" t'>, <django.templatetags.static.StaticNode object at 0x7f14d254fef0>, <TextNode: '">\n '>, <Tag: render_block>] |
/home/sonda/virtualenvs/studena/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}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
self | <Block Node: meta. Contents: [<TextNode: '\n <meta property="'>, <IfNode>, <Variable Node: request.site.name>, <TextNode: '">\n <meta property'>, <Variable Node: request.build_absolute_uri>, <TextNode: '">\n '>, <IfNode>, <TextNode: '\n <meta property="'>, <Variable Node: page_description>, <TextNode: '">\n '>]> |
/home/sonda/virtualenvs/studena/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: meta. Contents: [<TextNode: '\n <meta property="og:t'>, <Variable Node: candidate.name|title>, <TextNode: '">\n <meta property="og'>, <Variable Node: request.build_absolute_uri>, <TextNode: '">\n '>, <WithNode>, <TextNode: '\n\n <meta property="og:'>, <Variable Node: candidate.text>, <TextNode: '">\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f14d1bfd7f0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
push | <Block Node: meta. Contents: [<TextNode: '\n <meta property="og:t'>, <Variable Node: candidate.name|title>, <TextNode: '">\n <meta property="og'>, <Variable Node: request.build_absolute_uri>, <TextNode: '">\n '>, <WithNode>, <TextNode: '\n\n <meta property="og:'>, <Variable Node: candidate.text>, <TextNode: '">\n'>]> |
self | <Block Node: meta. Contents: [<TextNode: '\n <meta property="'>, <IfNode>, <Variable Node: request.site.name>, <TextNode: '">\n <meta property'>, <Variable Node: request.build_absolute_uri>, <TextNode: '">\n '>, <IfNode>, <TextNode: '\n <meta property="'>, <Variable Node: page_description>, <TextNode: '">\n '>]> |
/home/sonda/virtualenvs/studena/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 ' |
bits | ['\n <meta property="og:title" content="PrirodnoJa | ', 'Mihael Kurtoić', '">\n' ' <meta property="og:type" content="website">\n' ' <meta property="og:url" content="', 'https://studena.hr/prijavljeni-uzori/b84bbd9b-dda7-4153-9ee9-65e8030a1354/', '">\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
node | <WithNode> |
self | [<TextNode: '\n <meta property="og:t'>, <Variable Node: candidate.name|title>, <TextNode: '">\n <meta property="og'>, <Variable Node: request.build_absolute_uri>, <TextNode: '">\n '>, <WithNode>, <TextNode: '\n\n <meta property="og:'>, <Variable Node: candidate.text>, <TextNode: '">\n'>] |
/home/sonda/virtualenvs/studena/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}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
self | <WithNode> |
/home/sonda/virtualenvs/studena/lib/python3.6/site-packages/django/template/defaulttags.py
in render
def __repr__(self):
return "<WithNode>"
def render(self, context):
values = {key: val.resolve(context) for key, val in
six.iteritems(self.extra_context)}
with context.push(**values):
return self.nodelist.render(context)...
@register.tag
def autoescape(parser, token):
"""
Force autoescape behavior for this block.
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
self | <WithNode> |
values | {'share_thumbnail_alias': 'share'} |
/home/sonda/virtualenvs/studena/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\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
node | <IfNode> |
self | [<TextNode: '\n\n '>, <IfNode>, <TextNode: '\n\n '>] |
/home/sonda/virtualenvs/studena/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}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
self | <IfNode> |
/home/sonda/virtualenvs/studena/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 | None |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
match | True |
nodelist | [<TextNode: '\n\n <meta p'>, <Variable Node: request|get_host_url>, <Variable Node: candidate.image|thumbnail_url:share_thumbnail_alias>, <TextNode: '"/>\n <meta'>, <Variable Node: candidate.image|get_image_size:share_thumbnail_alias|get_item:'height'>, <TextNode: '"/>\n <meta'>, <Variable Node: candidate.image|get_image_size:share_thumbnail_alias|get_item:'width'>, <TextNode: '"/>\n\n '>] |
self | <IfNode> |
/home/sonda/virtualenvs/studena/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' ' <meta property="og:image:height"\n' ' content="') |
bits | ['\n' '\n' ' <meta property="og:image"\n' ' content="\n' ' ', 'https://studena.hr', '', '"/>\n' ' <meta property="og:image:height"\n' ' content="'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
node | <Variable Node: candidate.image|get_image_size:share_thumbnail_alias|get_item:'height'> |
self | [<TextNode: '\n\n <meta p'>, <Variable Node: request|get_host_url>, <Variable Node: candidate.image|thumbnail_url:share_thumbnail_alias>, <TextNode: '"/>\n <meta'>, <Variable Node: candidate.image|get_image_size:share_thumbnail_alias|get_item:'height'>, <TextNode: '"/>\n <meta'>, <Variable Node: candidate.image|get_image_size:share_thumbnail_alias|get_item:'width'>, <TextNode: '"/>\n\n '>] |
/home/sonda/virtualenvs/studena/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}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
self | <Variable Node: candidate.image|get_image_size:share_thumbnail_alias|get_item:'height'> |
/home/sonda/virtualenvs/studena/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}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
self | <Variable Node: candidate.image|get_image_size:share_thumbnail_alias|get_item:'height'> |
/home/sonda/virtualenvs/studena/lib/python3.6/site-packages/django/template/base.py
in resolve
else:
arg_vals.append(arg.resolve(context))
if getattr(func, 'expects_localtime', False):
obj = template_localtime(obj, context.use_tz)
if getattr(func, 'needs_autoescape', False):
new_obj = func(obj, autoescape=context.autoescape, *arg_vals)
else:
new_obj = func(obj, *arg_vals)...
if getattr(func, 'is_safe', False) and isinstance(obj, SafeData):
obj = mark_safe(new_obj)
elif isinstance(obj, EscapeData):
with warnings.catch_warnings():
# Ignore mark_for_escaping deprecation as this will be
# removed in Django 2.0.
Variable | Value |
---|---|
arg | <Variable: 'share_thumbnail_alias'> |
arg_vals | ['share'] |
args | [(True, <Variable: 'share_thumbnail_alias'>)] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'candidate': <Candidate: Mihael Kurtoić>}] |
escape_isnt_last_filter | True |
func | <function get_image_size at 0x7f14d374cae8> |
ignore_failures | False |
lookup | True |
obj | <ThumbnailerImageFieldFile: applications/b84bbd9b-dda7-4153-9ee9-65e8030a1354/IMG_20180723_151605.jpg> |
self | <django.template.base.FilterExpression object at 0x7f14d32c1080> |
./commons/templatetags/commons_tags.py
in get_image_size
:param image: Original Image object
:param thumbnail_alias: optional alias for thumbnail generation
:return: dict - {'height': height, 'width': width}
"""
if thumbnail_alias:
width, height = get_image_dimensions(
get_thumbnailer(image)[thumbnail_alias])...
else:
width, height = get_image_dimensions(image)
return {'height': height, 'width': width}
Variable | Value |
---|---|
image | <ThumbnailerImageFieldFile: applications/b84bbd9b-dda7-4153-9ee9-65e8030a1354/IMG_20180723_151605.jpg> |
thumbnail_alias | 'share' |
/home/sonda/virtualenvs/studena/lib/python3.6/site-packages/easy_thumbnails/files.py
in __getitem__
"""
Retrieve a thumbnail matching the alias options (or raise a
``KeyError`` if no such alias exists).
"""
options = aliases.get(alias, target=self.alias_target)
if not options:
raise KeyError(alias)
return self.get_thumbnail(options, silent_template_exception=True)...
def get_options(self, thumbnail_options, **kwargs):
"""
Get the thumbnail options that includes the default options for this
thumbnailer (and the project-wide default options).
"""
Variable | Value |
---|---|
alias | 'share' |
options | {'crop': False, 'size': (1200, 530), 'upscale': False} |
self | <ThumbnailerImageFieldFile: applications/b84bbd9b-dda7-4153-9ee9-65e8030a1354/IMG_20180723_151605.jpg> |
/home/sonda/virtualenvs/studena/lib/python3.6/site-packages/easy_thumbnails/files.py
in get_thumbnail
generate = self.generate
thumbnail = self.get_existing_thumbnail(thumbnail_options)
if not thumbnail:
if generate:
thumbnail = self.generate_thumbnail(
thumbnail_options,
silent_template_exception=silent_template_exception)...
if save:
self.save_thumbnail(thumbnail)
else:
signals.thumbnail_missed.send(
sender=self, options=thumbnail_options,
high_resolution=False)
Variable | Value |
---|---|
generate | True |
save | True |
self | <ThumbnailerImageFieldFile: applications/b84bbd9b-dda7-4153-9ee9-65e8030a1354/IMG_20180723_151605.jpg> |
silent_template_exception | True |
thumbnail | None |
thumbnail_options | {'crop': False, 'quality': 85, 'size': (1200, 530), 'subsampling': 2, 'upscale': False} |
/home/sonda/virtualenvs/studena/lib/python3.6/site-packages/easy_thumbnails/files.py
in generate_thumbnail
if high_resolution:
thumbnail_options['size'] = (orig_size[0] * 2, orig_size[1] * 2)
image = engine.generate_source_image(
self, thumbnail_options, self.source_generators,
fail_silently=silent_template_exception)
if image is None:
raise exceptions.InvalidImageFormatError(
"The source file does not appear to be an image")...
thumbnail_image = engine.process_image(image, thumbnail_options,
self.thumbnail_processors)
if high_resolution:
thumbnail_options['size'] = orig_size # restore original size
Variable | Value |
---|---|
dim | 530 |
high_resolution | False |
image | None |
max_dim | 1200 |
min_dim | 0 |
orig_size | (1200, 530) |
self | <ThumbnailerImageFieldFile: applications/b84bbd9b-dda7-4153-9ee9-65e8030a1354/IMG_20180723_151605.jpg> |
silent_template_exception | True |
thumbnail_options | {'crop': False, 'quality': 85, 'size': (1200, 530), 'subsampling': 2, 'upscale': False} |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | '' |
DOCUMENT_ROOT | '/usr/share/nginx/html' |
HTTPS | 'on' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'studena.hr' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/prijavljeni-uzori/b84bbd9b-dda7-4153-9ee9-65e8030a1354/' |
QUERY_STRING | '' |
REMOTE_ADDR | '54.242.96.240' |
REMOTE_PORT | '57456' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/prijavljeni-uzori/b84bbd9b-dda7-4153-9ee9-65e8030a1354/' |
SCRIPT_NAME | '' |
SERVER_NAME | 'studena.hr' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
uwsgi.node | b'sonda' |
uwsgi.version | b'2.0.15-debian' |
wsgi.errors | <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <uwsgi._Input object at 0x7f14d375ed50> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
studena.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [('Devs', 'devs@euroart93.hr')] |
ALLOWED_HOSTS | ['localhost', 'studena.hr', 'www.studena.hr', 'studena.codestudio.hr', 'studena.syntax.hr', '46.101.156.243'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/sonda/djangosites/studena' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'KEY_PREFIX': '********************', 'LOCATION': '127.0.0.1:11211'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CKEDITOR_SETTINGS_NEWS | {'toolbar_HTMLField': [['Undo', 'Redo'], ['ShowBlocks'], ['Format'], ['Bold', 'Italic', 'Underline', '-', 'Subscript', 'Superscript', '-', 'RemoveFormat', 'Link'], ['Source']]} |
CMS_ENABLE_UPDATE_CHECK | False |
CMS_PLACEHOLDER_CONF | {'about-us-content': {'name': 'Sadržaj', 'plugins': ['CMSHtmlEditorPlugin', 'CMSImagePlugin']}, 'application-confirmation-text': {'limits': {'global': 1}, 'name': 'Application Confirmation Text', 'plugins': ['CMSHtmlEditorPlugin']}, 'application-confirmation-title': {'limits': {'global': 1}, 'name': 'Application Confirmation Title', 'plugins': ['CMSHtmlEditorPlugin']}, 'application-ended-header-content': {'limits': {'global': 1}, 'name': 'Applications ended Header content', 'plugins': ['CMSHtmlEditorPlugin']}, 'application-ended-header-info': {'limits': {'global': 1}, 'name': 'Applications ended Header info', 'plugins': ['CMSHtmlEditorPlugin']}, 'candidate-form-candidate-info-section': {'limits': {'global': 1}, 'name': 'Candidate Form - Candidate Form Info Section', 'plugins': ['CMSHtmlEditorPlugin']}, 'candidate-form-candidate-terms-section': {'limits': {'global': 1}, 'name': 'Candidate Form - Candidate Form Terms Section', 'plugins': ['CMSHtmlEditorPlugin']}, 'candidate-form-header-content': {'limits': {'global': 1}, 'name': 'Candidate Form - Header Content', 'plugins': ['CMSHtmlEditorPlugin']}, 'candidate-form-header-info': {'limits': {'global': 1}, 'name': 'Candidate Form - Info Content', 'plugins': ['CMSHtmlEditorPlugin']}, 'candidate-form-terms-and-conditions-label': {'limits': {'global': 1}, 'name': 'Candidate Form - Terms And Conditions Label', 'plugins': ['CMSHtmlEditorPlugin']}, 'candidate-form-terms-and-conditions-title': {'limits': {'global': 1}, 'name': 'Candidate Form - Terms And Conditions Title', 'plugins': ['CMSHtmlEditorPlugin']}, 'candidate-form-user-info-section': {'limits': {'global': 1}, 'name': 'Candidate Form - User Form Info Section', 'plugins': ['CMSHtmlEditorPlugin']}, 'content-text': {'limits': {'global': 1}, 'name': 'Sadržaj', 'plugins': ['CMSHtmlEditorPlugin']}, 'home-content': {'name': 'Sadržaj', 'plugins': ['FeaturedInfluencers', 'CMSVideoPlugin', 'InstagramGallery', 'CMSPromoPlugin', 'CMSFacebookPlugin']}, 'home-header': {'limits': {'CMSHomeHeaderLink': 10}, 'name': 'Home Header', 'plugins': ['CMSHomeHeaderImagePlugin', 'CMSHomeHeaderLink', 'CMSCollagePlugin', 'CMSCollageItemPlugin']}, 'home-news': {'limits': {'global': 1}, 'name': 'News', 'plugins': ['CMSNewsPlugin']}, 'influencers-list-header': {'name': 'Header', 'plugins': ['CMSInfluencersPromoPlugin', 'CMSInfluencersPromoHeaderPlugin', 'CMSInfluencersPromoContentPlugin']}, 'interview': {'name': 'Sadržaj', 'plugins': ['CMSInfluencerInterviewImageWithTextPlugin', 'CMSInfluencerInterviewTextPlugin', 'CMSInfluencerInterviewImagePlugin', 'CMSRoleModelInterviewTextPlugin']}, 'privacy-policy-text': {'limits': {'global': 1}, 'name': 'Privacy policy', 'plugins': ['CMSHtmlEditorPlugin']}} |
CMS_TEMPLATES | (('content.html', 'Sadržaj'), ('prirodnoJa.html', 'PrirodnoJa'), ('home.html', 'Početna'), ('about-us.html', 'About us'), ('splash.html', 'Splash'), ('privacy-policy.html', 'Privacy'), ('application-ended.html', 'Application ended'), ('test.html', 'Test')) |
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 | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': '', 'NAME': 'studena', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'sonda'}} |
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 | 'no-reply@studena.hr' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'mailer.backend.DbBackend' |
EMAIL_HOST | 'smtp.gmail.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'no-reply@studena.hr' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
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 | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
GOOGLE_TAG_ID | None |
HONEYPOT_FIELD_NAME | 'phone' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['modeltranslation', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'webpack_loader', 'mailer', 'gtm', 'filer', 'cms', 'djangocms_text_ckeditor', 'djangocms_link', 'embed_video', 'widget_tweaks', 'cmsplugin_plain_text', 'menus', 'treebeard', 'sekizai', 'adminsortable2', 'el_pagination', 'easy_thumbnails', 'commons', 'rosetta', 'influencers', 'news', 'instagram_gallery', 'applications', 'honeypot', 'cookielaw', 'rolemodels', 'rewards', 'debug_toolbar'] |
INTERNAL_IPS | ['127.0.0.1'] |
LANGUAGES | (('hr', 'Hrvatski'),) |
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 | ['/home/sonda/djangosites/studena/locale'] |
LOGGING | {'disable_existing_loggers': False, 'handlers': {'null': {'class': 'logging.NullHandler'}}, 'loggers': {'django.security.DisallowedHost': {'handlers': ['null'], 'propagate': False}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/admin/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/home/sonda/djangosites/studena/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['debug_toolbar.middleware.DebugToolbarMiddleware', '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', 'django.contrib.sites.middleware.CurrentSiteMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware', 'cms.middleware.utils.ApphookReloadMiddleware'] |
MIDDLEWARE_CLASSES | ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
OFFICE_MAIL | 'no-reply@studena.hr' |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
REWARDS_ADMIN_EMAILS | ['sonda@sonda.hr'] |
ROOT_URLCONF | 'studena.urls' |
ROSETTA_SHOW_AT_ADMIN_PANEL | True |
ROSETTA_STORAGE_CLASS | 'rosetta.storage.CacheRosettaStorage' |
ROSETTA_UWSGI_AUTO_RELOAD | True |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'no-reply@studena.hr' |
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 | 'studena.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/sonda/djangosites/studena/studena/static', '/home/sonda/djangosites/studena/dist') |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/sonda/djangosites/studena/static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/sonda/djangosites/studena/studena/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', 'cms.context_processors.cms_settings', 'sekizai.context_processors.sekizai', 'commons.context_processors.commons_data', 'news.context_processors.data', 'influencers.context_processor.data']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
THUMBNAIL_ALIASES | {'': {'admin-thumb': {'crop': True, 'size': (100, 100), 'upscale': True}, 'big': {'crop': False, 'size': (900, 900)}, 'header': {'crop': False, 'size': (1920, 0), 'upscale': False}, 'header-mobile': {'crop': False, 'size': (900, 0), 'upscale': False}, 'share': {'crop': False, 'size': (1200, 530), 'upscale': False}, 'small': {'crop': True, 'size': (250, 250), 'upscale': True}, 'standard': {'crop': True, 'size': (600, 600), 'upscale': True}}} |
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 | 'CET' |
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 | 'studena.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.