Invalid block tag on line 9: 'flatblock', expected 'elif', 'else' or 'endif'. Did you forget to register or load this tag?
Request Method: | GET |
---|---|
Request URL: | https://www.vectorex.co.uk/gallery/picture/anwyl-2/ |
Django Version: | 4.2 |
Exception Type: | TemplateSyntaxError |
Exception Value: | Invalid block tag on line 9: 'flatblock', expected 'elif', 'else' or 'endif'. Did you forget to register or load this tag? |
Exception Location: | /var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py, line 558, in invalid_block_tag |
Raised during: | worldspan_apps.gallery.views.picture_detail |
Python Executable: | /var/www/wsdjango/vectorex/venv/bin/python3 |
Python Version: | 3.10.12 |
Python Path: | ['/var/www/wsdjango/vectorex', '/var/www/wsdjango/vectorex/venv/bin', '/var/www/wsdjango/vectorex/lib', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages'] |
Server time: | Fri, 29 Mar 2024 01:05:32 +0000 |
In template /var/www/wsdjango/vectorex/templates/includes/testimonials.html
, error at line 9
1 | {% load flatblock_tags testimonial_tags %} |
---|---|
2 | |
3 | {% get_testimonials as testimonials %} |
4 | {% if testimonials %} |
5 | <div class="testimonials"> |
6 | <div class="statement col-sm-12 col-md-4"> |
7 | <div class="text"> |
8 | <h3>Testimonials</h3> |
9 | {% flatblock 'testimonials' %} |
10 | </div> |
11 | </div> |
12 | <div id="tmlist" class="col-sm-12 col-md-6"> |
13 | <div class="outer-quotes"> |
14 | <div class="quotes"> |
15 | {% for testimonial in testimonials %} |
16 | <div class="quote"> |
17 | <p> |
18 | {{ testimonial.content|slice:'0:170' }}.. |
19 | <a href="{% url 'testimonials' %}"> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 505, in parse
# Add the token to the command stack. This is used for error
# messages if further parsing fails due to an unclosed block
# tag.
self.command_stack.append((command, token))
# Get the tag callback function from the ones registered with
# the parser.
try:
compile_func = self.tags[command]…
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
Variable | Value |
---|---|
command | 'flatblock' |
nodelist | [<TextNode: '\n <div class="testimon'>] |
parse_until | ('elif', 'else', 'endif') |
self | <Parser tokens=[<Text token: "...">, <Block token: "endif...">, <Text token: " </d...">, <Block token: "endfor...">, <Text token: "</h4> ...">, <Var token: "testimonial.company...">, <Text token: "</p> ...">, <Var token: "testimonial.role...">, <Text token: "</h4> ...">, <Var token: "testimonial.name...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" style="width: 40px...">, <Var token: "testimonial.logo.url...">, <Text token: " ...">, <Block token: "if testimonial.logo...">, <Text token: ""> ...">, <Block token: "url 'testimonials'...">, <Text token: ".. ...">, <Var token: "testimonial.content|...">, <Text token: " ...">, <Block token: "for testimonial in t...">, <Text token: " </div>...">]> |
token | <Block token: "flatblock 'testimoni..."> |
token_type | 2 |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/core/handlers/exception.py
, line 55, in inner
return inner
else:
@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 | TemplateSyntaxError("Invalid block tag on line 9: 'flatblock', expected 'elif', 'else' or 'endif'. Did you forget to register or load this tag?") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7ff25d443190>> |
request | <WSGIRequest: GET '/gallery/picture/anwyl-2/'> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/core/handlers/base.py
, line 197, in _get_response
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function picture_detail at 0x7ff25d4b97e0> |
callback_args | () |
callback_kwargs | {'slug': 'anwyl-2'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>> |
request | <WSGIRequest: GET '/gallery/picture/anwyl-2/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7ff25d443190> |
wrapped_callback | <function picture_detail at 0x7ff25d4b97e0> |
/var/www/wsdjango/vectorex/worldspan_apps/gallery/views.py
, line 12, in picture_detail
from . import models as gallery_models
def picture_detail(request: http.HttpRequest, slug: str) -> http.HttpResponse:
picture = gallery_models.Picture.for_slug(slug)
if picture is None:
raise http.Http404
return shortcuts.render(request, 'gallery/picture.html', {…
'picture': picture,
'is_random': False
})
def picture_detail_html(request: http.HttpRequest, slug: str) -> http.HttpResponse:
Variable | Value |
---|---|
picture | <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales> |
request | <WSGIRequest: GET '/gallery/picture/anwyl-2/'> |
slug | 'anwyl-2' |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/shortcuts.py
, line 24, in render
def render(
request, template_name, context=None, content_type=None, status=None, using=None
):
"""
Return an 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, permanent=False, **kwargs):
"""
Return an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'is_random': False, 'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>} |
request | <WSGIRequest: GET '/gallery/picture/anwyl-2/'> |
status | None |
template_name | 'gallery/picture.html' |
using | None |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/loader.py
, line 62, 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 | {'is_random': False, 'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>} |
request | <WSGIRequest: GET '/gallery/picture/anwyl-2/'> |
template | <django.template.backends.django.Template object at 0x7ff256e108e0> |
template_name | 'gallery/picture.html' |
using | None |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/backends/django.py
, line 61, in render
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}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
request | <WSGIRequest: GET '/gallery/picture/anwyl-2/'> |
self | <django.template.backends.django.Template object at 0x7ff256e108e0> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 175, 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}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
self | <Template template_string="{% extends 'base.htm..."> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 167, in _render
def __repr__(self):
return '<%s template_string="%s...">' % (
self.__class__.__qualname__,
self.source[:20].replace("\n", ""),
)
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
self | <Template template_string="{% extends 'base.htm..."> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
self | [<ExtendsNode: extends 'base.html'>] |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7ff2573874f0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
node | <ExtendsNode: extends 'base.html'> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
self | <ExtendsNode: extends 'base.html'> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/loader_tags.py
, line 157, in render
}
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__(
Variable | Value |
---|---|
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'meta_title': [<Block Node: meta_title. Contents: []>, <Block Node: meta_title. Contents: [<Variable Node: picture.title>]>], 'meta_description': [<Block Node: meta_description. Contents: []>, <Block Node: meta_description. Contents: [<Variable Node: picture.caption>]>], 'canonical_link': [<Block Node: canonical_link. Contents: []>, <Block Node: canonical_link. Contents: [<Variable Node: picture.get_absolute_url>]>], 'og_url': [<Block Node: og_url. Contents: []>, <Block Node: og_url. Contents: [<Variable Node: picture.get_absolute_url>]>], 'open_graph': [<Block Node: open_graph. Contents: [<TextNode: '\n<meta property="og:type"'>, <Variable Node: picture.title>, <TextNode: '">\n<meta property="og:des'>, <Variable Node: picture.caption>, <TextNode: '">\n<meta property="og:upd'>, <Variable Node: picture.date_modified|date:'c'>, <TextNode: '">\n<meta property="og:ima'>, <Variable Node: SITE_URL>, <TextNode: '/'>, <Variable Node: picture.image.url>, <TextNode: '">\n\n'>]>], 'carousel': [<Block Node: carousel. Contents: [<TextNode: '\n '>]>, <Block Node: carousel. Contents: [<TextNode: '\n\n'>]>], 'content': [<Block Node: content. Contents: [<TextNode: '\n '>]>, <Block Node: content. Contents: [<TextNode: '\n <h1>'>, <Variable Node: picture.title>, <TextNode: '</h1>\n <div class="thu'>, <Variable Node: picture|cropped_image_url:'display'>, <TextNode: '" alt="'>, <Variable Node: picture.title>, <TextNode: '"/>\n </div>\n <p><a '>, <IfNode>, <TextNode: '\n'>]>], 'meta_tags': [<Block Node: meta_tags. Contents: [<TextNode: '\n '>]>], 'pagepiling': [], 'menu': [<Block Node: menu. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/menucontainer.html'">>, <TextNode: '\n '>]>], 'top_header': [<Block Node: top_header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>], 'drone': [<Block Node: drone. Contents: [<TextNode: '\n '>]>], 'header': [<Block Node: header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>], 'featured': [<Block Node: featured. Contents: [<TextNode: '\n '>]>], 'testimonials': [], 'news_feature': [<Block Node: news_feature. Contents: [<TextNode: '\n '>]>], 'contact': [<Block Node: contact. Contents: [<TextNode: '\n '>]>], 'footer': [<Block Node: footer. Contents: [<TextNode: '\n '>]>], 'additional_scripts': [<Block Node: additional_scripts. Contents: []>], 'google_analytics': [<Block Node: google_analytics. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>]})> |
blocks | {'additional_scripts': <Block Node: additional_scripts. Contents: []>, 'canonical_link': <Block Node: canonical_link. Contents: []>, 'carousel': <Block Node: carousel. Contents: [<TextNode: '\n '>]>, 'contact': <Block Node: contact. Contents: [<TextNode: '\n '>]>, 'content': <Block Node: content. Contents: [<TextNode: '\n '>]>, 'drone': <Block Node: drone. Contents: [<TextNode: '\n '>]>, 'featured': <Block Node: featured. Contents: [<TextNode: '\n '>]>, 'footer': <Block Node: footer. Contents: [<TextNode: '\n '>]>, 'google_analytics': <Block Node: google_analytics. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>, 'header': <Block Node: header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, 'menu': <Block Node: menu. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/menucontainer.html'">>, <TextNode: '\n '>]>, 'meta_description': <Block Node: meta_description. Contents: []>, 'meta_tags': <Block Node: meta_tags. Contents: [<TextNode: '\n '>]>, 'meta_title': <Block Node: meta_title. Contents: []>, 'news_feature': <Block Node: news_feature. Contents: [<TextNode: '\n '>]>, 'og_url': <Block Node: og_url. Contents: []>, 'pagepiling': <Block Node: pagepiling. Contents: [<TextNode: '\n <div id="pagepil'>, <Block Node: menu. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/menucontainer.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n <div id="se'>, <Block Node: top_header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: drone. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>, <Block Node: header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: carousel. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: featured. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: testimonials. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: news_feature. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n <div cl'>, <Block Node: contact. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: footer. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>]>, 'testimonials': <Block Node: testimonials. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">>, <TextNode: '\n '>]>, 'top_header': <Block Node: top_header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>} |
compiled_parent | <Template template_string="<!DOCTYPE html>{% l..."> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
node | <django.template.defaulttags.LoadNode object at 0x7ff25c1f2f80> |
self | <ExtendsNode: extends 'base.html'> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 167, in _render
def __repr__(self):
return '<%s template_string="%s...">' % (
self.__class__.__qualname__,
self.source[:20].replace("\n", ""),
)
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
self | <Template template_string="<!DOCTYPE html>{% l..."> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
self | [<TextNode: '<!DOCTYPE html>\n'>, <django.template.defaulttags.LoadNode object at 0x7ff25c1f2f80>, <TextNode: '\n<html lang="'>, <Variable Node: LANGUAGE_CODE>, <TextNode: '" prefix="og: http://ogp.'>, <Block Node: meta_title. Contents: []>, <TextNode: ' | Vectorex</title>\n '>, <Block Node: meta_description. Contents: []>, <TextNode: '">\n <meta name="vi'>, <Block Node: meta_tags. Contents: [<TextNode: '\n '>]>, <TextNode: '\n <link rel="icon"'>, StaticNode(varname=None, path=<FilterExpression "'img/fav.png'">), <TextNode: '"/>\n <link rel="st'>, <Variable Node: MEDIA_SHARED>, <TextNode: 'css/slick.css">\n <'>, <Variable Node: MEDIA_SHARED>, <TextNode: 'css/slick-theme.css">\n '>, StaticNode(varname=None, path=<FilterExpression "'css/styles.css'">), <TextNode: '">\n <link rel="sty'>, StaticNode(varname=None, path=<FilterExpression "'css/bootstrap.min.css'">), <TextNode: '">\n <link rel="sty'>, StaticNode(varname=None, path=<FilterExpression "'lightbox/src/css/lightbox.css'">), <TextNode: '">\n <link rel="can'>, <Variable Node: SITE_URL>, <Block Node: canonical_link. Contents: []>, <TextNode: '">\n <link rel="can'>, StaticNode(varname=None, path=<FilterExpression "'css/jquery.pagepiling.css'">), <TextNode: '">\n <meta property'>, <Variable Node: LANGUAGE_CODE>, <TextNode: '">\n <meta property'>, <Variable Node: SITE_URL>, <Block Node: og_url. Contents: []>, <TextNode: '">\n <meta property'>, <Variable Node: SITE_NAME>, <TextNode: '">\n </head>\n <body>'>, <Block Node: pagepiling. Contents: [<TextNode: '\n <div id="pagepil'>, <Block Node: menu. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/menucontainer.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n <div id="se'>, <Block Node: top_header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: drone. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>, <Block Node: header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: carousel. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: featured. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: testimonials. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: news_feature. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n <div cl'>, <Block Node: contact. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: footer. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>]>, <TextNode: '\n\n <script type="t'>, StaticNode(varname=None, path=<FilterExpression "'js/bootstrap.min.js'">), <TextNode: '"></script>\n <scri'>, StaticNode(varname=None, path=<FilterExpression "'js/vectorex.js'">), <TextNode: '"></script>\n <scri'>, StaticNode(varname=None, path=<FilterExpression "'js/barba.min.js'">), <TextNode: '"></script>\n <scri'>, StaticNode(varname=None, path=<FilterExpression "'js/slick.min.js'">), <TextNode: '"></script>\n <scri'>, StaticNode(varname=None, path=<FilterExpression "'js/jquery.pagepiling.min.js'">), <TextNode: '"></script>\n <scri'>, StaticNode(varname=None, path=<FilterExpression "'lightbox/src/js/lightbox.js'">), <TextNode: '"></script>\n <scri'>, <Block Node: addition… <trimmed 4305 bytes string> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7ff256f98e80> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
node | <Block Node: pagepiling. Contents: [<TextNode: '\n <div id="pagepil'>, <Block Node: menu. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/menucontainer.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n <div id="se'>, <Block Node: top_header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: drone. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>, <Block Node: header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: carousel. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: featured. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: testimonials. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: news_feature. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n <div cl'>, <Block Node: contact. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: footer. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>]> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
self | <Block Node: pagepiling. Contents: [<TextNode: '\n <div id="pagepil'>, <Block Node: menu. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/menucontainer.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n <div id="se'>, <Block Node: top_header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: drone. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>, <Block Node: header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: carousel. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: featured. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: testimonials. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: news_feature. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n <div cl'>, <Block Node: contact. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: footer. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>]> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/loader_tags.py
, line 63, 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: pagepiling. Contents: [<TextNode: '\n <div id="pagepil'>, <Block Node: menu. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/menucontainer.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n <div id="se'>, <Block Node: top_header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: drone. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>, <Block Node: header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: carousel. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: featured. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: testimonials. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: news_feature. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n <div cl'>, <Block Node: contact. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: footer. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>]> |
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'meta_title': [<Block Node: meta_title. Contents: []>, <Block Node: meta_title. Contents: [<Variable Node: picture.title>]>], 'meta_description': [<Block Node: meta_description. Contents: []>, <Block Node: meta_description. Contents: [<Variable Node: picture.caption>]>], 'canonical_link': [<Block Node: canonical_link. Contents: []>, <Block Node: canonical_link. Contents: [<Variable Node: picture.get_absolute_url>]>], 'og_url': [<Block Node: og_url. Contents: []>, <Block Node: og_url. Contents: [<Variable Node: picture.get_absolute_url>]>], 'open_graph': [<Block Node: open_graph. Contents: [<TextNode: '\n<meta property="og:type"'>, <Variable Node: picture.title>, <TextNode: '">\n<meta property="og:des'>, <Variable Node: picture.caption>, <TextNode: '">\n<meta property="og:upd'>, <Variable Node: picture.date_modified|date:'c'>, <TextNode: '">\n<meta property="og:ima'>, <Variable Node: SITE_URL>, <TextNode: '/'>, <Variable Node: picture.image.url>, <TextNode: '">\n\n'>]>], 'carousel': [<Block Node: carousel. Contents: [<TextNode: '\n '>]>, <Block Node: carousel. Contents: [<TextNode: '\n\n'>]>], 'content': [<Block Node: content. Contents: [<TextNode: '\n '>]>, <Block Node: content. Contents: [<TextNode: '\n <h1>'>, <Variable Node: picture.title>, <TextNode: '</h1>\n <div class="thu'>, <Variable Node: picture|cropped_image_url:'display'>, <TextNode: '" alt="'>, <Variable Node: picture.title>, <TextNode: '"/>\n </div>\n <p><a '>, <IfNode>, <TextNode: '\n'>]>], 'meta_tags': [<Block Node: meta_tags. Contents: [<TextNode: '\n '>]>], 'pagepiling': [], 'menu': [<Block Node: menu. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/menucontainer.html'">>, <TextNode: '\n '>]>], 'top_header': [<Block Node: top_header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>], 'drone': [<Block Node: drone. Contents: [<TextNode: '\n '>]>], 'header': [<Block Node: header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>], 'featured': [<Block Node: featured. Contents: [<TextNode: '\n '>]>], 'testimonials': [], 'news_feature': [<Block Node: news_feature. Contents: [<TextNode: '\n '>]>], 'contact': [<Block Node: contact. Contents: [<TextNode: '\n '>]>], 'footer': [<Block Node: footer. Contents: [<TextNode: '\n '>]>], 'additional_scripts': [<Block Node: additional_scripts. Contents: []>], 'google_analytics': [<Block Node: google_analytics. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>]})> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
push | <Block Node: pagepiling. Contents: [<TextNode: '\n <div id="pagepil'>, <Block Node: menu. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/menucontainer.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n <div id="se'>, <Block Node: top_header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: drone. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>, <Block Node: header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: carousel. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: featured. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: testimonials. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: news_feature. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n <div cl'>, <Block Node: contact. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: footer. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>]> |
self | <Block Node: pagepiling. Contents: [<TextNode: '\n <div id="pagepil'>, <Block Node: menu. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/menucontainer.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n <div id="se'>, <Block Node: top_header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: drone. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>, <Block Node: header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: carousel. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: featured. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: testimonials. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: news_feature. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n <div cl'>, <Block Node: contact. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: footer. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>]> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
self | [<TextNode: '\n <div id="pagepil'>, <Block Node: menu. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/menucontainer.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n <div id="se'>, <Block Node: top_header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: drone. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>, <Block Node: header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: carousel. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: featured. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: testimonials. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: news_feature. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n <div cl'>, <Block Node: contact. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: footer. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n\n '>] |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7ff256f999c0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
node | <Block Node: testimonials. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">>, <TextNode: '\n '>]> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
self | <Block Node: testimonials. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">>, <TextNode: '\n '>]> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/loader_tags.py
, line 63, 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: testimonials. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">>, <TextNode: '\n '>]> |
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'meta_title': [<Block Node: meta_title. Contents: []>, <Block Node: meta_title. Contents: [<Variable Node: picture.title>]>], 'meta_description': [<Block Node: meta_description. Contents: []>, <Block Node: meta_description. Contents: [<Variable Node: picture.caption>]>], 'canonical_link': [<Block Node: canonical_link. Contents: []>, <Block Node: canonical_link. Contents: [<Variable Node: picture.get_absolute_url>]>], 'og_url': [<Block Node: og_url. Contents: []>, <Block Node: og_url. Contents: [<Variable Node: picture.get_absolute_url>]>], 'open_graph': [<Block Node: open_graph. Contents: [<TextNode: '\n<meta property="og:type"'>, <Variable Node: picture.title>, <TextNode: '">\n<meta property="og:des'>, <Variable Node: picture.caption>, <TextNode: '">\n<meta property="og:upd'>, <Variable Node: picture.date_modified|date:'c'>, <TextNode: '">\n<meta property="og:ima'>, <Variable Node: SITE_URL>, <TextNode: '/'>, <Variable Node: picture.image.url>, <TextNode: '">\n\n'>]>], 'carousel': [<Block Node: carousel. Contents: [<TextNode: '\n '>]>, <Block Node: carousel. Contents: [<TextNode: '\n\n'>]>], 'content': [<Block Node: content. Contents: [<TextNode: '\n '>]>, <Block Node: content. Contents: [<TextNode: '\n <h1>'>, <Variable Node: picture.title>, <TextNode: '</h1>\n <div class="thu'>, <Variable Node: picture|cropped_image_url:'display'>, <TextNode: '" alt="'>, <Variable Node: picture.title>, <TextNode: '"/>\n </div>\n <p><a '>, <IfNode>, <TextNode: '\n'>]>], 'meta_tags': [<Block Node: meta_tags. Contents: [<TextNode: '\n '>]>], 'pagepiling': [], 'menu': [<Block Node: menu. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/menucontainer.html'">>, <TextNode: '\n '>]>], 'top_header': [<Block Node: top_header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>], 'drone': [<Block Node: drone. Contents: [<TextNode: '\n '>]>], 'header': [<Block Node: header. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/head.html'">>, <TextNode: '\n '>]>], 'featured': [<Block Node: featured. Contents: [<TextNode: '\n '>]>], 'testimonials': [], 'news_feature': [<Block Node: news_feature. Contents: [<TextNode: '\n '>]>], 'contact': [<Block Node: contact. Contents: [<TextNode: '\n '>]>], 'footer': [<Block Node: footer. Contents: [<TextNode: '\n '>]>], 'additional_scripts': [<Block Node: additional_scripts. Contents: []>], 'google_analytics': [<Block Node: google_analytics. Contents: [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>]>]})> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
push | <Block Node: testimonials. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">>, <TextNode: '\n '>]> |
self | <Block Node: testimonials. Contents: [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">>, <TextNode: '\n '>]> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
self | [<TextNode: '\n '>, <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">>, <TextNode: '\n '>] |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7ff256f99a80> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
node | <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
self | <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/loader_tags.py
, line 197, in render
),
)
else:
template_name = tuple(template_name)
cache = context.render_context.dicts[0].setdefault(self, {})
template = cache.get(template_name)
if template is None:
template = context.template.engine.select_template(template_name)…
cache[template_name] = template
# Use the base.Template of a backends.django.Template.
elif hasattr(template, "template"):
template = template.template
values = {
name: var.resolve(context) for name, var in self.extra_context.items()
Variable | Value |
---|---|
cache | {} |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'picture': <Picture: Civil Engineering project by Vectorex Construction for Anwyl Housing in North Wales>, 'is_random': False}] |
self | <IncludeNode: template=<FilterExpression "'includes/testimonials.html'">> |
template | None |
template_name | ('includes/testimonials.html',) |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/engine.py
, line 206, in select_template
Given a list of template names, return the first that can be loaded.
"""
if not template_name_list:
raise TemplateDoesNotExist("No template names provided")
not_found = []
for template_name in template_name_list:
try:
return self.get_template(template_name)…
except TemplateDoesNotExist as exc:
if exc.args[0] not in not_found:
not_found.append(exc.args[0])
continue
# If we get here, none of the templates could be loaded
raise TemplateDoesNotExist(", ".join(not_found))
Variable | Value |
---|---|
not_found | [] |
self | <Engine: dirs=['/var/www/wsdjango/vectorex/templates'] app_dirs=True context_processors=['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'worldspan_core.adminsupport.context_processors.admin_settings', 'app.context_processors.site_settings'] debug=True loaders=[('django.template.loaders.cached.Loader', ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'])] string_if_invalid='' file_charset='utf-8' libraries={'cache': 'django.templatetags.cache', 'i18n': 'django.templatetags.i18n', 'l10n': 'django.templatetags.l10n', 'static': 'django.templatetags.static', 'tz': 'django.templatetags.tz', 'admin_list': 'django.contrib.admin.templatetags.admin_list', 'admin_modify': 'django.contrib.admin.templatetags.admin_modify', 'admin_urls': 'django.contrib.admin.templatetags.admin_urls', 'log': 'django.contrib.admin.templatetags.log', 'debugger_tags': 'django_extensions.templatetags.debugger_tags', 'highlighting': 'django_extensions.templatetags.highlighting', 'indent_text': 'django_extensions.templatetags.indent_text', 'syntax_color': 'django_extensions.templatetags.syntax_color', 'widont': 'django_extensions.templatetags.widont', 'highlight': 'haystack.templatetags.highlight', 'more_like_this': 'haystack.templatetags.more_like_this', 'easy_thumbnails_tags': 'easy_thumbnails.templatetags.easy_thumbnails_tags', 'thumbnail': 'easy_thumbnails.templatetags.thumbnail', 'cropping': 'image_cropping.templatetags.cropping', 'format_filters': 'worldspan_core.templatetags.format_filters', 'inlines': 'worldspan_core.templatetags.inlines', 'search_filters': 'worldspan_core.templatetags.search_filters', 'imagecropping_tags': 'worldspan_core.imagecropping.templatetags.imagecropping_tags', 'navigation_tags': 'worldspan_apps.navigation.templatetags.navigation_tags', 'page_filters': 'worldspan_apps.pages.templatetags.page_filters', 'page_tags': 'worldspan_apps.pages.templatetags.page_tags', 'flatblock_tags': 'worldspan_apps.flatblocks.templatetags.flatblock_tags', 'document_tags': 'worldspan_apps.documents.templatetags.document_tags', 'carousel_filters': 'worldspan_apps.carousel.templatetags.carousel_filters', 'carousel_tags': 'worldspan_apps.carousel.templatetags.carousel_tags', 'featureditems': 'worldspan_apps.featured.templatetags.featureditems', 'gallery_tags': 'worldspan_apps.gallery.templatetags.gallery_tags', 'news_tags': 'worldspan_apps.news.templatetags.news_tags', 'navbar': 'navbar.templatetags.navbar', 'testimonial_tags': 'testimonials.templatetags.testimonial_tags'} builtins=['django.template.defaulttags', 'django.template.defaultfilters', 'django.template.loader_tags'] autoescape=True> |
template_name | 'includes/testimonials.html' |
template_name_list | ('includes/testimonials.html',) |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/engine.py
, line 175, in get_template
return Template(template_code, engine=self)
def get_template(self, template_name):
"""
Return a compiled Template object for the given template name,
handling template inheritance recursively.
"""
template, origin = self.find_template(template_name)…
if not hasattr(template, "render"):
# template needs to be compiled
template = Template(template, origin, template_name, engine=self)
return template
def render_to_string(self, template_name, context=None):
Variable | Value |
---|---|
self | <Engine: dirs=['/var/www/wsdjango/vectorex/templates'] app_dirs=True context_processors=['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'worldspan_core.adminsupport.context_processors.admin_settings', 'app.context_processors.site_settings'] debug=True loaders=[('django.template.loaders.cached.Loader', ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'])] string_if_invalid='' file_charset='utf-8' libraries={'cache': 'django.templatetags.cache', 'i18n': 'django.templatetags.i18n', 'l10n': 'django.templatetags.l10n', 'static': 'django.templatetags.static', 'tz': 'django.templatetags.tz', 'admin_list': 'django.contrib.admin.templatetags.admin_list', 'admin_modify': 'django.contrib.admin.templatetags.admin_modify', 'admin_urls': 'django.contrib.admin.templatetags.admin_urls', 'log': 'django.contrib.admin.templatetags.log', 'debugger_tags': 'django_extensions.templatetags.debugger_tags', 'highlighting': 'django_extensions.templatetags.highlighting', 'indent_text': 'django_extensions.templatetags.indent_text', 'syntax_color': 'django_extensions.templatetags.syntax_color', 'widont': 'django_extensions.templatetags.widont', 'highlight': 'haystack.templatetags.highlight', 'more_like_this': 'haystack.templatetags.more_like_this', 'easy_thumbnails_tags': 'easy_thumbnails.templatetags.easy_thumbnails_tags', 'thumbnail': 'easy_thumbnails.templatetags.thumbnail', 'cropping': 'image_cropping.templatetags.cropping', 'format_filters': 'worldspan_core.templatetags.format_filters', 'inlines': 'worldspan_core.templatetags.inlines', 'search_filters': 'worldspan_core.templatetags.search_filters', 'imagecropping_tags': 'worldspan_core.imagecropping.templatetags.imagecropping_tags', 'navigation_tags': 'worldspan_apps.navigation.templatetags.navigation_tags', 'page_filters': 'worldspan_apps.pages.templatetags.page_filters', 'page_tags': 'worldspan_apps.pages.templatetags.page_tags', 'flatblock_tags': 'worldspan_apps.flatblocks.templatetags.flatblock_tags', 'document_tags': 'worldspan_apps.documents.templatetags.document_tags', 'carousel_filters': 'worldspan_apps.carousel.templatetags.carousel_filters', 'carousel_tags': 'worldspan_apps.carousel.templatetags.carousel_tags', 'featureditems': 'worldspan_apps.featured.templatetags.featureditems', 'gallery_tags': 'worldspan_apps.gallery.templatetags.gallery_tags', 'news_tags': 'worldspan_apps.news.templatetags.news_tags', 'navbar': 'navbar.templatetags.navbar', 'testimonial_tags': 'testimonials.templatetags.testimonial_tags'} builtins=['django.template.defaulttags', 'django.template.defaultfilters', 'django.template.loader_tags'] autoescape=True> |
template_name | 'includes/testimonials.html' |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/engine.py
, line 157, in find_template
"Invalid value in template loaders configuration: %r" % loader
)
def find_template(self, name, dirs=None, skip=None):
tried = []
for loader in self.template_loaders:
try:
template = loader.get_template(name, skip=skip)…
return template, template.origin
except TemplateDoesNotExist as e:
tried.extend(e.tried)
raise TemplateDoesNotExist(name, tried=tried)
def from_string(self, template_code):
Variable | Value |
---|---|
dirs | None |
loader | <django.template.loaders.cached.Loader object at 0x7ff25c9ec970> |
name | 'includes/testimonials.html' |
self | <Engine: dirs=['/var/www/wsdjango/vectorex/templates'] app_dirs=True context_processors=['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'worldspan_core.adminsupport.context_processors.admin_settings', 'app.context_processors.site_settings'] debug=True loaders=[('django.template.loaders.cached.Loader', ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'])] string_if_invalid='' file_charset='utf-8' libraries={'cache': 'django.templatetags.cache', 'i18n': 'django.templatetags.i18n', 'l10n': 'django.templatetags.l10n', 'static': 'django.templatetags.static', 'tz': 'django.templatetags.tz', 'admin_list': 'django.contrib.admin.templatetags.admin_list', 'admin_modify': 'django.contrib.admin.templatetags.admin_modify', 'admin_urls': 'django.contrib.admin.templatetags.admin_urls', 'log': 'django.contrib.admin.templatetags.log', 'debugger_tags': 'django_extensions.templatetags.debugger_tags', 'highlighting': 'django_extensions.templatetags.highlighting', 'indent_text': 'django_extensions.templatetags.indent_text', 'syntax_color': 'django_extensions.templatetags.syntax_color', 'widont': 'django_extensions.templatetags.widont', 'highlight': 'haystack.templatetags.highlight', 'more_like_this': 'haystack.templatetags.more_like_this', 'easy_thumbnails_tags': 'easy_thumbnails.templatetags.easy_thumbnails_tags', 'thumbnail': 'easy_thumbnails.templatetags.thumbnail', 'cropping': 'image_cropping.templatetags.cropping', 'format_filters': 'worldspan_core.templatetags.format_filters', 'inlines': 'worldspan_core.templatetags.inlines', 'search_filters': 'worldspan_core.templatetags.search_filters', 'imagecropping_tags': 'worldspan_core.imagecropping.templatetags.imagecropping_tags', 'navigation_tags': 'worldspan_apps.navigation.templatetags.navigation_tags', 'page_filters': 'worldspan_apps.pages.templatetags.page_filters', 'page_tags': 'worldspan_apps.pages.templatetags.page_tags', 'flatblock_tags': 'worldspan_apps.flatblocks.templatetags.flatblock_tags', 'document_tags': 'worldspan_apps.documents.templatetags.document_tags', 'carousel_filters': 'worldspan_apps.carousel.templatetags.carousel_filters', 'carousel_tags': 'worldspan_apps.carousel.templatetags.carousel_tags', 'featureditems': 'worldspan_apps.featured.templatetags.featureditems', 'gallery_tags': 'worldspan_apps.gallery.templatetags.gallery_tags', 'news_tags': 'worldspan_apps.news.templatetags.news_tags', 'navbar': 'navbar.templatetags.navbar', 'testimonial_tags': 'testimonials.templatetags.testimonial_tags'} builtins=['django.template.defaulttags', 'django.template.defaultfilters', 'django.template.loader_tags'] autoescape=True> |
skip | None |
tried | [] |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/loaders/cached.py
, line 57, in get_template
if isinstance(cached, type) and issubclass(cached, TemplateDoesNotExist):
raise cached(template_name)
elif isinstance(cached, TemplateDoesNotExist):
raise copy_exception(cached)
return cached
try:
template = super().get_template(template_name, skip)…
except TemplateDoesNotExist as e:
self.get_template_cache[key] = (
copy_exception(e) if self.engine.debug else TemplateDoesNotExist
)
raise
else:
Variable | Value |
---|---|
__class__ | <class 'django.template.loaders.cached.Loader'> |
cached | None |
key | 'includes/testimonials.html' |
self | <django.template.loaders.cached.Loader object at 0x7ff25c9ec970> |
skip | None |
template_name | 'includes/testimonials.html' |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/loaders/base.py
, line 28, in get_template
try:
contents = self.get_contents(origin)
except TemplateDoesNotExist:
tried.append((origin, "Source does not exist"))
continue
else:
return Template(…
contents,
origin,
origin.template_name,
self.engine,
)
Variable | Value |
---|---|
contents | ('{% load flatblock_tags testimonial_tags %}\n' '\n' '{% get_testimonials as testimonials %}\n' '{% if testimonials %}\n' ' <div class="testimonials">\n' ' <div class="statement col-sm-12 col-md-4">\n' ' <div class="text">\n' ' <h3>Testimonials</h3>\n' " {% flatblock 'testimonials' %}\n" ' </div>\n' ' </div>\n' ' <div id="tmlist" class="col-sm-12 col-md-6">\n' ' <div class="outer-quotes">\n' ' <div class="quotes">\n' ' {% for testimonial in testimonials %}\n' ' <div class="quote">\n' ' <p>\n' " {{ testimonial.content|slice:'0:170' }}..\n" ' <a href="{% url \'testimonials\' %}">\n' ' <span>Read More</span><span>></span>\n' ' </a>\n' ' </p>\n' ' <div class="tp">\n' ' {% if testimonial.logo %}\n' ' <img src="{{ testimonial.logo.url }}" ' 'style="width: 40px;">\n' ' {% endif %}\n' ' <h4>{{ testimonial.name }}</h4>\n' ' <p>{{ testimonial.role }}</p>\n' ' <h4>{{ testimonial.company }}</h4>\n' ' </div>\n' ' </div>\n' ' {% endfor %}\n' ' </div>\n' ' </div>\n' ' </div>\n' ' </div>\n' '{% endif %}\n') |
origin | <Origin name='/var/www/wsdjango/vectorex/templates/includes/testimonials.html'> |
self | <django.template.loaders.cached.Loader object at 0x7ff25c9ec970> |
skip | None |
template_name | 'includes/testimonials.html' |
tried | [] |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 154, in __init__
engine = Engine.get_default()
if origin is None:
origin = Origin(UNKNOWN_SOURCE)
self.name = name
self.origin = origin
self.engine = engine
self.source = str(template_string) # May be lazy.
self.nodelist = self.compile_nodelist()…
def __iter__(self):
for node in self.nodelist:
yield from node
def __repr__(self):
Variable | Value |
---|---|
engine | <Engine: dirs=['/var/www/wsdjango/vectorex/templates'] app_dirs=True context_processors=['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'worldspan_core.adminsupport.context_processors.admin_settings', 'app.context_processors.site_settings'] debug=True loaders=[('django.template.loaders.cached.Loader', ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'])] string_if_invalid='' file_charset='utf-8' libraries={'cache': 'django.templatetags.cache', 'i18n': 'django.templatetags.i18n', 'l10n': 'django.templatetags.l10n', 'static': 'django.templatetags.static', 'tz': 'django.templatetags.tz', 'admin_list': 'django.contrib.admin.templatetags.admin_list', 'admin_modify': 'django.contrib.admin.templatetags.admin_modify', 'admin_urls': 'django.contrib.admin.templatetags.admin_urls', 'log': 'django.contrib.admin.templatetags.log', 'debugger_tags': 'django_extensions.templatetags.debugger_tags', 'highlighting': 'django_extensions.templatetags.highlighting', 'indent_text': 'django_extensions.templatetags.indent_text', 'syntax_color': 'django_extensions.templatetags.syntax_color', 'widont': 'django_extensions.templatetags.widont', 'highlight': 'haystack.templatetags.highlight', 'more_like_this': 'haystack.templatetags.more_like_this', 'easy_thumbnails_tags': 'easy_thumbnails.templatetags.easy_thumbnails_tags', 'thumbnail': 'easy_thumbnails.templatetags.thumbnail', 'cropping': 'image_cropping.templatetags.cropping', 'format_filters': 'worldspan_core.templatetags.format_filters', 'inlines': 'worldspan_core.templatetags.inlines', 'search_filters': 'worldspan_core.templatetags.search_filters', 'imagecropping_tags': 'worldspan_core.imagecropping.templatetags.imagecropping_tags', 'navigation_tags': 'worldspan_apps.navigation.templatetags.navigation_tags', 'page_filters': 'worldspan_apps.pages.templatetags.page_filters', 'page_tags': 'worldspan_apps.pages.templatetags.page_tags', 'flatblock_tags': 'worldspan_apps.flatblocks.templatetags.flatblock_tags', 'document_tags': 'worldspan_apps.documents.templatetags.document_tags', 'carousel_filters': 'worldspan_apps.carousel.templatetags.carousel_filters', 'carousel_tags': 'worldspan_apps.carousel.templatetags.carousel_tags', 'featureditems': 'worldspan_apps.featured.templatetags.featureditems', 'gallery_tags': 'worldspan_apps.gallery.templatetags.gallery_tags', 'news_tags': 'worldspan_apps.news.templatetags.news_tags', 'navbar': 'navbar.templatetags.navbar', 'testimonial_tags': 'testimonials.templatetags.testimonial_tags'} builtins=['django.template.defaulttags', 'django.template.defaultfilters', 'django.template.loader_tags'] autoescape=True> |
name | 'includes/testimonials.html' |
origin | <Origin name='/var/www/wsdjango/vectorex/templates/includes/testimonials.html'> |
self | <Template template_string="{% load flatblock_ta..."> |
template_string | ('{% load flatblock_tags testimonial_tags %}\n' '\n' '{% get_testimonials as testimonials %}\n' '{% if testimonials %}\n' ' <div class="testimonials">\n' ' <div class="statement col-sm-12 col-md-4">\n' ' <div class="text">\n' ' <h3>Testimonials</h3>\n' " {% flatblock 'testimonials' %}\n" ' </div>\n' ' </div>\n' ' <div id="tmlist" class="col-sm-12 col-md-6">\n' ' <div class="outer-quotes">\n' ' <div class="quotes">\n' ' {% for testimonial in testimonials %}\n' ' <div class="quote">\n' ' <p>\n' " {{ testimonial.content|slice:'0:170' }}..\n" ' <a href="{% url \'testimonials\' %}">\n' ' <span>Read More</span><span>></span>\n' ' </a>\n' ' </p>\n' ' <div class="tp">\n' ' {% if testimonial.logo %}\n' ' <img src="{{ testimonial.logo.url }}" ' 'style="width: 40px;">\n' ' {% endif %}\n' ' <h4>{{ testimonial.name }}</h4>\n' ' <p>{{ testimonial.role }}</p>\n' ' <h4>{{ testimonial.company }}</h4>\n' ' </div>\n' ' </div>\n' ' {% endfor %}\n' ' </div>\n' ' </div>\n' ' </div>\n' ' </div>\n' '{% endif %}\n') |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 200, in compile_nodelist
tokens,
self.engine.template_libraries,
self.engine.template_builtins,
self.origin,
)
try:
return parser.parse()…
except Exception as e:
if self.engine.debug:
e.template_debug = self.get_exception_info(e, e.token)
raise
def get_exception_info(self, exception, token):
Variable | Value |
---|---|
lexer | <DebugLexer template_string="{% load flatblock_ta...", verbatim=False> |
parser | <Parser tokens=[<Text token: "...">, <Block token: "endif...">, <Text token: " </d...">, <Block token: "endfor...">, <Text token: "</h4> ...">, <Var token: "testimonial.company...">, <Text token: "</p> ...">, <Var token: "testimonial.role...">, <Text token: "</h4> ...">, <Var token: "testimonial.name...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" style="width: 40px...">, <Var token: "testimonial.logo.url...">, <Text token: " ...">, <Block token: "if testimonial.logo...">, <Text token: ""> ...">, <Block token: "url 'testimonials'...">, <Text token: ".. ...">, <Var token: "testimonial.content|...">, <Text token: " ...">, <Block token: "for testimonial in t...">, <Text token: " </div>...">]> |
self | <Template template_string="{% load flatblock_ta..."> |
tokens | [<Block token: "load flatblock_tags ...">, <Text token: "...">, <Block token: "get_testimonials as ...">, <Text token: "...">, <Block token: "if testimonials...">, <Text token: " <div class="tes...">, <Block token: "flatblock 'testimoni...">, <Text token: " </div>...">, <Block token: "for testimonial in t...">, <Text token: " ...">, <Var token: "testimonial.content|...">, <Text token: ".. ...">, <Block token: "url 'testimonials'...">, <Text token: ""> ...">, <Block token: "if testimonial.logo...">, <Text token: " ...">, <Var token: "testimonial.logo.url...">, <Text token: "" style="width: 40px...">, <Block token: "endif...">, <Text token: " ...">, <Var token: "testimonial.name...">, <Text token: "</h4> ...">, <Var token: "testimonial.role...">, <Text token: "</p> ...">, <Var token: "testimonial.company...">, <Text token: "</h4> ...">, <Block token: "endfor...">, <Text token: " </d...">, <Block token: "endif...">, <Text token: "...">] |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 513, in parse
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)…
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
self.unclosed_block_tag(parse_until)
return nodelist
Variable | Value |
---|---|
command | 'if' |
compile_func | <function do_if at 0x7ff25ebd5b40> |
compiled_result | <django.template.library.SimpleNode object at 0x7ff256f9a0e0> |
nodelist | [<django.template.defaulttags.LoadNode object at 0x7ff256f9ab30>, <TextNode: '\n\n'>, <django.template.library.SimpleNode object at 0x7ff256f9a0e0>, <TextNode: '\n'>] |
parse_until | [] |
self | <Parser tokens=[<Text token: "...">, <Block token: "endif...">, <Text token: " </d...">, <Block token: "endfor...">, <Text token: "</h4> ...">, <Var token: "testimonial.company...">, <Text token: "</p> ...">, <Var token: "testimonial.role...">, <Text token: "</h4> ...">, <Var token: "testimonial.name...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" style="width: 40px...">, <Var token: "testimonial.logo.url...">, <Text token: " ...">, <Block token: "if testimonial.logo...">, <Text token: ""> ...">, <Block token: "url 'testimonials'...">, <Text token: ".. ...">, <Var token: "testimonial.content|...">, <Text token: " ...">, <Block token: "for testimonial in t...">, <Text token: " </div>...">]> |
token | <Block token: "if testimonials..."> |
token_type | 2 |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 511, in parse
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)…
except Exception as e:
raise self.error(token, e)
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
Variable | Value |
---|---|
command | 'if' |
compile_func | <function do_if at 0x7ff25ebd5b40> |
compiled_result | <django.template.library.SimpleNode object at 0x7ff256f9a0e0> |
nodelist | [<django.template.defaulttags.LoadNode object at 0x7ff256f9ab30>, <TextNode: '\n\n'>, <django.template.library.SimpleNode object at 0x7ff256f9a0e0>, <TextNode: '\n'>] |
parse_until | [] |
self | <Parser tokens=[<Text token: "...">, <Block token: "endif...">, <Text token: " </d...">, <Block token: "endfor...">, <Text token: "</h4> ...">, <Var token: "testimonial.company...">, <Text token: "</p> ...">, <Var token: "testimonial.role...">, <Text token: "</h4> ...">, <Var token: "testimonial.name...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" style="width: 40px...">, <Var token: "testimonial.logo.url...">, <Text token: " ...">, <Block token: "if testimonial.logo...">, <Text token: ""> ...">, <Block token: "url 'testimonials'...">, <Text token: ".. ...">, <Var token: "testimonial.content|...">, <Text token: " ...">, <Block token: "for testimonial in t...">, <Text token: " </div>...">]> |
token | <Block token: "if testimonials..."> |
token_type | 2 |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/defaulttags.py
, line 953, in do_if
``==``, ``!=``, ``>``, ``>=``, ``<`` and ``<=``.
Operator precedence follows Python.
"""
# {% if ... %}
bits = token.split_contents()[1:]
condition = TemplateIfParser(parser, bits).parse()
nodelist = parser.parse(("elif", "else", "endif"))…
conditions_nodelists = [(condition, nodelist)]
token = parser.next_token()
# {% elif ... %} (repeatable)
while token.contents.startswith("elif"):
bits = token.split_contents()[1:]
Variable | Value |
---|---|
bits | ['testimonials'] |
condition | (literal <FilterExpression 'testimonials'>) |
parser | <Parser tokens=[<Text token: "...">, <Block token: "endif...">, <Text token: " </d...">, <Block token: "endfor...">, <Text token: "</h4> ...">, <Var token: "testimonial.company...">, <Text token: "</p> ...">, <Var token: "testimonial.role...">, <Text token: "</h4> ...">, <Var token: "testimonial.name...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" style="width: 40px...">, <Var token: "testimonial.logo.url...">, <Text token: " ...">, <Block token: "if testimonial.logo...">, <Text token: ""> ...">, <Block token: "url 'testimonials'...">, <Text token: ".. ...">, <Var token: "testimonial.content|...">, <Text token: " ...">, <Block token: "for testimonial in t...">, <Text token: " </div>...">]> |
token | <Block token: "if testimonials..."> |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 507, in parse
# tag.
self.command_stack.append((command, token))
# Get the tag callback function from the ones registered with
# the parser.
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)…
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)
Variable | Value |
---|---|
command | 'flatblock' |
nodelist | [<TextNode: '\n <div class="testimon'>] |
parse_until | ('elif', 'else', 'endif') |
self | <Parser tokens=[<Text token: "...">, <Block token: "endif...">, <Text token: " </d...">, <Block token: "endfor...">, <Text token: "</h4> ...">, <Var token: "testimonial.company...">, <Text token: "</p> ...">, <Var token: "testimonial.role...">, <Text token: "</h4> ...">, <Var token: "testimonial.name...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" style="width: 40px...">, <Var token: "testimonial.logo.url...">, <Text token: " ...">, <Block token: "if testimonial.logo...">, <Text token: ""> ...">, <Block token: "url 'testimonials'...">, <Text token: ".. ...">, <Var token: "testimonial.content|...">, <Text token: " ...">, <Block token: "for testimonial in t...">, <Text token: " </div>...">]> |
token | <Block token: "flatblock 'testimoni..."> |
token_type | 2 |
/var/www/wsdjango/vectorex/venv/lib/python3.10/site-packages/django/template/base.py
, line 558, in invalid_block_tag
e = TemplateSyntaxError(e)
if not hasattr(e, "token"):
e.token = token
return e
def invalid_block_tag(self, token, command, parse_until=None):
if parse_until:
raise self.error(…
token,
"Invalid block tag on line %d: '%s', expected %s. Did you "
"forget to register or load this tag?"
% (
token.lineno,
command,
Variable | Value |
---|---|
command | 'flatblock' |
parse_until | ('elif', 'else', 'endif') |
self | <Parser tokens=[<Text token: "...">, <Block token: "endif...">, <Text token: " </d...">, <Block token: "endfor...">, <Text token: "</h4> ...">, <Var token: "testimonial.company...">, <Text token: "</p> ...">, <Var token: "testimonial.role...">, <Text token: "</h4> ...">, <Var token: "testimonial.name...">, <Text token: " ...">, <Block token: "endif...">, <Text token: "" style="width: 40px...">, <Var token: "testimonial.logo.url...">, <Text token: " ...">, <Block token: "if testimonial.logo...">, <Text token: ""> ...">, <Block token: "url 'testimonials'...">, <Text token: ".. ...">, <Var token: "testimonial.content|...">, <Text token: " ...">, <Block token: "for testimonial in t...">, <Text token: " </div>...">]> |
token | <Block token: "flatblock 'testimoni..."> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'www.vectorex.co.uk' |
HTTP_REFERER | 'https://www.vectorex.co.uk/gallery/picture/anwyl-2.html' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_PROTO | 'https' |
PATH_INFO | '/gallery/picture/anwyl-2/' |
QUERY_STRING | '' |
RAW_URI | '/gallery/picture/anwyl-2/' |
REMOTE_ADDR | '127.0.0.1' |
REMOTE_PORT | '46876' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '127.0.0.1' |
SERVER_PORT | '8000' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'gunicorn/21.2.0' |
gunicorn.socket | <socket.socket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 8000), raddr=('127.0.0.1', 46876)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7ff257767520> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7ff256ecabf0> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
app.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | (('Richard', 'richard@aevus.com'), ('Josh', 'josh@aevus.com')) |
ALLOWED_HOSTS | ['.ws-django.co.uk', '.vectorex.net', '.vectorex:8000.net', '.vectorex.co.uk'] |
APPEND_SLASH | True |
APP_NAME | 'vectorex' |
APP_ROOT | '/var/www/wsdjango/vectorex' |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache', 'KEY_PREFIX': '********************', 'LOCATION': '127.0.0.1:11211', 'TIMEOUT': 3600}} |
CACHE_ENABLED | True |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CAROUSEL | {'display': (1440, 900), 'models': [('pages', 'page')], 'thumb': (120, 55)} |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_MASKED | 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 |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': '127.0.0.1', 'NAME': 'vectorex', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'vectorex'}} |
DATABASE_ROUTERS | [] |
DATA_DIR | '/var/www/wsdjango/vectorex/data' |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATA_UPLOAD_MAX_NUMBER_FILES | 100 |
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', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
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_AUTO_FIELD | 'django.db.models.AutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@vectorex.co.uk' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_PAGE_TEMPLATES | ('pages/default.html',) |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TEST | False |
EMAIL_TEST_ADDRESSES | ['richard@aevus.com', 'josh@aevus.com'] |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
ENABLE_SSL | True |
FEATURED_ITEMS | {'display': (200, 200), 'models': [('pages', 'page')], 'thumb': (200, 200)} |
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 | 436 |
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' |
GALLERY | {'display': (1800, 1200), 'models': [('pages', 'page')], 'preserve_aspect': True, 'thumb': (500, 500)} |
HAYSTACK_CONNECTIONS | {'default': {'ENGINE': 'xapian_backend.XapianEngine', 'PATH': '/var/www/wsdjango/vectorex/data/search_index'}} |
HOST_MAP | {'vectorex.co.uk': 'www.vectorex.co.uk', 'vectorex.ws-django.co.uk': 'www.vectorex.co.uk'} |
IGNORABLE_404_URLS | [] |
IMAGE_CROPPING_BACKEND | 'image_cropping.backends.easy_thumbs.EasyThumbnailsBackend' |
IMAGE_CROPPING_BACKEND_PARAMS | {} |
IMAGE_CROPPING_JQUERY_URL | '/static/admin/js/vendor/jquery/jquery.min.js' |
IMAGE_CROPPING_SIZE_WARNING | False |
IMAGE_CROPPING_THUMB_SIZE | (300, 300) |
INLINES | {'classes': [('alignleft', 'Align Left'), ('alignright', 'Align Right'), ('display', 'Display')], 'models': [('pages', 'page'), ('documents', 'document')]} |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.sites', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.redirects', 'django_extensions', 'haystack', 'easy_thumbnails', 'image_cropping', 'worldspan_core', 'worldspan_core.adminsupport', 'worldspan_core.imagecropping', 'worldspan_apps.navigation', 'worldspan_apps.pages', 'worldspan_apps.flatblocks', 'worldspan_apps.documents', 'worldspan_apps.carousel', 'worldspan_apps.featured', 'worldspan_apps.gallery', 'worldspan_apps.news', 'navbar', 'carousel_info', 'testimonials'] |
INTERNAL_IPS | ('127.0.0.1', '192.168.16.85', '192.168.0.14', '217.9.204.106', '195.69.95.45', '192.168.178.47') |
IS_LIVE | True |
IS_TEST | False |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('ckb', 'Central Kurdish (Sorani)'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('ms', 'Malay'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-GB' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LIVE_DOMAIN | 'www.vectorex.co.uk' |
LOCALE_PATHS | [] |
LOGGING | {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | (('Richard', 'richard@aevus.com'), ('Josh', 'josh@aevus.com')) |
MEDIA_ROOT | '/var/www/wsdjango/vectorex/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.cookie.CookieStorage' |
MIDDLEWARE | ['worldspan_core.middleware.NormalizeHost', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'worldspan_apps.pages.middleware.PageFallbackMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
MULTI_SITE | False |
NAVIGATION | {'models': [('pages', 'page')]} |
NEWS | {'display': (600, 480), 'page_size': 10, 'preserve_aspect': True, 'thumb': (120, 120)} |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'app.urls' |
SECRET_KEY | '********************' |
SECRET_KEY_FALLBACKS | '********************' |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_CROSS_ORIGIN_OPENER_POLICY | 'same-origin' |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'webmaster@vectorex.co.uk' |
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 | 'app.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_DEV | 3 |
SITE_EMAIL | 'enquiries@vectorex.co.uk' |
SITE_ID | 1 |
SITE_LIVE | 1 |
SITE_NAME | 'Vectorex Construction' |
SITE_PHONE | '01492 555417' |
SITE_RESTRICTED | False |
SITE_TEST | 2 |
SSL_DOMAIN | 'www.vectorex.co.uk' |
STATICFILES_DIRS | ('/var/www/wsdjango/vectorex/static',) |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/www/wsdjango/vectorex/assets' |
STATIC_URL | '/static/' |
STORAGES | {'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'}, 'staticfiles': {'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage'}} |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/wsdjango/vectorex/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'worldspan_core.adminsupport.context_processors.admin_settings', 'app.context_processors.site_settings'], 'debug': True}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Europe/London' |
USE_DEPRECATED_PYTZ | False |
USE_I18N | False |
USE_L10N | False |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | False |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WORLDSPAN_DIR | '/var/www/wsdjango/vectorex/worldspan' |
WSGI_APPLICATION | None |
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.