[Errno 2] No such file or directory: '/home/sherlockth/apps/doma/doma/media/projects/industrialKifisia_tsiraki_photos_01.jpg'
Request Method: | GET |
---|---|
Request URL: | https://doma.archi/awards/projects/biomhxaniko-kthrio-sthn-khfisia |
Django Version: | 2.2.10 |
Exception Type: | FileNotFoundError |
Exception Value: | [Errno 2] No such file or directory: '/home/sherlockth/apps/doma/doma/media/projects/industrialKifisia_tsiraki_photos_01.jpg' |
Exception Location: | /home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/core/files/storage.py in _open, line 224 |
Python Executable: | /home/sherlockth/.envs/doma_env/bin/python |
Python Version: | 3.8.0 |
Python Path: | ['/home/sherlockth/apps/doma', '/home/sherlockth/apps/doma', '/home/sherlockth/.envs/doma_env/bin', '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/python3.8/lib-dynload', '/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages', '/home/sherlockth/apps/doma/doma'] |
Server time: | Παρ, 29 Μάρ 2024 03:37:24 +0200 |
In template /home/sherlockth/apps/doma/doma/templates/base.html
, error at line 0
1 | {% load static i18n compress%} |
---|---|
2 | {% load i18n %} |
3 | {% get_current_language as LANGUAGE_CODE %} |
4 | {% load svg %} |
5 | {% load stripaccents %} |
6 | <!DOCTYPE html> |
7 | <html lang="{{LANGUAGE_CODE}}" class="no-js"> |
8 | <head> |
9 | <!-- Global site tag (gtag.js) - Google Analytics --> |
10 | <!--<script async src="https://www.googletagmanager.com/gtag/js?id=UA-158726983-1"></script> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | FileNotFoundError(2, 'No such file or directory') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f0456eab220>> |
request | <WSGIRequest: GET '/awards/projects/biomhxaniko-kthrio-sthn-khfisia'> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/core/handlers/base.py
in _get_response
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()
except Exception as e:
response = self.process_exception_by_middleware(e, request)…
return response
def process_exception_by_middleware(self, exception, request):
"""
Pass the exception to the exception middleware. If no middleware
Variable | Value |
---|---|
callback | <function AwardProjectDetailView at 0x7f0450051dc0> |
callback_args | () |
callback_kwargs | {'slug': 'biomhxaniko-kthrio-sthn-khfisia'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f04503f00d0>> |
request | <WSGIRequest: GET '/awards/projects/biomhxaniko-kthrio-sthn-khfisia'> |
resolver | <URLResolver 'config.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=contests.views.AwardProjectDetailView, args=(), kwargs={'slug': 'biomhxaniko-kthrio-sthn-khfisia'}, url_name=award-project, app_names=[], namespaces=[], route=awards/projects/<slug:slug>) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f0456eab220> |
wrapped_callback | <function AwardProjectDetailView at 0x7f044d58b790> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/core/handlers/base.py
in _get_response
raise ValueError(
"%s.process_template_response didn't return an "
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
return response
def process_exception_by_middleware(self, exception, request):
Variable | Value |
---|---|
callback | <function AwardProjectDetailView at 0x7f0450051dc0> |
callback_args | () |
callback_kwargs | {'slug': 'biomhxaniko-kthrio-sthn-khfisia'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f04503f00d0>> |
request | <WSGIRequest: GET '/awards/projects/biomhxaniko-kthrio-sthn-khfisia'> |
resolver | <URLResolver 'config.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=contests.views.AwardProjectDetailView, args=(), kwargs={'slug': 'biomhxaniko-kthrio-sthn-khfisia'}, url_name=award-project, app_names=[], namespaces=[], route=awards/projects/<slug:slug>) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f0456eab220> |
wrapped_callback | <function AwardProjectDetailView at 0x7f044d58b790> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Return the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content…
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
retval | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/response.py
in rendered_content
This *does not* set the final content of the response. To set the
response content, you must either call render(), or set the
content explicitly using the value of this property.
"""
template = self.resolve_template(self.template_name)
context = self.resolve_context(self.context_data)
content = template.render(context, self._request)…
return content
def add_post_render_callback(self, callback):
"""Add a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
context | {'landing_pages': <LandingPages: LandingPages object (1)>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'related': <MultilingualQuerySet [<Project: ‘Εγκυμονούσα πόλη’ – Αρχαιολογικό θεματικό μουσείο για την πόλη του Πειραιά - ID493>, <Project: Βρεφονηπιακός σταθμός 'Cocoon' - ID21>, <Project: Meteorite Unit - ID474>, <Project: ‘Το σπίτι της Παγώνας’ - ID498>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7f044d82b5e0> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/backends/django.py
in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)…
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: Πλατεία Κατράκη, κεντρική πλατεία Γλυφάδας - ID144>, <Project: Ανάπλαση και επανάχρηση πρώην εξορυκτικών περιοχών λιγνίτη στην περιοχή Δυτικής Μακεδονίας - ID518>, <Project: Κατοικία στο Αγρίνιο - ID141>, <Project: ‘Χριστουγεννομηχανή’ - ID504>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
request | <WSGIRequest: GET '/awards/projects/biomhxaniko-kthrio-sthn-khfisia'> |
self | <django.template.backends.django.Template object at 0x7f044d82b5e0> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)…
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: Επέκταση της Ανωτάτης Σχολής Τεχνών και Σχεδίου της Γενεύης - ID784>, <Project: Ανάπλαση πέτρινης κατοικίας στο Λεύκτρο - ID140>, <Project: Αρχαιολογικό Μουσείο της πόλης των Αθηνών στην Ακαδημία Πλάτωνος - ID787>, <Project: ‘UrbanTatoo’, Τοπικό κέντρο δραστηριοτήτων Ken Saro-Wiwa στο Παρίσι - ID492>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
self | <django.template.base.Template object at 0x7f044d9147f0> |
/home/sherlockth/.envs/doma_env/lib/python3.8/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 Client.
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)…
class _TestState:
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: Διώροφη προσθήκη στου Παπάγου - ID183>, <Project: Εξοχική κατοικία στην Σέριφο - ID184>, <Project: Ογκοπλαστικές παραθέσεις. Αναδιαμόρφωση κτηρίου γραφείων στο Π. Φάληρο - ID552>, <Project: Πολυκατοικία στην οδό Δεινοκράτους - ID170>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
self | <django.template.base.Template object at 0x7f044d9147f0> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: Villa Charissa στο Ημεροβίγλι - ID547>, <Project: Υπαίθριος χώρος λατρείας - ID519>, <Project: olea house - ID583>, <Project: Πολιτιστικό κέντρο στο Bamiyan του Αφγανιστάν - ID494>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
node | <ExtendsNode: extends "index/index_base.html"> |
self | [<ExtendsNode: extends "index/index_base.html">] |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: Διαμόρφωση στην αρχαία Ακρόπολη Νισύρου - ID40>, <Project: ‘Χριστουγεννομηχανή’ - ID504>, <Project: Νηπιαγωγείο στο Amsterdam - ID520>, <Project: Διαρρύθμιση διατηρητέου κτηρίου σε κατοικία - ID138>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
self | <ExtendsNode: extends "index/index_base.html"> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/loader_tags.py
in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)…
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, extra_context=None, isolated_context=False, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f044ea3af40> |
compiled_parent | <django.template.base.Template object at 0x7f044ea3a700> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: Grande Dame - Ανακατασκευή και προσθήκη ορόφου σε διατηρητέα οικία - ID390>, <Project: Loft, κατοικία στου Ψυρρή - ID167>, <Project: Villa Melana - ID393>, <Project: Δύο κατοικίες στο Καβούρι - ID173>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
node | <ExtendsNode: extends "base.html"> |
self | <ExtendsNode: extends "index/index_base.html"> |
/home/sherlockth/.envs/doma_env/lib/python3.8/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 Client.
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)…
class _TestState:
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: Σπίτι διακοπών σε ελαιώνα - ID786>, <Project: Η διάλυση του ‘κουτιού’ - Πολυκατοικία στο Γκάζι - ID187>, <Project: Ιερός Ναός της Οσίας Ξένης και του Ξένου - ID481>, <Project: Σχολή Καλών Τεχνών του Πανεπιστημίου Δυτικής Μακεδονίας - ID553>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
self | <django.template.base.Template object at 0x7f044ea3a700> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: Εξοχική κατοικία στον Γαλατά - ID551>, <Project: Parkway Iconic Bridge - ID477>, <Project: ΚΑ-MA-ΡΑ. Αποκατάσταση κτηρίου στη Μάνη - ID783>, <Project: Ανάπλαση και επανάχρηση πρώην εξορυκτικών περιοχών λιγνίτη στην περιοχή Δυτικής Μακεδονίας - ID521>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: Αναψυκτήριο - Εστιατόριο στην παραλία Σχοινιά - ID335>, <Project: Γραφεία Συνεργατικής Τράπεζας Κύπρου - ID485>, <Project: Aνακαίνιση εξοχικής κατοικίας στο Πευκοχώρι - ID175>, <Project: Κατασκευή τοποσήμου επί του κεντρικού προβλήτα Φαλήρου - ID490>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
self | <ExtendsNode: extends "base.html"> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/loader_tags.py
in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)…
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, extra_context=None, isolated_context=False, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f044ea3af40> |
blocks | {'beforejavascript': <Block Node: beforejavascript. Contents: []>, 'bodyClass': <Block Node: bodyClass. Contents: []>, 'content': <Block Node: content. Contents: [<TextNode: '\n\t\t<main class="site-main'>]>, 'css': <Block Node: css. Contents: [<TextNode: '\n\n\t\t<!-- Latest compiled '>, <compressor.templatetags.compress.CompressorNode object at 0x7f044e8ce2e0>, <TextNode: '\n\t\t'>]>, 'description': <Block Node: description. Contents: []>, 'headerClass': <Block Node: headerClass. Contents: [<TextNode: 'site-header'>]>, 'javascript': <Block Node: javascript. Contents: [<TextNode: '\n\n\t\t\t<!-- Bootstrap JS an'>, <compressor.templatetags.compress.CompressorNode object at 0x7f044dab65e0>, <TextNode: '\n\n\t\t'>]>, 'modal': <Block Node: modal. Contents: []>, 'title': <Block Node: title. Contents: [<TextNode: 'DOMa'>]>} |
compiled_parent | <django.template.base.Template object at 0x7f044e6733d0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: ‘Εγκυμονούσα πόλη’ – Αρχαιολογικό θεματικό μουσείο για την πόλη του Πειραιά - ID493>, <Project: Κατάστημα στο Κολωνάκι - ID513>, <Project: Επέκταση της Ανωτάτης Σχολής Τεχνών και Σχεδίου της Γενεύης - ID784>, <Project: Μουσείο Μαστίχας Χίου - ID528>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
node | <django.template.defaulttags.LoadNode object at 0x7f044dab6ca0> |
self | <ExtendsNode: extends "base.html"> |
/home/sherlockth/.envs/doma_env/lib/python3.8/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 Client.
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)…
class _TestState:
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: Θερινή κατοικία στον Άγιο Νικόλαο Χαλκιδικής - ID502>, <Project: Μουσείο Μαστίχας Χίου - ID528>, <Project: Βιβλιοθήκη Φιλοσοφικής Σχολής ΕΚΠΑ - ID544>, <Project: Διεθνής αρχιτεκτονικός διαγωνισμός για την κεντρική πλατεία του Plovdiv στη Βουλγαρία - ID496>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
self | <django.template.base.Template object at 0x7f044e6733d0> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n\n\n\t\t' |
bits | ['', '\n', '', '\n', '', '\n', '', '\n', '', '\n<!DOCTYPE html>\n<html lang="', 'el', '" class="no-js">\n' '\t<head>\n' '\t\t<!-- Global site tag (gtag.js) - Google Analytics -->\n' '\t\t<!--<script async ' 'src="https://www.googletagmanager.com/gtag/js?id=UA-158726983-1"></script>\n' '\t\t<script>\n' '\t\t\twindow.dataLayer = window.dataLayer || [];\n' '\t\t\tfunction gtag(){dataLayer.push(arguments);}\n' "\t\t\tgtag('js', new Date());\n" '\n' "\t\t\tgtag('config', 'UA-158726983-1');\n" '\t\t</script>-->\n' '\t\t<!-- Google tag (gtag.js) -->\n' '\n' '\t\t', '\n' '\n' '\n' '\t\t<script async ' 'src="https://www.googletagmanager.com/gtag/js?id=G-443F9M419E"></script>\n' '\t\t<script>\n' '\t\t window.dataLayer = window.dataLayer || [];\n' '\t\t function gtag(){dataLayer.push(arguments);}\n' "\t\t gtag('js', new Date());\n" '\n' "\t\t gtag('config', 'G-443F9M419E');\n" '\t\t</script>\n' '\n' '\t\t<!-- Google Tag Manager -->\n' "\t\t<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n" "\t\tnew Date().getTime(),event:'gtm.js'});var " 'f=d.getElementsByTagName(s)[0],\n' "\t\tj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n" '\t\t' "'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n" "\t\t})(window,document,'script','dataLayer','GTM-NBR58DT');</script>\n" '\t\t<!-- End Google Tag Manager -->\n' '\n' '\n' '\t\t', '\n' '\n' '\n' '\t\t<meta charset="utf-8">\n' '\t\t<meta http-equiv="x-ua-compatible" content="ie=edge">\n' '\t\t<title>', 'Index - Βιομηχανικό κτήριο στην Κηφισιά', '</title>\n' '\t\t<meta name="viewport" content="width=device-width, initial-scale=1.0">\n' '\n' '\t\t<link rel="preload" as="font" href="', '/static/fonts/subset-ApercuMonoPro-Light.woff2', '" type="font/woff2" crossorigin="anonymous">\n' '\t\t<link rel="preload" as="font" href="', '/static/fonts/subset-ApercuMonoPro-Medium.woff2', '" type="font/woff2" crossorigin="anonymous">\n' '\t\t<link rel="preload" as="font" href="', '/static/fonts/subset-ApercuPro-Medium.woff2', '" type="font/woff2" crossorigin="anonymous">\n' '\t\t<link rel="preload" as="font" href="', '/static/fonts/subset-ApercuPro-Regular.woff2', '" type="font/woff2" crossorigin="anonymous">\n' '\n' '\t\t<meta name="description" content="', '', '">\n' '\t\t<meta name="author" content="Thodoris Tsirkas">\n' '\n' '\t\t<meta property="og:title" content="">\n' '\t\t<meta property="og:type" content="website">\n' '\t\t<meta property="og:url" content="', 'https://doma.archi/awards/projects/biomhxaniko-kthrio-sthn-khfisia', '">\n' '\t\t<meta property="og:image" content="">\n' '\n' '\t\t<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->\n' '\t\t<!--[if lt IE 9]>\n' '\t\t\t<script ' 'src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>\n' '\t\t<![endif]-->\n' '\n' '\t\t<link rel="icon" href="', '/static/images/favicons/favicon.png', '">\n\n\t\t', '\n' '\n' '\t\t<!-- Latest compiled and minified Bootstrap CSS -->\n' '\t\t<!-- <link ' 'href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" ' 'rel="stylesheet" ' 'integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" ' 'crossorigin="anonymous"> -->\n' '\n' '\n' '\t\t<!-- Your stuff: Third-party CSS libraries go here -->\n' '\t\t\n' '\t\t<!-- This file stores project-specific CSS -->\n' '\n' '\t\t<link href="/static/css/style.min.css?ver=0.8.6abcdefghih" ' 'rel="stylesheet">\n' '\n' '\t\t\n' '\t\t', '\n' "\t\t<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->\n" '\t\t<script>\n' '\t\t\t// window.ga = function () { ga.q.push(arguments) }; ga.q = []; ga.l = ' '+new Date;\n' "\t\t\t// ga('create', 'UA-XXXXX-Y', 'auto'); ga('set', 'anonymizeIp', true); " "ga('set', 'transport', 'beacon'); ga('send', 'pageview')\n" '\t\t</script>\n' '\t<!-- <script src="https://www.google-analytics.com/analytics.js" ' 'async></script> -->\n' '\t', '\n' '\t<!-- Meta Pixel … <trimmed 11777 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: Μετατροπή σχολής χορού σε γραφείο - εργαστήριο - ID341>, <Project: Ασπροκκλησιά - ID507>, <Project: Κατάστημα στο Κολωνάκι - ID513>, <Project: Τριώροφη μονοκατοικία στην Κηφισιά - ID171>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
node | <Block Node: content. Contents: [<TextNode: '\n\t\t<main class="site-main'>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f044dab6ca0>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f044dab61f0>, <TextNode: '\n'>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7f044dab6730>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f044dab6610>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f044dab64c0>, <TextNode: '\n<!DOCTYPE html>\n<html la'>, <Variable Node: LANGUAGE_CODE>, <TextNode: '" class="no-js">\n\t<head>\n'>, <IfNode>, <TextNode: '\n\n\n\t\t<meta charset="utf-8'>, <Block Node: title. Contents: [<TextNode: 'DOMa'>]>, <TextNode: '</title>\n\t\t<meta name="vi'>, <django.templatetags.static.StaticNode object at 0x7f044dea0dc0>, <TextNode: '" type="font/woff2" cross'>, <django.templatetags.static.StaticNode object at 0x7f044dea03a0>, <TextNode: '" type="font/woff2" cross'>, <django.templatetags.static.StaticNode object at 0x7f044dea0b80>, <TextNode: '" type="font/woff2" cross'>, <django.templatetags.static.StaticNode object at 0x7f044dea08b0>, <TextNode: '" type="font/woff2" cross'>, <Block Node: description. Contents: []>, <TextNode: '">\n\t\t<meta name="author" '>, <Variable Node: request.build_absolute_uri>, <TextNode: '">\n\t\t<meta property="og:i'>, <django.templatetags.static.StaticNode object at 0x7f044df9cbb0>, <TextNode: '">\n\n\t\t'>, <Block Node: css. Contents: [<TextNode: '\n\n\t\t<!-- Latest compiled '>, <compressor.templatetags.compress.CompressorNode object at 0x7f044e8ce2e0>, <TextNode: '\n\t\t'>]>, <TextNode: '\n\t\t<!-- Google Analytics:'>, <IfNode>, <TextNode: '\n\t</head>\n\n\t<body class="'>, <Block Node: bodyClass. Contents: []>, <IfNode>, <TextNode: '">\n\t\t<!-- Google Tag Mana'>, <django.template.library.InclusionNode object at 0x7f044df119a0>, <TextNode: '\n\t\t\t<header id="masthead"'>, <Block Node: headerClass. Contents: [<TextNode: 'site-header'>]>, <TextNode: '">\n\t\t\t\t<div class="header'>, <IfNode>, <TextNode: '" class="home-lnk">'>, <django.template.library.SimpleNode object at 0x7f044d999250>, <TextNode: '</a></div>\n\t\t\t\t\t\t<div cla'>, <IfNode>, <TextNode: '"><a href="/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f044d999070>, <TextNode: '</a></li>\n\t\t\t\t\t\t\t\t<li cla'>, <IfNode>, <TextNode: '"><a href="/en">'>, <django.templatetags.i18n.TranslateNode object at 0x7f044e1ca9d0>, <TextNode: '</a></li> -->\n\t\t\t\t\t\t\t\t<li'>, <IfNode>, <TextNode: '"><a href="'>, <IfNode>, <TextNode: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7f044dcc30d0>, <TextNode: '</a></li>\n\t\t\t\t\t\t\t\t<li cla'>, <IfNode>, <TextNode: '"><a href="'>, <IfNode>, <Variable Node: request.path>, <TextNode: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7f044ed9ffd0>, <TextNode: '</a></li>\n\t\t\t\t\t\t\t</ul>\n\t\t'>, <django.templatetags.i18n.TranslateNode object at 0x7f044ed9f340>, <TextNode: '</span><span class="cart-'>, <django.template.defaulttags.CommentNode object at 0x7f044d888ac0>, <TextNode: '\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t'>, <django.template.library.SimpleNode object at 0x7f044d6c58e0>, <TextNode: '</button>\n\t\t\t\t\t\t\t<button '>, <django.template.library.SimpleNode object at 0x7f044d6c54c0>, <TextNode: '</button>\n\t\t\t\t<ul class="'>, <IfNode>, <TextNode: '"><a href="'>, <IfNode>, <TextNode: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7f044d6c5a90>, <TextNode: '</a></li>\n\t\t\t\t\t<li class='>, <IfNode>, <TextNode: '"><a href="'>, <IfNode>, <Variable Node: request.path>, <TextNode: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7f044fba7d60>, <TextNode: '</a></li>\n\t\t\t\t</ul>\n\t\t\t\t<'>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f045716dd30>, <TextNode: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7f045716d700>, <TextNode: '</a></li>\n\t\t\t\t\t\t\t\t\t<li cl'>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at… <trimmed 13344 bytes string> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: ‘Euphoria Spa’, Οικισμός Μυστρά - ID529>, <Project: Παιδικός σταθμός στη Γλυφάδα - ID531>, <Project: Κατοικία στην Κέα - ID499>, <Project: ‘Inside out’ - Επανάχρηση πέτρινης κατοικίας - ID489>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
self | <Block Node: content. Contents: [<TextNode: '\n\t\t<main class="site-main'>]> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)…
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: '\n<main class="'>, <Block Node: mainClass. Contents: [<TextNode: 'site-main index-main'>]>, <TextNode: '" data-slug="'>, <Block Node: mainSlug. Contents: []>, <TextNode: '">\n\t<nav class="section-n'>, <Block Node: secondaryNavClass. Contents: []>, <TextNode: '">\n\t\t<button class="toggl'>, <django.templatetags.i18n.TranslateNode object at 0x7f044ec01ee0>, <Variable Node: transtext | stripaccents>, <django.template.library.SimpleNode object at 0x7f044e6f8d60>, <TextNode: '</span><span class="close'>, <django.templatetags.i18n.TranslateNode object at 0x7f044e6f80d0>, <Variable Node: transtext | stripaccents>, <django.template.library.SimpleNode object at 0x7f044e6f8610>, <TextNode: '</span></button>\n\t\t<div c'>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f044d60ac70>, <TextNode: '"><span class="lnk-title"'>, <django.templatetags.i18n.TranslateNode object at 0x7f044d60a070>, <Variable Node: transtext | stripaccents>, <TextNode: '</span><span class="lnk-t'>, <django.templatetags.i18n.TranslateNode object at 0x7f044d60a790>, <TextNode: '</span></a></li>\n\t\t\t\t\t\t<l'>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f044d60af70>, <TextNode: '"><span class="lnk-title"'>, <django.templatetags.i18n.TranslateNode object at 0x7f044d60a220>, <Variable Node: transtext | stripaccents>, <TextNode: '</span><span class="lnk-t'>, <django.templatetags.i18n.TranslateNode object at 0x7f044d60a490>, <TextNode: '</span></a></li>\n\t\t\t\t\t\t<l'>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f044dce2850>, <TextNode: '"><span class="lnk-title"'>, <django.templatetags.i18n.TranslateNode object at 0x7f044dce2ee0>, <Variable Node: transtext | stripaccents>, <TextNode: '</span><span class="lnk-t'>, <django.templatetags.i18n.TranslateNode object at 0x7f044dce2700>, <TextNode: '</span></a></li>\n\n\t\t\t\t\t\t'>, <django.template.defaulttags.CommentNode object at 0x7f044e673100>, <TextNode: '\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t'>, <Block Node: mainContent. Contents: []>, <TextNode: '\n\t<!--</div><!-- .index-w'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f044ea3af40> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: Εξοχική κατοικία στη Σαλαμίνα - ID491>, <Project: Hortus Conclusus’ - Κτήριο διοίκησης Αττικής - ID542>, <Project: ‘Inside out’ - Επανάχρηση πέτρινης κατοικίας - ID489>, <Project: Κατοικία στα Πετράλωνα - ID756>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
push | <Block Node: content. Contents: [<TextNode: '\n<main class="'>, <Block Node: mainClass. Contents: [<TextNode: 'site-main index-main'>]>, <TextNode: '" data-slug="'>, <Block Node: mainSlug. Contents: []>, <TextNode: '">\n\t<nav class="section-n'>, <Block Node: secondaryNavClass. Contents: []>, <TextNode: '">\n\t\t<button class="toggl'>, <django.templatetags.i18n.TranslateNode object at 0x7f044ec01ee0>, <Variable Node: transtext | stripaccents>, <django.template.library.SimpleNode object at 0x7f044e6f8d60>, <TextNode: '</span><span class="close'>, <django.templatetags.i18n.TranslateNode object at 0x7f044e6f80d0>, <Variable Node: transtext | stripaccents>, <django.template.library.SimpleNode object at 0x7f044e6f8610>, <TextNode: '</span></button>\n\t\t<div c'>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f044d60ac70>, <TextNode: '"><span class="lnk-title"'>, <django.templatetags.i18n.TranslateNode object at 0x7f044d60a070>, <Variable Node: transtext | stripaccents>, <TextNode: '</span><span class="lnk-t'>, <django.templatetags.i18n.TranslateNode object at 0x7f044d60a790>, <TextNode: '</span></a></li>\n\t\t\t\t\t\t<l'>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f044d60af70>, <TextNode: '"><span class="lnk-title"'>, <django.templatetags.i18n.TranslateNode object at 0x7f044d60a220>, <Variable Node: transtext | stripaccents>, <TextNode: '</span><span class="lnk-t'>, <django.templatetags.i18n.TranslateNode object at 0x7f044d60a490>, <TextNode: '</span></a></li>\n\t\t\t\t\t\t<l'>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f044dce2850>, <TextNode: '"><span class="lnk-title"'>, <django.templatetags.i18n.TranslateNode object at 0x7f044dce2ee0>, <Variable Node: transtext | stripaccents>, <TextNode: '</span><span class="lnk-t'>, <django.templatetags.i18n.TranslateNode object at 0x7f044dce2700>, <TextNode: '</span></a></li>\n\n\t\t\t\t\t\t'>, <django.template.defaulttags.CommentNode object at 0x7f044e673100>, <TextNode: '\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t'>, <Block Node: mainContent. Contents: []>, <TextNode: '\n\t<!--</div><!-- .index-w'>]> |
self | <Block Node: content. Contents: [<TextNode: '\n\t\t<main class="site-main'>]> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</nav>\n\t' |
bits | ['\n<main class="', 'site-main index-main projects stray-project-main', '" data-slug="', 'index-project', '">\n\t<nav class="section-nav secondary-nav ', '', '">\n' '\t\t<button class="toggle-secondary-nav-btn mobile-title"><span ' 'class="open-text">', '', 'Ανακαλυψτε', '<svg class="triangle-down-mobile-svg" width="10" height="6" viewBox="0 0 10 ' '6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L5 5L9 1" ' 'stroke="black"/></svg>\n', '</span><span class="close-text">', '', 'Κλεισιμο', '<svg class="close-menu-mobile-svg" width="9" height="9" viewBox="0 0 9 9" ' 'fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L8 8" ' 'stroke="black"/><path d="M1 8L8 1" stroke="black"/></svg>\n', '</span></button>\n' '\t\t<div class="secondary-menu-mobile-wrap">\n' '\t\t\t<div class="drawer-wrap drawer-wrap-mobile-down">\n' '\t\t\t\t<div class="drawer-inner">\n' '\t\t\t\t\t<ul class="secondary-menu">\n' '\t\t\t\t\t\t<li class="', '', '"><a href="', '/index/projects/', '"><span class="lnk-title">', '', 'Εργα', '</span><span class="lnk-title-mobile">', 'Έργα', '</span></a></li>\n\t\t\t\t\t\t<li class="', '', '"><a href="', '/index/architects/', '"><span class="lnk-title">', '', 'Αρχιτεκτονες', '</span><span class="lnk-title-mobile">', 'Αρχιτέκτονες', '</span></a></li>\n\t\t\t\t\t\t<li class="', '', '"><a href="', '/index/tributes/', '"><span class="lnk-title">', '', 'Αφιερωματα', '</span><span class="lnk-title-mobile">', 'Αφιερώματα', '</span></a></li>\n\n\t\t\t\t\t\t', '', '\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</nav>\n\t'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: Μνημείο Ολοκαυτώματος Atlantic City Boardwalk - ID479>, <Project: ‘Διπλή Καμπυλότητα’ - Κατοικία στο Ηράκλειο Κρήτης - ID510>, <Project: Μικρή παραθεριστική κατοικία, Λευκάδα - ID505>, <Project: ‘Inside out’ - Επανάχρηση πέτρινης κατοικίας - ID489>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
node | <Block Node: mainContent. Contents: []> |
self | [<TextNode: '\n<main class="'>, <Block Node: mainClass. Contents: [<TextNode: 'site-main index-main'>]>, <TextNode: '" data-slug="'>, <Block Node: mainSlug. Contents: []>, <TextNode: '">\n\t<nav class="section-n'>, <Block Node: secondaryNavClass. Contents: []>, <TextNode: '">\n\t\t<button class="toggl'>, <django.templatetags.i18n.TranslateNode object at 0x7f044ec01ee0>, <Variable Node: transtext | stripaccents>, <django.template.library.SimpleNode object at 0x7f044e6f8d60>, <TextNode: '</span><span class="close'>, <django.templatetags.i18n.TranslateNode object at 0x7f044e6f80d0>, <Variable Node: transtext | stripaccents>, <django.template.library.SimpleNode object at 0x7f044e6f8610>, <TextNode: '</span></button>\n\t\t<div c'>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f044d60ac70>, <TextNode: '"><span class="lnk-title"'>, <django.templatetags.i18n.TranslateNode object at 0x7f044d60a070>, <Variable Node: transtext | stripaccents>, <TextNode: '</span><span class="lnk-t'>, <django.templatetags.i18n.TranslateNode object at 0x7f044d60a790>, <TextNode: '</span></a></li>\n\t\t\t\t\t\t<l'>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f044d60af70>, <TextNode: '"><span class="lnk-title"'>, <django.templatetags.i18n.TranslateNode object at 0x7f044d60a220>, <Variable Node: transtext | stripaccents>, <TextNode: '</span><span class="lnk-t'>, <django.templatetags.i18n.TranslateNode object at 0x7f044d60a490>, <TextNode: '</span></a></li>\n\t\t\t\t\t\t<l'>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f044dce2850>, <TextNode: '"><span class="lnk-title"'>, <django.templatetags.i18n.TranslateNode object at 0x7f044dce2ee0>, <Variable Node: transtext | stripaccents>, <TextNode: '</span><span class="lnk-t'>, <django.templatetags.i18n.TranslateNode object at 0x7f044dce2700>, <TextNode: '</span></a></li>\n\n\t\t\t\t\t\t'>, <django.template.defaulttags.CommentNode object at 0x7f044e673100>, <TextNode: '\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t'>, <Block Node: mainContent. Contents: []>, <TextNode: '\n\t<!--</div><!-- .index-w'>] |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: ‘Les Lumières à la campagne’ - Μετατροπή μονοκατοικίας σε αρχιτεκτονικό γραφείο - ID537>, <Project: Αναψυκτήριο - Εστιατόριο στην παραλία Σχοινιά - ID335>, <Project: Πλατεία Κατράκη, κεντρική πλατεία Γλυφάδας - ID144>, <Project: Ιερός Ναός της Οσίας Ξένης και του Ξένου - ID481>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
self | <Block Node: mainContent. Contents: []> |
/home/sherlockth/.envs/doma_env/lib/python3.8/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: mainContent. Contents: [<TextNode: '\n<div class="main-wrap pr'>, <django.template.defaulttags.CommentNode object at 0x7f044e11fc40>, <TextNode: '\n\t\t\t<div class="right">\n\t'>, <Variable Node: project.name | stripaccents |safe>, <TextNode: '\n\t\t\t\t</h1>\n\t\t\t\t<div class'>, <Variable Node: project.title_architect>, <TextNode: '</div>\n\t\t\t</div>\n\t\t</div>'>, <django.template.library.InclusionNode object at 0x7f044e45d100>, <TextNode: '\n\t</section>\n\t<section cl'>, <django.templatetags.i18n.TranslateNode object at 0x7f044e16ff70>, <Variable Node: transtext>, <TextNode: '</h2>\n\t\t\t\t</header>\n\t\t\t\t<'>, <IfNode>, <Variable Node: transtext>, <TextNode: '</h5>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t'>, <ForNode: for category in project.categories.all, tail_len: 2>, <TextNode: '</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t</div><!-- .info-tab'>, <django.template.library.InclusionNode object at 0x7f044e61bd30>, <TextNode: '\n\n\t'>, <IfNode>, <TextNode: '\n\n\t'>, <IfNode>, <TextNode: '\n\n\t'>, <IfNode>, <TextNode: '\n\n\t'>, <IfNode>, <TextNode: '\n</div><!-- .project-wrap'>, <django.templatetags.i18n.TranslateNode object at 0x7f044ba06520>, <TextNode: '\n'>, <django.template.library.InclusionNode object at 0x7f044ba064f0>, <TextNode: '\n'>, <django.template.library.InclusionNode object at 0x7f044ba061c0>, <TextNode: '\n\n'>, <django.template.defaulttags.CommentNode object at 0x7f044ea3a130>, <TextNode: '\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f044ea3af40> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: Αποκατάσταση Αίθουσας Συναυλιών στο Ωδείο Αθηνών - ID549>, <Project: Θερινή κατοικία στον Άγιο Νικόλαο Χαλκιδικής - ID502>, <Project: Site-Specific Concept Space - ID515>, <Project: Μνημείο Ολοκαυτώματος Atlantic City Boardwalk - ID479>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
push | <Block Node: mainContent. Contents: [<TextNode: '\n<div class="main-wrap pr'>, <django.template.defaulttags.CommentNode object at 0x7f044e11fc40>, <TextNode: '\n\t\t\t<div class="right">\n\t'>, <Variable Node: project.name | stripaccents |safe>, <TextNode: '\n\t\t\t\t</h1>\n\t\t\t\t<div class'>, <Variable Node: project.title_architect>, <TextNode: '</div>\n\t\t\t</div>\n\t\t</div>'>, <django.template.library.InclusionNode object at 0x7f044e45d100>, <TextNode: '\n\t</section>\n\t<section cl'>, <django.templatetags.i18n.TranslateNode object at 0x7f044e16ff70>, <Variable Node: transtext>, <TextNode: '</h2>\n\t\t\t\t</header>\n\t\t\t\t<'>, <IfNode>, <Variable Node: transtext>, <TextNode: '</h5>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t'>, <ForNode: for category in project.categories.all, tail_len: 2>, <TextNode: '</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t</div><!-- .info-tab'>, <django.template.library.InclusionNode object at 0x7f044e61bd30>, <TextNode: '\n\n\t'>, <IfNode>, <TextNode: '\n\n\t'>, <IfNode>, <TextNode: '\n\n\t'>, <IfNode>, <TextNode: '\n\n\t'>, <IfNode>, <TextNode: '\n</div><!-- .project-wrap'>, <django.templatetags.i18n.TranslateNode object at 0x7f044ba06520>, <TextNode: '\n'>, <django.template.library.InclusionNode object at 0x7f044ba064f0>, <TextNode: '\n'>, <django.template.library.InclusionNode object at 0x7f044ba061c0>, <TextNode: '\n\n'>, <django.template.defaulttags.CommentNode object at 0x7f044ea3a130>, <TextNode: '\n'>]> |
self | <Block Node: mainContent. Contents: []> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('</div>\n' '\t\t\t</div>\n' '\t\t</div>\n' '\n' '\t</section>\n' '\t<section class="featured-image">\n' '\t\t') |
bits | ['\n' '<div class="main-wrap project-wrap index-project-wrap">\n' '\t<section class="intro">\n' '\t\t<div class="cnt intro-cnt">\n' '\t\t\t', '', '\n' '\t\t\t<div class="right">\n' '\t\t\t\t<h1 class="project-name title-1 upper">\n' '\t\t\t\t\t', 'Βιομηχανικο κτηριο στην Κηφισια', '\n\t\t\t\t</h1>\n\t\t\t\t<div class="project-architect">', 'Σοφία Τσιράκη, Αρχιτεκτονικό γραφείο Αναστάσιου Μπίρη και συνεργατών', '</div>\n' '\t\t\t</div>\n' '\t\t</div>\n' '\n' '\t</section>\n' '\t<section class="featured-image">\n' '\t\t'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: Spolia. Διαμόρφωση εξωτερικών χώρων του Ελληνικού Ιδρύματος Πολιτισμού - ID782>, <Project: Τριώροφη μονοκατοικία στην Κηφισιά - ID171>, <Project: Αρχαιολογικό Μουσείο της πόλης των Αθηνών στην Ακαδημία Πλάτωνος - ID787>, <Project: Μονόλιθοι στη Μάνη - ID781>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
node | <django.template.library.InclusionNode object at 0x7f044e45d100> |
self | [<TextNode: '\n<div class="main-wrap pr'>, <django.template.defaulttags.CommentNode object at 0x7f044e11fc40>, <TextNode: '\n\t\t\t<div class="right">\n\t'>, <Variable Node: project.name | stripaccents |safe>, <TextNode: '\n\t\t\t\t</h1>\n\t\t\t\t<div class'>, <Variable Node: project.title_architect>, <TextNode: '</div>\n\t\t\t</div>\n\t\t</div>'>, <django.template.library.InclusionNode object at 0x7f044e45d100>, <TextNode: '\n\t</section>\n\t<section cl'>, <django.templatetags.i18n.TranslateNode object at 0x7f044e16ff70>, <Variable Node: transtext>, <TextNode: '</h2>\n\t\t\t\t</header>\n\t\t\t\t<'>, <IfNode>, <Variable Node: transtext>, <TextNode: '</h5>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t'>, <ForNode: for category in project.categories.all, tail_len: 2>, <TextNode: '</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\n\t\t\t\t</div><!-- .info-tab'>, <django.template.library.InclusionNode object at 0x7f044e61bd30>, <TextNode: '\n\n\t'>, <IfNode>, <TextNode: '\n\n\t'>, <IfNode>, <TextNode: '\n\n\t'>, <IfNode>, <TextNode: '\n\n\t'>, <IfNode>, <TextNode: '\n</div><!-- .project-wrap'>, <django.templatetags.i18n.TranslateNode object at 0x7f044ba06520>, <TextNode: '\n'>, <django.template.library.InclusionNode object at 0x7f044ba064f0>, <TextNode: '\n'>, <django.template.library.InclusionNode object at 0x7f044ba061c0>, <TextNode: '\n\n'>, <django.template.defaulttags.CommentNode object at 0x7f044ea3a130>, <TextNode: '\n'>] |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: GENESIS. Παραλιακός πεζόδρομος στο Πόρτο - ID554>, <Project: Τοπόσημο Φαληρικού Όρμου - ID486>, <Project: ‘Les Lumières à la campagne’ - Μετατροπή μονοκατοικίας σε αρχιτεκτονικό γραφείο - ID537>, <Project: Μετατροπή βιομηχανικού ορόφου σε διαμέρισμα και φωτογραφικό εργαστήριο - ID516>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
self | <django.template.library.InclusionNode object at 0x7f044e45d100> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/template/library.py
in render
def render(self, context):
"""
Render the specified template and context. Cache the template object
in render_context to avoid reparsing and loading when used in a for
loop.
"""
resolved_args, resolved_kwargs = self.get_resolved_arguments(context)
_dict = self.func(*resolved_args, **resolved_kwargs)…
t = context.render_context.get(self)
if t is None:
if isinstance(self.filename, Template):
t = self.filename
elif isinstance(getattr(self.filename, 'template', None), Template):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'project': <Project: Βιομηχανικό κτήριο στην Κηφισιά - ID337>, 'view': <contests.views.AwardProjectDetailView object at 0x7f044d914df0>, 'next_project': <Project: Μικροβιολογικό Ιατρείο - ID338>, 'related': <MultilingualQuerySet [<Project: 'Μάινα' Αναστήλωση και προσθήκη σε πυργόσπιτο - ID395>, <Project: ‘Euphoria Spa’, Οικισμός Μυστρά - ID529>, <Project: Η διάλυση του ‘κουτιού’ - Πολυκατοικία στο Γκάζι - ID187>, <Project: ‘Το σπίτι της Παγώνας’ - ID498>]>, 'related_title': 'Βραβεία', 'related_url_base': 'award-project', 'landing_pages': <LandingPages: LandingPages object (1)>, 'LANGUAGE_CODE': 'el'}] |
resolved_args | ['', 'free', ''] |
resolved_kwargs | {'aspect': 'or', 'base64': '', 'img_size': 'large', 'subtitle': '', 'thumb': <StdImageFieldFile: projects/industrialKifisia_tsiraki_photos_01.jpg>, 'title': ''} |
self | <django.template.library.InclusionNode object at 0x7f044e45d100> |
/home/sherlockth/apps/doma/projects/templatetags/stripaccents.py
in show_thumbnail
ar = 'uw'
else:
ar = obj.thumb_aspect_ratio
if 'percAR' in kwargs:
percAR = kwargs['percAR']
elif thumb and hasattr(thumb, 'width'):…
percAR = str(round(clamp(100 * (thumb.height / thumb.width), 0, 100), 2)) + '%'
# if size == 'free':
# percAR = str(round(100 * thumb.height / thumb.width)) + '%'
# else:
Variable | Value |
---|---|
ar | 'or' |
args | () |
containerAR | None |
fixedHeight | False |
img_size | 'large' |
kwargs | {'aspect': 'or', 'base64': '', 'img_size': 'large', 'subtitle': '', 'thumb': <StdImageFieldFile: projects/industrialKifisia_tsiraki_photos_01.jpg>, 'title': ''} |
link | '' |
obj | '' |
obj_type | 'SafeText' |
percAR | None |
size | 'free' |
thumb | <StdImageFieldFile: projects/industrialKifisia_tsiraki_photos_01.jpg> |
thumbLnk | '' |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/core/files/images.py
in width
class ImageFile(File):
"""
A mixin for use alongside django.core.files.base.File, which provides
additional features for dealing with images.
"""
@property
def width(self):
return self._get_image_dimensions()[0]…
@property
def height(self):
return self._get_image_dimensions()[1]
def _get_image_dimensions(self):
Variable | Value |
---|---|
self | <StdImageFieldFile: projects/industrialKifisia_tsiraki_photos_01.jpg> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/core/files/images.py
in _get_image_dimensions
@property
def height(self):
return self._get_image_dimensions()[1]
def _get_image_dimensions(self):
if not hasattr(self, '_dimensions_cache'):
close = self.closed
self.open()…
self._dimensions_cache = get_image_dimensions(self, close=close)
return self._dimensions_cache
def get_image_dimensions(file_or_path, close=False):
"""
Variable | Value |
---|---|
close | True |
self | <StdImageFieldFile: projects/industrialKifisia_tsiraki_photos_01.jpg> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/db/models/fields/files.py
in open
if not self._committed:
return self.file.size
return self.storage.size(self.name)
def open(self, mode='rb'):
self._require_file()
if getattr(self, '_file', None) is None:
self.file = self.storage.open(self.name, mode)…
else:
self.file.open(mode)
return self
# open() doesn't alter the file's contents, but it does reset the pointer
open.alters_data = True
Variable | Value |
---|---|
mode | 'rb' |
self | <StdImageFieldFile: projects/industrialKifisia_tsiraki_photos_01.jpg> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/core/files/storage.py
in open
"""
# The following methods represent a public interface to private methods.
# These shouldn't be overridden by subclasses unless absolutely necessary.
def open(self, name, mode='rb'):
"""Retrieve the specified file from storage."""
return self._open(name, mode)…
def save(self, name, content, max_length=None):
"""
Save new content to the file specified by name. The content should be
a proper File object or any Python file-like object, ready to be read
from the beginning.
Variable | Value |
---|---|
mode | 'rb' |
name | 'projects/industrialKifisia_tsiraki_photos_01.jpg' |
self | <django.core.files.storage.FileSystemStorage object at 0x7f045011b880> |
/home/sherlockth/.envs/doma_env/lib/python3.8/site-packages/django/core/files/storage.py
in _open
return self._value_or_setting(self._file_permissions_mode, settings.FILE_UPLOAD_PERMISSIONS)
@cached_property
def directory_permissions_mode(self):
return self._value_or_setting(self._directory_permissions_mode, settings.FILE_UPLOAD_DIRECTORY_PERMISSIONS)
def _open(self, name, mode='rb'):
return File(open(self.path(name), mode))…
def _save(self, name, content):
full_path = self.path(name)
# Create any intermediate directories that do not exist.
directory = os.path.dirname(full_path)
Variable | Value |
---|---|
mode | 'rb' |
name | 'projects/industrialKifisia_tsiraki_photos_01.jpg' |
self | <django.core.files.storage.FileSystemStorage object at 0x7f045011b880> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_ACCEPT_ENCODING | 'gzip, br' |
HTTP_CDN_LOOP | 'cloudflare' |
HTTP_CF_CONNECTING_IP | '44.204.94.166' |
HTTP_CF_IPCOUNTRY | 'US' |
HTTP_CF_RAY | '86bc226e99085b4d-IAD' |
HTTP_CF_VISITOR | '{"scheme":"https"}' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'doma.archi' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '44.204.94.166, 172.70.34.203' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REAL_IP | '172.70.34.203' |
PATH_INFO | '/awards/projects/biomhxaniko-kthrio-sthn-khfisia' |
QUERY_STRING | '' |
RAW_URI | '/awards/projects/biomhxaniko-kthrio-sthn-khfisia' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'doma.archi' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.0.4' |
gunicorn.socket | <socket.socket fd=9, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/run/gunicorn.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f044eb3f610> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f044eb3f700> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
config.settings.production-local
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_ADAPTER | 'doma.users.adapters.AccountAdapter' |
ACCOUNT_ALLOW_REGISTRATION | True |
ACCOUNT_AUTHENTICATION_METHOD | 'username' |
ACCOUNT_EMAIL_REQUIRED | True |
ADMINS | [('sherlockth', '[email protected]')] |
ADMIN_NOTE_TYPES | (('pr', 'Private'), ('cu', 'To Customer')) |
ADMIN_URL | 'admin/' |
ALLOWED_HOSTS | ['localhost', '0.0.0.0', '127.0.0.1', '134.122.72.249', 'staging.doma.archi', 'doma.archi', 'www.doma.archi'] |
APPEND_SLASH | True |
APPS_DIR | <Path:/home/sherlockth/apps/doma/doma> |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'users.User' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION': ''}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CAT1 | 'pr' |
CAT2 | 'co' |
CAT3 | 'st' |
CAT4 | 'or' |
CELERY_ACCEPT_CONTENT | ['json'] |
CELERY_BEAT_SCHEDULER | 'django_celery_beat.schedulers:DatabaseScheduler' |
CELERY_BROKER_URL | 'pyamqp://guest@localhost//' |
CELERY_RESULT_BACKEND | 'pyamqp://guest@localhost//' |
CELERY_RESULT_SERIALIZER | 'json' |
CELERY_TASK_ALWAYS_EAGER | False |
CELERY_TASK_EAGER_PROPAGATES | True |
CELERY_TASK_SERIALIZER | 'json' |
CELERY_TASK_SOFT_TIME_LIMIT | 60 |
CELERY_TASK_TIME_LIMIT | 300 |
CELERY_TIMEZONE | 'Europe/Athens' |
CKEDITOR_CONFIGS | {'default': {'extraPlugins': 'uploadimage,div,autolink,autoembed,embedsemantic,autogrow,widget,lineutils,clipboard,dialog,dialogui,elementspath', 'tabSpaces': 4, 'toolbar': 'YourCustomToolbarConfig', 'toolbar_Basic': [['Source', '-', 'Bold', 'Italic']], 'toolbar_YourCustomToolbarConfig': [{'items': ['Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates'], 'name': 'document'}, {'items': ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'], 'name': 'clipboard'}, {'items': ['Find', 'Replace', '-', 'SelectAll'], 'name': 'editing'}, {'items': ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'], 'name': 'forms'}, '/', {'items': ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'], 'name': 'basicstyles'}, {'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language'], 'name': 'paragraph'}, {'items': ['Link', 'Unlink', 'Anchor'], 'name': 'links'}, {'items': ['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'], 'name': 'insert'}, '/', {'items': ['Styles', 'Format', 'Font', 'FontSize'], 'name': 'styles'}, {'items': ['TextColor', 'BGColor'], 'name': 'colors'}, {'items': ['Maximize', 'ShowBlocks'], 'name': 'tools'}, {'items': ['About'], 'name': 'about'}, '/', {'items': ['Preview', 'Maximize'], 'name': 'yourcustomtools'}]}} |
COMPRESSORS | {'css': 'compressor.css.CssCompressor', 'js': 'compressor.js.JsCompressor'} |
COMPRESS_CACHEABLE_PRECOMPILERS | () |
COMPRESS_CACHE_BACKEND | 'default' |
COMPRESS_CACHE_KEY_FUNCTION | '********************' |
COMPRESS_CLEAN_CSS_ARGUMENTS | '' |
COMPRESS_CLEAN_CSS_BINARY | 'cleancss' |
COMPRESS_CLOSURE_COMPILER_ARGUMENTS | '' |
COMPRESS_CLOSURE_COMPILER_BINARY | 'java -jar compiler.jar' |
COMPRESS_CSS_HASHING_METHOD | 'mtime' |
COMPRESS_DATA_URI_MAX_SIZE | 1024 |
COMPRESS_DEBUG_TOGGLE | None |
COMPRESS_ENABLED | False |
COMPRESS_FILTERS | {'css': ['compressor.filters.css_default.CssAbsoluteFilter'], 'js': ['compressor.filters.jsmin.JSMinFilter']} |
COMPRESS_JINJA2_GET_ENVIRONMENT | <function CompressorConf.JINJA2_GET_ENVIRONMENT at 0x7f0450cf05e0> |
COMPRESS_MINT_DELAY | 30 |
COMPRESS_MTIME_DELAY | 10 |
COMPRESS_OFFLINE | False |
COMPRESS_OFFLINE_CONTEXT | {'STATIC_URL': '/static/'} |
COMPRESS_OFFLINE_MANIFEST | 'manifest.json' |
COMPRESS_OFFLINE_TIMEOUT | 31536000 |
COMPRESS_OUTPUT_DIR | 'CACHE' |
COMPRESS_PARSER | 'compressor.parser.AutoSelectParser' |
COMPRESS_PRECOMPILERS | () |
COMPRESS_REBUILD_TIMEOUT | 2592000 |
COMPRESS_ROOT | '/home/sherlockth/apps/doma/staticfiles' |
COMPRESS_STORAGE | 'compressor.storage.CompressorFileStorage' |
COMPRESS_TEMPLATE_FILTER_CONTEXT | {'STATIC_URL': '/static/'} |
COMPRESS_URL | '/static/' |
COMPRESS_URL_PLACEHOLDER | '/__compressor_url_placeholder__/' |
COMPRESS_VERBOSE | False |
COMPRESS_YUGLIFY_BINARY | 'yuglify' |
COMPRESS_YUGLIFY_CSS_ARGUMENTS | '--terminal' |
COMPRESS_YUGLIFY_JS_ARGUMENTS | '--terminal' |
COMPRESS_YUI_BINARY | 'java -jar yuicompressor.jar' |
COMPRESS_YUI_CSS_ARGUMENTS | '' |
COMPRESS_YUI_JS_ARGUMENTS | '' |
COUNTRY_LIST | (('oo', 'Επιλεξτε Χωρα'), ('GR', 'Greece'), ('LC', 'Saint Lucia'), ('VC', 'Saint Vincent & The Grenadines'), ('DM', 'Saint Dominique'), ('SM', 'San Marino'), ('PM', 'Saint Peters & MigueLlon'), ('KN', 'Saint Christopher & Nevis'), ('AZ', 'Azerbaijan'), ('PT', 'Azores'), ('EG', 'Egypt'), ('ET', 'Ethiopia'), ('HT', 'Haiti'), ('CI', 'Ivory Coast'), ('AL', 'Albania'), ('DZ', 'Algeria'), ('AD', 'Andorra'), ('AG', 'Antigua & Barbuda'), ('AR', 'Argentina'), ('AM', 'Armenia'), ('AW', 'Aruba'), ('AU', 'Australia'), ('AT', 'Austria'), ('WF', 'Suitcase & Futuna'), ('VU', 'Vanuatu'), ('VA', 'Vatican'), ('BE', 'Belgium'), ('BM', 'Bermuda'), ('VN', 'Vietnam'), ('BO', 'Bolivia'), ('MK', 'North Macedonia'), ('MP', 'Northern Maria Islands'), ('BA', 'Bosnia and Herzegovina'), ('BG', 'Bulgaria'), ('BR', 'Brazil'), ('VG', 'British Virgin Islands'), ('IO', 'British Indian Ocean Territory'), ('FR', 'France'), ('GF', 'French Guiana'), ('PF', 'French Polynesia'), ('DE', 'Germany'), ('AQ', 'Agriculture'), ('GI', 'Gibraltar'), ('GM', 'Gambia'), ('GA', 'Gabon'), ('GH', 'Ghana'), ('GP', 'Guadeloupe'), ('GY', 'Guyana'), ('GN', 'Guinea'), ('GQ', 'Guinea Equatorial'), ('GD', 'Grenada'), ('GL', 'Greenland'), ('DK', 'Denmark'), ('DO', 'Dominican'), ('CH', 'Switzerland'), ('ER', 'Eritrea'), ('EE', 'Estonia'), ('AE', 'United Arab Emirates'), ('US', 'USA'), ('GB', 'United Kingdom'), ('JP', 'Japan'), ('IN', 'India'), ('ID', 'Indonesia'), ('JO', 'Jordan'), ('IQ', 'Iraq'), ('IR', 'Iran'), ('IE', 'Ireland'), ('IS', 'Iceland'), ('ES', 'Spain'), ('IL', 'Israel'), ('IT', 'Italy'), ('KZ', 'Kazakhstan'), ('CA', 'Canada'), ('QA', 'Qatar'), ('UM', 'There Were Islands'), ('CF', 'Central Africa'), ('KE', 'Kenya'), ('CN', 'China'), ('KG', 'Kyrgyzstan'), ('CD', 'Congo (Kinsassa)'), ('CG', 'Congo (Brazzaville)'), ('CO', 'Colombia'), ('KM', 'Comoros'), ('KR', 'South Korea'), ('XK', 'Kosovo'), ('CU', 'Cuba'), ('KW', 'Kuwait'), ('CW', 'Curaçao (Netherlands Antilles)'), ('HR', 'Croatian'), ('CY', 'Cyprus'), ('LV', 'Latvia'), ('LB', 'Lebanon'), ('LR', 'Liberia'), ('LY', 'Libya'), ('LT', 'Lithuania'), ('LI', 'Liechtenstein'), ('LU', 'Luxembourg'), ('MG', 'Madagascar'), ('MY', 'Malaysia'), ('ML', 'Mali'), ('MT', 'Malta'), ('MA', 'Morocco'), ('MQ', 'Martinique'), ('MR', 'Mauritania'), ('ME', 'Montenegro'), ('MX', 'Mexico'), ('MZ', 'Mozambique'), ('MD', 'Moldova'), ('MC', 'Monaco'), ('BD', 'Bangladesh'), ('BB', 'Barbados'), ('BS', 'Bahamas'), ('BH', 'Bahrain'), ('BJ', 'Benin'), ('BF', 'Burgina Faso'), ('BI', 'Burundi'), ('BV', "It's Brushing"), ('NR', 'Nauru'), ('NZ', 'New Zealand'), ('NC', 'New Caledonia'), ('GU', 'Island of Guam'), ('GG', 'Guernsey Islands'), ('CC', 'Cocos (Keeling) Islands'), ('CK', 'Cook Islands'), ('GS', 'South Georgia and South Sandwich Islands'), ('SB', 'Solomon Islands'), ('IM', 'Isle of Man'), ('CX', 'Christmas Island'), ('NE', 'Niger'), ('NG', 'Nigeria'), ('NU', 'Niue'), ('NO', 'Norway'), ('ZA', 'South Africa'), ('NL', 'Netherlands'), ('OM', 'Oman'), ('HU', 'Hungary'), ('UG', 'Uganda'), ('UZ', 'Uzbekistan'), ('UA', 'Ukraine'), ('UY', 'Uruguay'), ('PK', 'Pakistan'), ('PS', 'Palestine'), ('PW', 'Palau'), ('PG', 'Papua and S. Guinea'), ('PY', 'Paraguay'), ('VI', 'Virgin Islands (US)'), ('PE', 'Peru'), ('PN', 'Pitcairn'), ('PL', 'Poland'), ('PT', 'Portugal'), ('PR', 'Puerto Rico'), ('RE', 'Reunion'), ('RO', 'Romania'), ('WS', 'Samoa'), ('AS', 'American Samoa'), ('SM', 'San Marino'), ('SA', 'Saudi Arabia'), ('SN', 'Senegal'), ('RS', 'Serbia'), ('SG', 'Singapore'), ('SL', 'Sierra Leone'), ('SK', 'Slovakia'), ('SI', 'Slovenia'), ('SE', 'Sweden'), ('SR', 'Surinam'), ('LK', 'Sri Lanka'), ('TW', 'Taiwan'), ('TZ', 'Tanzania'), ('TH', 'Thailand'), ('JM', 'Jamaica'), ('JE', 'Jersey'), ('DJ', 'Djibouti'), ('TG', 'Togo'), ('TK', 'Tokelau'), ('TO', 'Tonga'), ('TC', 'Turks & Caycos'), ('TR', 'Turkey'), ('TT', 'Trinidad & Tobago'), ('TD', 'Chad'), ('CZ', 'Czech Republic'), ('TN', 'Tunisia'), ('FO', 'Feroe Islands'), ('PH', 'Philippines'), ('FI', 'Finland'), ('FJ', 'Fiji'), ('FK', 'Falklands'), ('CL', 'Chile'), ('HK', 'Hong Kong')) |
CRISPY_TEMPLATE_PACK | 'bootstrap4' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
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 |
CUSTOMER_TYPES | (('gu', 'guest'), ('re', 'registered')) |
DATABASES | {'default': {'ATOMIC_REQUESTS': True, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': 'localhost', 'NAME': 'doma_db', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': 5432, 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'doma_db_user'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 10000 |
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 |
DEBUG_TOOLBAR_CONFIG | {'DISABLE_PANELS': ['debug_toolbar.panels.redirects.RedirectsPanel'], 'SHOW_TEMPLATE_CONTEXT': True} |
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 | [] |
DJANGO_APPS | ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'modeltranslation', 'django.contrib.admin', 'django.forms'] |
DOMES_THUMBS_AWARDS_ID | 132 |
DOMES_THUMBS_ISSUE_ID | 130 |
EMAIL_BACKEND | 'sendgrid_backend.SendgridBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 1025 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | 5 |
EMAIL_USE_LOCALTIME | False |
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 | ('/home/sherlockth/apps/doma/doma/fixtures',) |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.TemplatesSetting' |
FROALA_JS_COOKIE | True |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['whitenoise.runserver_nostatic', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'modeltranslation', 'django.contrib.admin', 'django.forms', 'crispy_forms', 'allauth', 'allauth.account', 'allauth.socialaccount', 'rest_framework', 'django_celery_beat', 'stdimage', 'ckeditor', 'svg', 'doma.users', 'projects', 'gallery', 'contributors', 'articles', 'publications', 'contests', 'events', 'control_center', 'shop', 'newsletters', 'education', 'compressor', 'debug_toolbar', 'django_extensions'] |
INTERNAL_IPS | ['127.0.0.1', '10.0.2.2'] |
LANGUAGES | (('el', 'Greek'), ('en', 'English')) |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'el' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [<Path:/home/sherlockth/apps/doma/locale>] |
LOCAL_APPS | ['doma.users', 'projects', 'gallery', 'contributors', 'articles', 'publications', 'contests', 'events', 'control_center', 'shop', 'newsletters', 'education'] |
LOGGING | {'disable_existing_loggers': False, 'formatters': {'verbose': {'format': '%(levelname)s %(asctime)s %(module)s ' '%(process)d %(thread)d %(message)s'}}, 'handlers': {'console': {'class': 'logging.StreamHandler', 'formatter': 'verbose', 'level': 'DEBUG'}}, 'root': {'handlers': ['console'], 'level': 'INFO'}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | 'users:redirect' |
LOGIN_URL | 'account_login' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [('sherlockth', '[email protected]')] |
MEDIA_CSS_SCRIPTS | {'screen': ('modeltranslation/css/tabbed_translation_fields.css',)} |
MEDIA_JS_SCRIPTS | ('js/js.cookie.js', 'https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js', 'modeltranslation/js/tabbed_translation_fields.js') |
MEDIA_ROOT | '/home/sherlockth/apps/doma/doma/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.common.BrokenLinkEmailsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware'] |
MIGRATION_MODULES | {'sites': 'doma.contrib.sites.migrations'} |
MODELTRANSLATION_CUSTOM_FIELDS | ('FroalaField',) |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
ORDER_STATUS_TYPES | (('oh', 'On Hold'), ('pr', 'Processing'), ('co', 'Completed'), ('ca', 'Canceled'), ('re', 'Refunded'), ('fa', 'Failed'), ('rs', 'Reset')) |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PAYMENT_METHOD_TYPES | (('st', 'Credit Card (Stripe)'), ('pa', 'Paypal'), ('bd', 'Bank Deposit')) |
POSTS_PAGE_SIZE | 40 |
PREPEND_WWW | False |
PROJECTS_PAGE_SIZE | 60 |
PUBLICATIONS_PAGE_SIZE | 40 |
READ_DOT_ENV_FILE | True |
REST_FRAMEWORK | {'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.TokenAuthentication'), 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',)} |
ROOT_DIR | <Path:/home/sherlockth/apps/doma> |
ROOT_URLCONF | 'config.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | True |
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 |
SENDGRID_API_KEY | '********************' |
SENDGRID_SANDBOX_MODE_IN_DEBUG | 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_SAMESITE | 'Lax' |
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 | 'config.settings.production-local' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
SOCIALACCOUNT_ADAPTER | 'doma.users.adapters.SocialAccountAdapter' |
STATICFILES_DIRS | ['/home/sherlockth/apps/doma/doma/static'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'compressor.finders.CompressorFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/sherlockth/apps/doma/staticfiles' |
STATIC_URL | '/static/' |
STD_IMAGE_VARIATIONS | {'large': (2000, 2000), 'medium': (1024, 1024), 'medium_large': (1440, 1440), 'thumbnail': (600, 600)} |
TEMPLATES | [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/sherlockth/apps/doma/doma/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'doma.utils.context_processors.settings_context'], 'loaders': ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THIRD_PARTY_APPS | ['crispy_forms', 'allauth', 'allauth.account', 'allauth.socialaccount', 'rest_framework', 'django_celery_beat', 'stdimage', 'ckeditor', 'svg'] |
THOUSAND_SEPARATOR | ',' |
THUMB_ASPECT_CHOICES | (('or', 'original'), ('sq', '1/1'), ('tv', '3/4'), ('wd', '2/3')) |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Europe/Athens' |
TRIBUTES_PAGE_SIZE | 6 |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
VIDEOS_PAGE_SIZE | 6 |
WSGI_APPLICATION | 'config.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
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.