Invalid block tag on line 36: 'static'. Did you forget to register or load this tag?
Request Method: | GET |
---|---|
Request URL: | http://vandainsights.com/service |
Django Version: | 2.2.9 |
Exception Type: | TemplateSyntaxError |
Exception Value: | Invalid block tag on line 36: 'static'. Did you forget to register or load this tag? |
Exception Location: | /var/www/vanda_insights/env/lib/python3.8/site-packages/django/template/base.py in invalid_block_tag, line 531 |
Python Executable: | /var/www/vanda_insights/env/bin/python |
Python Version: | 3.8.10 |
Python Path: | ['/var/www/vanda_insights/vandainsights', '/var/www/vanda_insights/env/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/var/www/vanda_insights/env/lib/python3.8/site-packages'] |
Server time: | Tue, 19 Mar 2024 18:10:20 +0530 |
In template /var/www/vanda_insights/vandainsights/templates/service.html
, error at line 36
26 | box-shadow: none !important; |
---|---|
27 | height: 1em !important; |
28 | width: 1em !important; |
29 | margin: 0 .07em !important; |
30 | vertical-align: -0.1em !important; |
31 | background: none !important; |
32 | padding: 0 !important; |
33 | } |
34 | </style> |
35 | <link rel='stylesheet' id='twentyseventeen-fonts-css' href='https://fonts.googleapis.com/css?family=Libre+Franklin%3A300%2C300i%2C400%2C400i%2C600%2C600i%2C800%2C800i&subset=latin%2Clatin-ext' type='text/css' media='all' /> |
36 | <link rel='stylesheet' id='twentyseventeen-style-css' href="{% static 'wp-content/themes/twentyseventeen/style.css' %}" type='text/css' media='all' /> |
37 | <!--[if lt IE 9]> |
38 | <link rel='stylesheet' id='twentyseventeen-ie8-css' href='http://vandainsights.com/wp-content/themes/twentyseventeen/assets/css/ie8.css?ver=1.0' type='text/css' media='all' /> |
39 | <![endif]--> |
40 | <!--[if lt IE 9]> |
41 | <script type='text/javascript' src='http://vandainsights.com/wp-content/themes/twentyseventeen/assets/js/html5.js?ver=3.7.3'></script> |
42 | <![endif]--> |
43 | <script type='text/javascript' src="{% static 'wp-includes/js/jquery/jquery.js' %}"></script> |
44 | <script type='text/javascript' src="{% 'wp-includes/js/jquery/jquery-migrate.min.js' %}"></script> |
45 | <link rel='https://api.w.org/' href='https://vandainsights.com/wp-json/' /> |
46 | <link rel="EditURI" type="application/rsd+xml" title="RSD" href="{% static 'xmlrpc.php' %}" /> |
/var/www/vanda_insights/env/lib/python3.8/site-packages/django/template/base.py
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 | 'static' |
nodelist | [<TextNode: '<!DOCTYPE html>\n<html>\n<h'>] |
parse_until | [] |
self | <django.template.base.Parser object at 0x7efcac902310> |
token | <django.template.base.Token object at 0x7efcac9028e0> |
/var/www/vanda_insights/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 | TemplateSyntaxError("Invalid block tag on line 36: 'static'. Did you forget to register or load this tag?") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7efcb0ae9df0>> |
request | <WSGIRequest: GET '/service'> |
/var/www/vanda_insights/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 TemplateView at 0x7efcad5be940> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7efcad72d610>> |
request | <WSGIRequest: GET '/service'> |
resolver | <URLResolver 'vandain_sights.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=django.views.generic.base.TemplateView, args=(), kwargs={}, url_name=service, app_names=['posts'], namespaces=['posts'], route=service) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7efcb0ae9df0> |
wrapped_callback | <function TemplateView at 0x7efcad5be940> |
/var/www/vanda_insights/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 TemplateView at 0x7efcad5be940> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7efcad72d610>> |
request | <WSGIRequest: GET '/service'> |
resolver | <URLResolver 'vandain_sights.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=django.views.generic.base.TemplateView, args=(), kwargs={}, url_name=service, app_names=['posts'], namespaces=['posts'], route=service) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7efcb0ae9df0> |
wrapped_callback | <function TemplateView at 0x7efcad5be940> |
/var/www/vanda_insights/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"> |
/var/www/vanda_insights/env/lib/python3.8/site-packages/django/template/response.py
in rendered_content
"""Return the freshly rendered content for the template and context
described by the TemplateResponse.
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.
Variable | Value |
---|---|
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/var/www/vanda_insights/env/lib/python3.8/site-packages/django/template/response.py
in resolve_template
del obj_dict[attr]
return obj_dict
def resolve_template(self, template):
"""Accept a template object, path-to-template, or list of paths."""
if isinstance(template, (list, tuple)):
return select_template(template, using=self.using)…
elif isinstance(template, str):
return get_template(template, using=self.using)
else:
return template
def resolve_context(self, context):
Variable | Value |
---|---|
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | ['service.html'] |
/var/www/vanda_insights/env/lib/python3.8/site-packages/django/template/loader.py
in select_template
)
chain = []
engines = _engine_list(using)
for template_name in template_name_list:
for engine in engines:
try:
return engine.get_template(template_name)…
except TemplateDoesNotExist as e:
chain.append(e)
if template_name_list:
raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain)
else:
Variable | Value |
---|---|
chain | [] |
engine | <django.template.backends.django.DjangoTemplates object at 0x7efcb141a8e0> |
engines | [<django.template.backends.django.DjangoTemplates object at 0x7efcb141a8e0>] |
template_name | 'service.html' |
template_name_list | ['service.html'] |
using | None |
/var/www/vanda_insights/env/lib/python3.8/site-packages/django/template/backends/django.py
in get_template
self.engine = Engine(self.dirs, self.app_dirs, **options)
def from_string(self, template_code):
return Template(self.engine.from_string(template_code), self)
def get_template(self, template_name):
try:
return Template(self.engine.get_template(template_name), self)…
except TemplateDoesNotExist as exc:
reraise(exc, self)
def get_templatetag_libraries(self, custom_libraries):
"""
Return a collation of template tag libraries from installed
Variable | Value |
---|---|
self | <django.template.backends.django.DjangoTemplates object at 0x7efcb141a8e0> |
template_name | 'service.html' |
/var/www/vanda_insights/env/lib/python3.8/site-packages/django/template/engine.py
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 | <django.template.engine.Engine object at 0x7efcad625a90> |
template_name | 'service.html' |
/var/www/vanda_insights/env/lib/python3.8/site-packages/django/template/engine.py
in find_template
raise ImproperlyConfigured(
"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.filesystem.Loader object at 0x7efcb141aeb0> |
name | 'service.html' |
self | <django.template.engine.Engine object at 0x7efcad625a90> |
skip | None |
tried | [] |
/var/www/vanda_insights/env/lib/python3.8/site-packages/django/template/loaders/base.py
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,
)
raise TemplateDoesNotExist(template_name, tried=tried)
def get_template_sources(self, template_name):
Variable | Value |
---|---|
contents | ('<!DOCTYPE html>\n' '<html>\n' '<head>\n' '<meta charset="UTF-8">\n' '<meta name="viewport" content="width=device-width, initial-scale=1">\n' '<link rel="stylesheet" type="text/css" ' 'href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i">\n' '<link rel="stylesheet" type="text/css" ' 'href="https://vandainsights.com/wp-content/themes/twentyseventeen/assets/css/bootstrap.min.css">\n' '<link rel="stylesheet" type="text/css" ' 'href="https://vandainsights.com/wp-content/themes/twentyseventeen/assets/css/font-awesome.min.css">\n' '<link rel="stylesheet" type="text/css" ' 'href="https://vandainsights.com/wp-content/themes/twentyseventeen/assets/css/style.css">\n' '<script>(function(html){html.className = ' "html.className.replace(/\\bno-js\\b/,'js')})(document.documentElement);</script>\n" '<title>Page not found – Vanda insights</title>\n' "<link rel='dns-prefetch' href='//fonts.googleapis.com' />\n" "<link rel='dns-prefetch' href='//s.w.org' />\n" "<link href='https://fonts.gstatic.com' crossorigin rel='preconnect' />\n" '<link rel="alternate" type="application/rss+xml" title="Vanda insights ' '» Feed" href="https://vandainsights.com/feed/" />\n' '<link rel="alternate" type="application/rss+xml" title="Vanda insights ' '» Comments Feed" href="https://vandainsights.com/comments/feed/" />\n' '<script type="text/javascript">\n' '\t\t\twindow._wpemojiSettings = ' '{"baseUrl":"https:\\/\\/s.w.org\\/images\\/core\\/emoji\\/2.3\\/72x72\\/","ext":".png","svgUrl":"https:\\/\\/s.w.org\\/images\\/core\\/emoji\\/2.3\\/svg\\/","svgExt":".svg","source":{"concatemoji":"http:\\/\\/vandainsights.com\\/wp-includes\\/js\\/wp-emoji-release.min.js?ver=4.8.6"}};\n' '\t\t\t!function(a,b,c){function d(a){var ' 'b,c,d,e,f=String.fromCharCode;if(!k||!k.fillText)return!1;switch(k.clearRect(0,0,j.width,j.height),k.textBaseline="top",k.font="600 ' '32px Arial",a){case"flag":return ' 'k.fillText(f(55356,56826,55356,56819),0,0),b=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,56826,8203,55356,56819),0,0),c=j.toDataURL(),b!==c&&(k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447),0,0),b=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447),0,0),c=j.toDataURL(),b!==c);case"emoji4":return ' 'k.fillText(f(55358,56794,8205,9794,65039),0,0),d=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55358,56794,8203,9794,65039),0,0),e=j.toDataURL(),d!==e}return!1}function ' 'e(a){var ' 'c=b.createElement("script");c.src=a,c.defer=c.type="text/javascript",b.getElementsByTagName("head")[0].appendChild(c)}var ' 'f,g,h,i,j=b.createElement("canvas"),k=j.getContext&&j.getContext("2d");for(i=Array("flag","emoji4"),c.supports={everything:!0,everythingExceptFlag:!0},h=0;h<i.length;h++)c.supports[i[h]]=d(i[h]),c.supports.everything=c.supports.everything&&c.supports[i[h]],"flag"!==i[h]&&(c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&c.supports[i[h]]);c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&!c.supports.flag,c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.everything||(g=function(){c.readyCallback()},b.addEventListener?(b.addEventListener("DOMContentLoaded",g,!1),a.addEventListener("load",g,!1)):(a.attachEvent("onload",g),b.attachEvent("onreadystatechange",function(){"complete"===b.readyState&&c.readyCallback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji&&(e(f.twemoji),e(f.wpemoji)))}(window,document,window._wpemojiSettings);\n' '\t\t</script>\n' '<style type="text/css">\n' 'img.wp-smiley,\n' 'img.emoji {\n' '\tdisplay: inline !important;\n' '\tborder: none !important;\n' '\tbox-shadow: none !important;\n' '\theight: 1em !important;\n' '\twidth: 1em !important;\n' '\tmargin: 0 .07em !important;\n' '\tvertical-align: -0.1em !important;\n' '\tbackground: none… <trimmed 21503 bytes string> |
origin | <django.template.base.Origin object at 0x7efcac902580> |
self | <django.template.loaders.filesystem.Loader object at 0x7efcb141aeb0> |
skip | None |
template_name | 'service.html' |
tried | [] |
/var/www/vanda_insights/env/lib/python3.8/site-packages/django/template/base.py
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 _render(self, context):
Variable | Value |
---|---|
engine | <django.template.engine.Engine object at 0x7efcad625a90> |
name | 'service.html' |
origin | <django.template.base.Origin object at 0x7efcac902580> |
self | <django.template.base.Template object at 0x7efcac902e80> |
template_string | ('<!DOCTYPE html>\n' '<html>\n' '<head>\n' '<meta charset="UTF-8">\n' '<meta name="viewport" content="width=device-width, initial-scale=1">\n' '<link rel="stylesheet" type="text/css" ' 'href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i">\n' '<link rel="stylesheet" type="text/css" ' 'href="https://vandainsights.com/wp-content/themes/twentyseventeen/assets/css/bootstrap.min.css">\n' '<link rel="stylesheet" type="text/css" ' 'href="https://vandainsights.com/wp-content/themes/twentyseventeen/assets/css/font-awesome.min.css">\n' '<link rel="stylesheet" type="text/css" ' 'href="https://vandainsights.com/wp-content/themes/twentyseventeen/assets/css/style.css">\n' '<script>(function(html){html.className = ' "html.className.replace(/\\bno-js\\b/,'js')})(document.documentElement);</script>\n" '<title>Page not found – Vanda insights</title>\n' "<link rel='dns-prefetch' href='//fonts.googleapis.com' />\n" "<link rel='dns-prefetch' href='//s.w.org' />\n" "<link href='https://fonts.gstatic.com' crossorigin rel='preconnect' />\n" '<link rel="alternate" type="application/rss+xml" title="Vanda insights ' '» Feed" href="https://vandainsights.com/feed/" />\n' '<link rel="alternate" type="application/rss+xml" title="Vanda insights ' '» Comments Feed" href="https://vandainsights.com/comments/feed/" />\n' '<script type="text/javascript">\n' '\t\t\twindow._wpemojiSettings = ' '{"baseUrl":"https:\\/\\/s.w.org\\/images\\/core\\/emoji\\/2.3\\/72x72\\/","ext":".png","svgUrl":"https:\\/\\/s.w.org\\/images\\/core\\/emoji\\/2.3\\/svg\\/","svgExt":".svg","source":{"concatemoji":"http:\\/\\/vandainsights.com\\/wp-includes\\/js\\/wp-emoji-release.min.js?ver=4.8.6"}};\n' '\t\t\t!function(a,b,c){function d(a){var ' 'b,c,d,e,f=String.fromCharCode;if(!k||!k.fillText)return!1;switch(k.clearRect(0,0,j.width,j.height),k.textBaseline="top",k.font="600 ' '32px Arial",a){case"flag":return ' 'k.fillText(f(55356,56826,55356,56819),0,0),b=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,56826,8203,55356,56819),0,0),c=j.toDataURL(),b!==c&&(k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447),0,0),b=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447),0,0),c=j.toDataURL(),b!==c);case"emoji4":return ' 'k.fillText(f(55358,56794,8205,9794,65039),0,0),d=j.toDataURL(),k.clearRect(0,0,j.width,j.height),k.fillText(f(55358,56794,8203,9794,65039),0,0),e=j.toDataURL(),d!==e}return!1}function ' 'e(a){var ' 'c=b.createElement("script");c.src=a,c.defer=c.type="text/javascript",b.getElementsByTagName("head")[0].appendChild(c)}var ' 'f,g,h,i,j=b.createElement("canvas"),k=j.getContext&&j.getContext("2d");for(i=Array("flag","emoji4"),c.supports={everything:!0,everythingExceptFlag:!0},h=0;h<i.length;h++)c.supports[i[h]]=d(i[h]),c.supports.everything=c.supports.everything&&c.supports[i[h]],"flag"!==i[h]&&(c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&c.supports[i[h]]);c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&!c.supports.flag,c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.everything||(g=function(){c.readyCallback()},b.addEventListener?(b.addEventListener("DOMContentLoaded",g,!1),a.addEventListener("load",g,!1)):(a.attachEvent("onload",g),b.attachEvent("onreadystatechange",function(){"complete"===b.readyState&&c.readyCallback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji&&(e(f.twemoji),e(f.wpemoji)))}(window,document,window._wpemojiSettings);\n' '\t\t</script>\n' '<style type="text/css">\n' 'img.wp-smiley,\n' 'img.emoji {\n' '\tdisplay: inline !important;\n' '\tborder: none !important;\n' '\tbox-shadow: none !important;\n' '\theight: 1em !important;\n' '\twidth: 1em !important;\n' '\tmargin: 0 .07em !important;\n' '\tvertical-align: -0.1em !important;\n' '\tbackground: none… <trimmed 21503 bytes string> |
/var/www/vanda_insights/env/lib/python3.8/site-packages/django/template/base.py
in compile_nodelist
tokens = lexer.tokenize()
parser = Parser(
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 | <django.template.base.DebugLexer object at 0x7efcac902b80> |
parser | <django.template.base.Parser object at 0x7efcac902310> |
self | <django.template.base.Template object at 0x7efcac902e80> |
tokens | [<django.template.base.Token object at 0x7efcac902d60>, <django.template.base.Token object at 0x7efcac9026d0>, <django.template.base.Token object at 0x7efcac902af0>, <django.template.base.Token object at 0x7efcac9025b0>, <django.template.base.Token object at 0x7efcac9023d0>, <django.template.base.Token object at 0x7efcac902ca0>, <django.template.base.Token object at 0x7efcac902940>, <django.template.base.Token object at 0x7efcac902dc0>, <django.template.base.Token object at 0x7efcac902b20>, <django.template.base.Token object at 0x7efcac9022b0>, <django.template.base.Token object at 0x7efcac902a30>, <django.template.base.Token object at 0x7efcac902460>, <django.template.base.Token object at 0x7efcac902a60>, <django.template.base.Token object at 0x7efcac902610>, <django.template.base.Token object at 0x7efcac902df0>, <django.template.base.Token object at 0x7efcac902910>, <django.template.base.Token object at 0x7efcac902a90>] |
/var/www/vanda_insights/env/lib/python3.8/site-packages/django/template/base.py
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 | 'static' |
nodelist | [<TextNode: '<!DOCTYPE html>\n<html>\n<h'>] |
parse_until | [] |
self | <django.template.base.Parser object at 0x7efcac902310> |
token | <django.template.base.Token object at 0x7efcac9028e0> |
/var/www/vanda_insights/env/lib/python3.8/site-packages/django/template/base.py
in invalid_block_tag
"Invalid block tag on line %d: '%s', expected %s. Did you "
"forget to register or load this tag?" % (
token.lineno,
command,
get_text_list(["'%s'" % p for p in parse_until], 'or'),
),
)
raise self.error(…
token,
"Invalid block tag on line %d: '%s'. Did you forget to register "
"or load this tag?" % (token.lineno, command)
)
def unclosed_block_tag(self, parse_until):
Variable | Value |
---|---|
command | 'static' |
parse_until | [] |
self | <django.template.base.Parser object at 0x7efcac902310> |
token | <django.template.base.Token object at 0x7efcac9028e0> |
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 | '54.84.65.73' |
HTTP_CF_IPCOUNTRY | 'US' |
HTTP_CF_RAY | '866d87c67909829c-IAD' |
HTTP_CF_VISITOR | '{"scheme":"https"}' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'vandainsights.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '54.84.65.73, 172.70.174.142' |
HTTP_X_FORWARDED_PROTO | 'http' |
HTTP_X_REAL_IP | '172.70.174.142' |
PATH_INFO | '/service' |
QUERY_STRING | '' |
RAW_URI | '/service' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'vandainsights.com' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.0.4' |
gunicorn.socket | <socket.socket fd=3, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/tmp/vandain_sights.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7efcad06e550> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7efcad06e070> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
vandain_sights.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['127.0.0.1', 'localhost', '167.71.194.105', '*'] |
ANYMAIL | {'SENDGRID_API_KEY': '********************'} |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'authuser.User' |
BASE_DIR | '/var/www/vanda_insights/vandainsights' |
BOWER_COMPONENTS_ROOT | '/var/www/vanda_insights/vandainsights/static' |
BOWER_INSTALLED_APPS | ('jquery', 'jquery-ui', 'bootstrap', 'fullcalendar', 'moment') |
BOWER_PATH | 'D:\\\\Programs\\\\nodejs\\\\node_modules\\\\npm\\\\bower.cmd' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CHECK_CALENDAR_PERM_FUNC | <function check_calendar_permission at 0x7efcb0c51940> |
CKEDITOR_CONFIGS | {'default': {'extraPlugins': 'justify,liststyle,indent,clipboard', 'toolbar_Full': [['Styles', 'FontSize', 'Bold', 'Italic', 'Underline', 'Strike', 'SpellChecker', 'Undo', 'Redo'], ['Link', 'Unlink', 'Anchor'], ['Image', 'Flash', 'Table', 'HorizontalRule'], ['TextColor', 'BGColor'], ['Smiley', 'SpecialChar'], ['Source'], ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['NumberedList', 'BulletedList', 'Blockquote'], ['Indent', 'Outdent'], ['Maximize'], ['PasteFromWord', '-', 'Undo', 'Redo']]}} |
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 |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '34.100.227.10', 'NAME': 'vandainsights-prod-db', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'vandainsights-prod'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 5242880 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | '[email protected]' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'anymail.backends.sendgrid.EmailBackend' |
EMAIL_FILE_PATH | '/var/www/vanda_insights/vandainsights/temp/emails' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['authuser', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'posts', 'payments', 'djangobower', 'ckeditor', 'rest_framework', 'captcha', 'django_countries', 'schedule', 'old_media', 'rangefilter'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('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'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('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'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | '/login/' |
LOGOUT_REDIRECT_URL | '/' |
LOGOUT_URL | '/logout/' |
MANAGERS | [] |
MEDIA_ROOT | '/var/www/vanda_insights/vandainsights/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
PRIVATE_STORAGE_AUTH_FUNCTION | 'vandain_sights.custom_storage.allow_any' |
PRIVATE_STORAGE_ROOT | '/var/www/vanda_insights/vandainsights/media/private/reports/' |
RECAPTCHA_PRIVATE_KEY | '********************' |
RECAPTCHA_PUBLIC_KEY | '********************' |
REST_FRAMEWORK | {'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly']} |
ROOT_URLCONF | 'vandain_sights.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | '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 | 'vandain_sights.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | ['/var/www/vanda_insights/vandainsights/static'] |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'djangobower.finders.BowerFinder') |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/www/vanda_insights/vandainsights/staticfiles' |
STATIC_URL | '/static/' |
STRIPE_PUBLICATION_KEY | '********************' |
STRIPE_SECRET_KEY | '********************' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/vanda_insights/vandainsights/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'vandain_sights.context_processors.ad_post']}}] |
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 | 'Asia/Kolkata' |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | False |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'vandain_sights.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.