'block' tag with name 'content' appears more than once
Request Method: | GET |
---|---|
Request URL: | https://cloud-pdf.com/privacy/ |
Django Version: | 3.1.7 |
Exception Type: | TemplateSyntaxError |
Exception Value: | 'block' tag with name 'content' appears more than once |
Exception Location: | /home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/loader_tags.py, line 209, in do_block |
Python Executable: | /home/shashi/env_cloudpdf/bin/python |
Python Version: | 3.8.10 |
Python Path: | ['/home/shashi/env_cloudpdf/bin', '/home/shashi/cloudpdf', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/shashi/env_cloudpdf/lib/python3.8/site-packages', '/home/shashi/env_cloudpdf/lib/python3.8/site-packages/IPython/extensions'] |
Server time: | Tue, 19 Mar 2024 08:36:44 +0000 |
In template /home/shashi/cloudpdf/templates/content/privacy.html
, error at line 31
21 | |
---|---|
22 | <meta name="google-site-verification" content="vWV9buhp9aA6pt2OQLleyFeABWdnek1domV5s7ygTyg" /> |
23 | <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> |
24 | <link rel=apple-touch-icon href="{% static 'img/favicon.ico' %}"> |
25 | <link rel=icon href="{% static 'img/favicon.ico' %}"> |
26 | </head> |
27 | {% endblock head %} |
28 | <body> |
29 | |
30 | {% block content %} |
31 | {% block content %} <div class="container-fluid"> |
32 | <div class="col-md-2"> |
33 | |
34 | </div> |
35 | <div class="col-md-10"> |
36 | <h1>Privacy Policy for PDF CLOUD TOOLS </h1> |
37 | |
38 | <p>At PDF CLOUD TOOLS , accessible from https://cloud-pdf.com, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by PDF CLOUD TOOLS and how we use it.</p> |
39 | |
40 | <p>If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us.</p> |
41 |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/core/handlers/exception.py
, line 47, in inner
response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
return response
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("'block' tag with name 'content' appears more than once") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f540dc81310>> |
request | <WSGIRequest: GET '/privacy/'> |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/core/handlers/base.py
, line 204, in _get_response
response,
middleware_method,
name='%s.process_template_response' % (
middleware_method.__self__.__class__.__name__,
)
)
try:
response = response.render()…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
return response
Variable | Value |
---|---|
callback | <function PrivacyView at 0x7f53ee1cd9d0> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f540d95fac0>> |
request | <WSGIRequest: GET '/privacy/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f540dc81310> |
wrapped_callback | <function PrivacyView at 0x7f53ee1cd9d0> |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/response.py
, line 105, in render
If the content has already been rendered, this is a no-op.
Return the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content…
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
retval | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/response.py
, line 81, 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)
return template.render(context, self._request)
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"> |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/response.py
, line 63, 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 | ['content/privacy.html'] |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/loader.py
, line 42, 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 0x7f53ee1d20a0> |
engines | [<django.template.backends.django.DjangoTemplates object at 0x7f53ee1d20a0>] |
template_name | 'content/privacy.html' |
template_name_list | ['content/privacy.html'] |
using | None |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/backends/django.py
, line 34, 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 0x7f53ee1d20a0> |
template_name | 'content/privacy.html' |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/engine.py
, line 143, 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 0x7f540d935460> |
template_name | 'content/privacy.html' |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/engine.py
, line 125, 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 0x7f53ee1b2d00> |
name | 'content/privacy.html' |
self | <django.template.engine.Engine object at 0x7f540d935460> |
skip | None |
tried | [] |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/loaders/base.py
, line 29, 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 | ("{% extends 'content/base.html' %}\n" '<!DOCTYPE html>\n' '<html lang="en">\n' '{% block head %}\n' ' <head>\n' ' {% load static %}\n' ' <title>PDF Cloud Tools - Privacy Policy<</title>\n' ' <meta charset="utf-8">\n' ' <meta http-equiv="X-UA-Compatible" content="IE=edge">\n' ' <meta name="viewport" content="width=device-width, ' 'initial-scale=1">\n' ' <meta name="description" content=\'Rotate PDF, Merge Any files to ' "PDF,Split PDF, PDF to JPEG,Any File to PDF,Barcode2PDF.'>\n" ' <meta name="keywords" content="word to pdf, pdf to eps, convert ' 'pdf, html to pdf, merge pdf, pdf to jpeg, any to pdf, pdf to any, unlock ' 'pdf, any to eps, Rotate PDF, PDF Cloud Tools">\n' ' <meta name="viewport" content="width=device-width, ' 'initial-scale=1">\n' ' <meta NAME="ROBOTS" CONTENT="INDEX, FOLLOW">\n' ' <link rel="canonical" href="https://cloud-pdf.com{{ ' 'request.get_full_path }}">\n' ' <meta property="og:title" content="PDF CLOUD TOOLS - Privacy ' 'Policy">\n' ' <meta property="og:site_name" content="Find My Facebook ID">\n' ' <meta property="og:url" content="https://cloud-pdf.com{{ ' 'request.get_full_path }}">\n' ' <meta property="og:description" content="PDF CLOUD TOOLS - Privacy ' 'Policy">\n' ' <meta property="og:type" content="website">\n' ' \n' ' <meta name="google-site-verification" ' 'content="vWV9buhp9aA6pt2OQLleyFeABWdnek1domV5s7ygTyg" />\n' ' <script async ' 'src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>\n' ' <link rel=apple-touch-icon href="{% static ' '\'img/favicon.ico\' %}">\n' ' <link rel=icon href="{% static \'img/favicon.ico\' %}">\n' ' </head>\n' ' {% endblock head %}\n' ' <body>\n' ' \n' ' {% block content %}\n' ' {% block content %} <div class="container-fluid"> \n' ' <div class="col-md-2">\n' ' \n' ' </div>\n' ' <div class="col-md-10">\n' ' <h1>Privacy Policy for PDF CLOUD TOOLS </h1>\n' '\n' '<p>At PDF CLOUD TOOLS , accessible from https://cloud-pdf.com, one of our ' 'main priorities is the privacy of our visitors. This Privacy Policy document ' 'contains types of information that is collected and recorded by PDF CLOUD ' 'TOOLS and how we use it.</p>\n' '\n' '<p>If you have additional questions or require more information about our ' 'Privacy Policy, do not hesitate to contact us.</p>\n' '\n' '<p>This Privacy Policy applies only to our online activities and is valid ' 'for visitors to our website with regards to the information that they shared ' 'and/or collect in PDF CLOUD TOOLS . This policy is not applicable to any ' 'information collected offline or via channels other than this website.</p>\n' '\n' '<h2>Consent</h2>\n' '\n' '<p>By using our website, you hereby consent to our Privacy Policy and agree ' 'to its terms.</p>\n' '\n' '<h2>Information we collect</h2>\n' '\n' '<p>The personal information that you are asked to provide, and the reasons ' 'why you are asked to provide it, will be made clear to you at the point we ' 'ask you to provide your personal information.</p>\n' '<p>If you contact us directly, we may receive additional information about ' 'you such as your name, email address, phone number, the contents of the ' 'message and/or attachments you may send us, and any other information you ' 'may choose to provide.</p>\n' '<p>When you register for an Account, we may ask for your contact ' 'information, including items such as name, company name, address, email ' 'address, and telephone number.</p>\n' '\n' '<h2>How we use your information</h2>\n' '\n' '<p>We use the information we collect in various ways, including to:</p>\n' '\n' '<ul>\n' '<li>Provide, operate, and maintain our webste</li>\n' '<li>Improve, personalize, and expand our webste</li>\n' '<li>Understand and analyze how you use our webste</li>\n' '<li>Develop new products, s… <trimmed 11444 bytes string> |
origin | <django.template.base.Origin object at 0x7f53edff6370> |
self | <django.template.loaders.filesystem.Loader object at 0x7f53ee1b2d00> |
skip | None |
template_name | 'content/privacy.html' |
tried | [] |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/base.py
, line 155, 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 0x7f540d935460> |
name | 'content/privacy.html' |
origin | <django.template.base.Origin object at 0x7f53edff6370> |
self | <django.template.base.Template object at 0x7f53edff6a00> |
template_string | ("{% extends 'content/base.html' %}\n" '<!DOCTYPE html>\n' '<html lang="en">\n' '{% block head %}\n' ' <head>\n' ' {% load static %}\n' ' <title>PDF Cloud Tools - Privacy Policy<</title>\n' ' <meta charset="utf-8">\n' ' <meta http-equiv="X-UA-Compatible" content="IE=edge">\n' ' <meta name="viewport" content="width=device-width, ' 'initial-scale=1">\n' ' <meta name="description" content=\'Rotate PDF, Merge Any files to ' "PDF,Split PDF, PDF to JPEG,Any File to PDF,Barcode2PDF.'>\n" ' <meta name="keywords" content="word to pdf, pdf to eps, convert ' 'pdf, html to pdf, merge pdf, pdf to jpeg, any to pdf, pdf to any, unlock ' 'pdf, any to eps, Rotate PDF, PDF Cloud Tools">\n' ' <meta name="viewport" content="width=device-width, ' 'initial-scale=1">\n' ' <meta NAME="ROBOTS" CONTENT="INDEX, FOLLOW">\n' ' <link rel="canonical" href="https://cloud-pdf.com{{ ' 'request.get_full_path }}">\n' ' <meta property="og:title" content="PDF CLOUD TOOLS - Privacy ' 'Policy">\n' ' <meta property="og:site_name" content="Find My Facebook ID">\n' ' <meta property="og:url" content="https://cloud-pdf.com{{ ' 'request.get_full_path }}">\n' ' <meta property="og:description" content="PDF CLOUD TOOLS - Privacy ' 'Policy">\n' ' <meta property="og:type" content="website">\n' ' \n' ' <meta name="google-site-verification" ' 'content="vWV9buhp9aA6pt2OQLleyFeABWdnek1domV5s7ygTyg" />\n' ' <script async ' 'src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>\n' ' <link rel=apple-touch-icon href="{% static ' '\'img/favicon.ico\' %}">\n' ' <link rel=icon href="{% static \'img/favicon.ico\' %}">\n' ' </head>\n' ' {% endblock head %}\n' ' <body>\n' ' \n' ' {% block content %}\n' ' {% block content %} <div class="container-fluid"> \n' ' <div class="col-md-2">\n' ' \n' ' </div>\n' ' <div class="col-md-10">\n' ' <h1>Privacy Policy for PDF CLOUD TOOLS </h1>\n' '\n' '<p>At PDF CLOUD TOOLS , accessible from https://cloud-pdf.com, one of our ' 'main priorities is the privacy of our visitors. This Privacy Policy document ' 'contains types of information that is collected and recorded by PDF CLOUD ' 'TOOLS and how we use it.</p>\n' '\n' '<p>If you have additional questions or require more information about our ' 'Privacy Policy, do not hesitate to contact us.</p>\n' '\n' '<p>This Privacy Policy applies only to our online activities and is valid ' 'for visitors to our website with regards to the information that they shared ' 'and/or collect in PDF CLOUD TOOLS . This policy is not applicable to any ' 'information collected offline or via channels other than this website.</p>\n' '\n' '<h2>Consent</h2>\n' '\n' '<p>By using our website, you hereby consent to our Privacy Policy and agree ' 'to its terms.</p>\n' '\n' '<h2>Information we collect</h2>\n' '\n' '<p>The personal information that you are asked to provide, and the reasons ' 'why you are asked to provide it, will be made clear to you at the point we ' 'ask you to provide your personal information.</p>\n' '<p>If you contact us directly, we may receive additional information about ' 'you such as your name, email address, phone number, the contents of the ' 'message and/or attachments you may send us, and any other information you ' 'may choose to provide.</p>\n' '<p>When you register for an Account, we may ask for your contact ' 'information, including items such as name, company name, address, email ' 'address, and telephone number.</p>\n' '\n' '<h2>How we use your information</h2>\n' '\n' '<p>We use the information we collect in various ways, including to:</p>\n' '\n' '<ul>\n' '<li>Provide, operate, and maintain our webste</li>\n' '<li>Improve, personalize, and expand our webste</li>\n' '<li>Understand and analyze how you use our webste</li>\n' '<li>Develop new products, s… <trimmed 11444 bytes string> |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/base.py
, line 193, 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 0x7f53edff6fd0> |
parser | <django.template.base.Parser object at 0x7f53ee015370> |
self | <django.template.base.Template object at 0x7f53edff6a00> |
tokens | [<django.template.base.Token object at 0x7f53edff6d90>, <django.template.base.Token object at 0x7f53edff6f70>, <django.template.base.Token object at 0x7f53edff6550>, <django.template.base.Token object at 0x7f53edff6160>, <django.template.base.Token object at 0x7f53edff6bb0>, <django.template.base.Token object at 0x7f53edff6a60>, <django.template.base.Token object at 0x7f53edff66d0>, <django.template.base.Token object at 0x7f53edff6640>, <django.template.base.Token object at 0x7f53edff6850>, <django.template.base.Token object at 0x7f53edff6f10>, <django.template.base.Token object at 0x7f53edff6d00>, <django.template.base.Token object at 0x7f53edff6c40>, <django.template.base.Token object at 0x7f53edff66a0>, <django.template.base.Token object at 0x7f53edff64f0>, <django.template.base.Token object at 0x7f53edff61c0>, <django.template.base.Token object at 0x7f53edff6c70>, <django.template.base.Token object at 0x7f53edff6190>, <django.template.base.Token object at 0x7f53edff6220>, <django.template.base.Token object at 0x7f53edff6520>, <django.template.base.Token object at 0x7f53ee015df0>, <django.template.base.Token object at 0x7f53ee0154f0>, <django.template.base.Token object at 0x7f53ee015c10>, <django.template.base.Token object at 0x7f53ee0153a0>, <django.template.base.Token object at 0x7f53ee015e20>, <django.template.base.Token object at 0x7f53ee0152e0>, <django.template.base.Token object at 0x7f53ee015b20>, <django.template.base.Token object at 0x7f53ee015400>, <django.template.base.Token object at 0x7f53edff63a0>] |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/base.py
, line 478, 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 | 'extends' |
compile_func | <function do_extends at 0x7f540dd92d30> |
nodelist | [] |
parse_until | [] |
self | <django.template.base.Parser object at 0x7f53ee015370> |
token | <django.template.base.Token object at 0x7f53edff6d90> |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/base.py
, line 476, 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 | 'extends' |
compile_func | <function do_extends at 0x7f540dd92d30> |
nodelist | [] |
parse_until | [] |
self | <django.template.base.Parser object at 0x7f53ee015370> |
token | <django.template.base.Token object at 0x7f53edff6d90> |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/loader_tags.py
, line 270, in do_extends
the parent template itself (if it evaluates to a Template object).
"""
bits = token.split_contents()
if len(bits) != 2:
raise TemplateSyntaxError("'%s' takes one argument" % bits[0])
bits[1] = construct_relative_path(parser.origin.template_name, bits[1])
parent_name = parser.compile_filter(bits[1])
nodelist = parser.parse()…
if nodelist.get_nodes_by_type(ExtendsNode):
raise TemplateSyntaxError("'%s' cannot appear more than once in the same template" % bits[0])
return ExtendsNode(nodelist, parent_name)
@register.tag('include')
Variable | Value |
---|---|
bits | ['extends', "'content/base.html'"] |
parent_name | <django.template.base.FilterExpression object at 0x7f53ee0156d0> |
parser | <django.template.base.Parser object at 0x7f53ee015370> |
token | <django.template.base.Token object at 0x7f53edff6d90> |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/base.py
, line 478, 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 | 'block' |
compile_func | <function do_block at 0x7f540dd92c10> |
compiled_result | <Block Node: head. Contents: [<TextNode: '\n <head>\n '>, <django.template.defaulttags.LoadNode object at 0x7f53ee015850>, <TextNode: '\n <title>PDF Cloud'>, <Variable Node: request.get_full_path>, <TextNode: '">\n <meta property'>, <Variable Node: request.get_full_path>, <TextNode: '">\n <meta property'>, <django.templatetags.static.StaticNode object at 0x7f53ee015e50>, <TextNode: '">\n <link rel=icon'>, <django.templatetags.static.StaticNode object at 0x7f53ee015d60>, <TextNode: '">\n </head>\n '>]> |
nodelist | [<TextNode: '\n<!DOCTYPE html>\n<html la'>, <Block Node: head. Contents: [<TextNode: '\n <head>\n '>, <django.template.defaulttags.LoadNode object at 0x7f53ee015850>, <TextNode: '\n <title>PDF Cloud'>, <Variable Node: request.get_full_path>, <TextNode: '">\n <meta property'>, <Variable Node: request.get_full_path>, <TextNode: '">\n <meta property'>, <django.templatetags.static.StaticNode object at 0x7f53ee015e50>, <TextNode: '">\n <link rel=icon'>, <django.templatetags.static.StaticNode object at 0x7f53ee015d60>, <TextNode: '">\n </head>\n '>]>, <TextNode: '\n <body>\n \n '>] |
parse_until | [] |
self | <django.template.base.Parser object at 0x7f53ee015370> |
token | <django.template.base.Token object at 0x7f53edff6190> |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/base.py
, line 476, 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 | 'block' |
compile_func | <function do_block at 0x7f540dd92c10> |
compiled_result | <Block Node: head. Contents: [<TextNode: '\n <head>\n '>, <django.template.defaulttags.LoadNode object at 0x7f53ee015850>, <TextNode: '\n <title>PDF Cloud'>, <Variable Node: request.get_full_path>, <TextNode: '">\n <meta property'>, <Variable Node: request.get_full_path>, <TextNode: '">\n <meta property'>, <django.templatetags.static.StaticNode object at 0x7f53ee015e50>, <TextNode: '">\n <link rel=icon'>, <django.templatetags.static.StaticNode object at 0x7f53ee015d60>, <TextNode: '">\n </head>\n '>]> |
nodelist | [<TextNode: '\n<!DOCTYPE html>\n<html la'>, <Block Node: head. Contents: [<TextNode: '\n <head>\n '>, <django.template.defaulttags.LoadNode object at 0x7f53ee015850>, <TextNode: '\n <title>PDF Cloud'>, <Variable Node: request.get_full_path>, <TextNode: '">\n <meta property'>, <Variable Node: request.get_full_path>, <TextNode: '">\n <meta property'>, <django.templatetags.static.StaticNode object at 0x7f53ee015e50>, <TextNode: '">\n <link rel=icon'>, <django.templatetags.static.StaticNode object at 0x7f53ee015d60>, <TextNode: '">\n </head>\n '>]>, <TextNode: '\n <body>\n \n '>] |
parse_until | [] |
self | <django.template.base.Parser object at 0x7f53ee015370> |
token | <django.template.base.Token object at 0x7f53edff6190> |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/loader_tags.py
, line 213, in do_block
# check for duplication.
try:
if block_name in parser.__loaded_blocks:
raise TemplateSyntaxError("'%s' tag with name '%s' appears more than once" % (bits[0], block_name))
parser.__loaded_blocks.append(block_name)
except AttributeError: # parser.__loaded_blocks isn't a list yet
parser.__loaded_blocks = [block_name]
nodelist = parser.parse(('endblock',))…
# This check is kept for backwards-compatibility. See #3100.
endblock = parser.next_token()
acceptable_endblocks = ('endblock', 'endblock %s' % block_name)
if endblock.contents not in acceptable_endblocks:
parser.invalid_block_tag(endblock, 'endblock', acceptable_endblocks)
Variable | Value |
---|---|
bits | ['block', 'content'] |
block_name | 'content' |
parser | <django.template.base.Parser object at 0x7f53ee015370> |
token | <django.template.base.Token object at 0x7f53edff6190> |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/base.py
, line 478, 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 | 'block' |
compile_func | <function do_block at 0x7f540dd92c10> |
nodelist | [<TextNode: '\n '>] |
parse_until | ('endblock',) |
self | <django.template.base.Parser object at 0x7f53ee015370> |
token | <django.template.base.Token object at 0x7f53edff6520> |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/base.py
, line 476, 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 | 'block' |
compile_func | <function do_block at 0x7f540dd92c10> |
nodelist | [<TextNode: '\n '>] |
parse_until | ('endblock',) |
self | <django.template.base.Parser object at 0x7f53ee015370> |
token | <django.template.base.Token object at 0x7f53edff6520> |
/home/shashi/env_cloudpdf/lib/python3.8/site-packages/django/template/loader_tags.py
, line 209, in do_block
if len(bits) != 2:
raise TemplateSyntaxError("'%s' tag takes only one argument" % bits[0])
block_name = bits[1]
# Keep track of the names of BlockNodes found in this template, so we can
# check for duplication.
try:
if block_name in parser.__loaded_blocks:
raise TemplateSyntaxError("'%s' tag with name '%s' appears more than once" % (bits[0], block_name))…
parser.__loaded_blocks.append(block_name)
except AttributeError: # parser.__loaded_blocks isn't a list yet
parser.__loaded_blocks = [block_name]
nodelist = parser.parse(('endblock',))
# This check is kept for backwards-compatibility. See #3100.
Variable | Value |
---|---|
bits | ['block', 'content'] |
block_name | 'content' |
parser | <django.template.base.Parser object at 0x7f53ee015370> |
token | <django.template.base.Token object at 0x7f53edff6520> |
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 | '34.236.152.203' |
HTTP_CF_IPCOUNTRY | 'US' |
HTTP_CF_RAY | '866c22ed5f505afe-SIN' |
HTTP_CF_VISITOR | '{"scheme":"https"}' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'cloud-pdf.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '162.158.190.16' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REAL_IP | '162.158.190.16' |
PATH_INFO | '/privacy/' |
QUERY_STRING | '' |
RAW_URI | '/privacy/' |
REMOTE_ADDR | '127.0.0.1' |
REMOTE_PORT | '37832' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '0.0.0.0' |
SERVER_PORT | '8085' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.0.4' |
gunicorn.socket | <gevent._socket3.socket at 0x7f53ee062be0 object, fd=7, family=2, type=1, proto=6> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f53ee0dc910> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7f53ee0dc1f0> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
cloudpdf.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['127.0.0.1', 'localhost', 'cloud-pdf.com', 'www.cloud-pdf.com'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
AWS_ACCESS_KEY_ID | '********************' |
AWS_DEFAULT_ACL | None |
AWS_LOCATION | 'static' |
AWS_S3_BUCKET_AUTH | False |
AWS_S3_CUSTOM_DOMAIN | 'cloudpdfuploads.s3.amazonaws.com' |
AWS_S3_MAX_AGE_SECONDS | 31536000 |
AWS_S3_OBJECT_PARAMETERS | {'CacheControl': 'max-age=86400'} |
AWS_SECRET_ACCESS_KEY | '********************' |
AWS_STORAGE_BUCKET_NAME | 'cloudpdfuploads' |
BASE_DIR | '/home/shashi/cloudpdf' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_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.sqlite3', 'HOST': '', 'NAME': '/home/shashi/cloudpdf/db.sqlite3', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%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_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'cloudpdf.storage_backends.MediaStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
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 | 420 |
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 | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'storages', 'cloudpdf.apps.mysite'] |
INTERNAL_IPS | [] |
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'), ('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'), ('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', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
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 |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/home/shashi/cloudpdf/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 | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'cloudpdf.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
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 | '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 | 'cloudpdf.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 | ['/home/shashi/cloudpdf/assets'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'storages.backends.s3boto3.S3Boto3Storage' |
STATIC_ROOT | '/home/shashi/cloudpdf/static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'UTC' |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'cloudpdf.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.