Error en la peticion al componente de seguridad respuesta: 400
Request Method: | GET |
---|---|
Request URL: | http://portalaldiaensaludtest.azurewebsites.net/home/contacto/ |
Django Version: | 3.0.6 |
Exception Type: | Exception |
Exception Value: | Error en la peticion al componente de seguridad respuesta: 400 |
Exception Location: | /code/smartdata/smartdata.py in _token_auth, line 93 |
Python Executable: | /usr/local/bin/python |
Python Version: | 3.7.17 |
Python Path: | ['/code', '/usr/local/bin', '/usr/local/lib/python37.zip', '/usr/local/lib/python3.7', '/usr/local/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/site-packages'] |
Server time: | Tue, 19 Mar 2024 09:56:08 +0000 |
In template /code/tq_boilerplate_wagtail_package/templates/base.html
, error at line 0
1 | {% load static wagtailimages_tags wagtailcore_tags wagtailuserbar snippets_tags %} |
---|---|
2 | {% url_base as base %} |
3 | <!DOCTYPE html> |
4 | <html lang="en"> |
5 | |
6 | <head> |
7 | <meta charset="utf-8"/> |
8 | |
9 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
10 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
/usr/local/lib/python3.7/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 | Exception('Error en la peticion al componente de seguridad respuesta: 400') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x756b3a6424d0>> |
request | <WSGIRequest: GET '/home/contacto/'> |
/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)…
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function serve at 0x756b3a048710> |
callback_args | ('home/contacto/',) |
callback_kwargs | {} |
middleware_method | <bound method CorsMiddleware.process_view of <corsheaders.middleware.CorsMiddleware object at 0x756b3a50a5d0>> |
request | <WSGIRequest: GET '/home/contacto/'> |
resolver | <URLResolver 'tq_boilerplate_wagtail_package.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=wagtail.core.views.serve, args=('home/contacto/',), kwargs={}, url_name=wagtail_serve, app_names=[], namespaces=[], route=^((?:[\w\-]+/)*)$) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x756b3a6424d0> |
wrapped_callback | <function serve at 0x756b3a048710> |
/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function serve at 0x756b3a048710> |
callback_args | ('home/contacto/',) |
callback_kwargs | {} |
middleware_method | <bound method CorsMiddleware.process_view of <corsheaders.middleware.CorsMiddleware object at 0x756b3a50a5d0>> |
request | <WSGIRequest: GET '/home/contacto/'> |
resolver | <URLResolver 'tq_boilerplate_wagtail_package.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=wagtail.core.views.serve, args=('home/contacto/',), kwargs={}, url_name=wagtail_serve, app_names=[], namespaces=[], route=^((?:[\w\-]+/)*)$) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x756b3a6424d0> |
wrapped_callback | <function serve at 0x756b3a048710> |
/usr/local/lib/python3.7/site-packages/wagtail/core/views.py
in serve
page, args, kwargs = site.root_page.specific.route(request, path_components)
for fn in hooks.get_hooks('before_serve_page'):
result = fn(page, request, args, kwargs)
if isinstance(result, HttpResponse):
return result
return page.serve(request, *args, **kwargs)…
def authenticate_with_password(request, page_view_restriction_id, page_id):
"""
Handle a submission of PasswordViewRestrictionForm to grant view access over a
subtree that is protected by a PageViewRestriction
Variable | Value |
---|---|
args | [] |
fn | <function check_view_restrictions at 0x756b3a236830> |
kwargs | {} |
page | <Contacto: Contacto> |
path | 'home/contacto/' |
path_components | ['home', 'contacto'] |
request | <WSGIRequest: GET '/home/contacto/'> |
result | None |
site | <Site: Al dia en salud [default]> |
/code/home/models/pages_models/contacto_models.py
in serve
request.session['user_data']['ciudad'] = ""
request.session.save()
context["ExitoPQRS"] = "True"
return render(request, self.template, context)
return render(request, self.template, context)…
Variable | Value |
---|---|
__class__ | <class 'home.models.pages_models.contacto_models.Contacto'> |
args | () |
context | {'is_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'description': '', 'title': ''}, 'page': <Contacto: Contacto>, 'policy_url': '#', 'request': <WSGIRequest: GET '/home/contacto/'>, 'self': <Contacto: Contacto>, 'show_menu_home': False, 'terms_url': '#'} |
form | <RegisterForm bound=False, valid=Unknown, fields=()> |
kwargs | {} |
request | <WSGIRequest: GET '/home/contacto/'> |
self | <Contacto: Contacto> |
/usr/local/lib/python3.7/site-packages/django/shortcuts.py
in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Return a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)…
return HttpResponse(content, content_type, status)
def redirect(to, *args, permanent=False, **kwargs):
"""
Return an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'is_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'description': '', 'title': ''}, 'page': <Contacto: Contacto>, 'policy_url': '#', 'request': <WSGIRequest: GET '/home/contacto/'>, 'self': <Contacto: Contacto>, 'show_menu_home': False, 'terms_url': '#'} |
request | <WSGIRequest: GET '/home/contacto/'> |
status | None |
template_name | 'home/contacto.html' |
using | None |
/usr/local/lib/python3.7/site-packages/django/template/loader.py
in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)…
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'is_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'description': '', 'title': ''}, 'page': <Contacto: Contacto>, 'policy_url': '#', 'request': <WSGIRequest: GET '/home/contacto/'>, 'self': <Contacto: Contacto>, 'show_menu_home': False, 'terms_url': '#'} |
request | <WSGIRequest: GET '/home/contacto/'> |
template | <django.template.backends.django.Template object at 0x756b38fc3050> |
template_name | 'home/contacto.html' |
using | None |
/usr/local/lib/python3.7/site-packages/django/template/backends/django.py
in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)…
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <Contacto: Contacto>, 'self': <Contacto: Contacto>, 'request': <WSGIRequest: GET '/home/contacto/'>, 'show_menu_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'title': '', 'description': ''}, 'is_home': False, 'terms_url': '#', 'policy_url': '#', 'base': 'https://portalaldiaensaluddev.azurewebsites.net', 'imagen_seo': None}] |
request | <WSGIRequest: GET '/home/contacto/'> |
self | <django.template.backends.django.Template object at 0x756b38fc3050> |
/usr/local/lib/python3.7/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)…
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <Contacto: Contacto>, 'self': <Contacto: Contacto>, 'request': <WSGIRequest: GET '/home/contacto/'>, 'show_menu_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'title': '', 'description': ''}, 'is_home': False, 'terms_url': '#', 'policy_url': '#', 'base': 'https://portalaldiaensaluddev.azurewebsites.net', 'imagen_seo': None}] |
self | <django.template.base.Template object at 0x756b38c58a10> |
/usr/local/lib/python3.7/site-packages/django/template/base.py
in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
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}, {}, {}, {'page': <Contacto: Contacto>, 'self': <Contacto: Contacto>, 'request': <WSGIRequest: GET '/home/contacto/'>, 'show_menu_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'title': '', 'description': ''}, 'is_home': False, 'terms_url': '#', 'policy_url': '#', 'base': 'https://portalaldiaensaluddev.azurewebsites.net', 'imagen_seo': None}] |
self | <django.template.base.Template object at 0x756b38c58a10> |
/usr/local/lib/python3.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <Contacto: Contacto>, 'self': <Contacto: Contacto>, 'request': <WSGIRequest: GET '/home/contacto/'>, 'show_menu_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'title': '', 'description': ''}, 'is_home': False, 'terms_url': '#', 'policy_url': '#', 'base': 'https://portalaldiaensaluddev.azurewebsites.net', 'imagen_seo': None}] |
node | <ExtendsNode: extends 'base.html'> |
self | [<ExtendsNode: extends 'base.html'>] |
/usr/local/lib/python3.7/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <Contacto: Contacto>, 'self': <Contacto: Contacto>, 'request': <WSGIRequest: GET '/home/contacto/'>, 'show_menu_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'title': '', 'description': ''}, 'is_home': False, 'terms_url': '#', 'policy_url': '#', 'base': 'https://portalaldiaensaluddev.azurewebsites.net', 'imagen_seo': None}] |
self | <ExtendsNode: extends 'base.html'> |
/usr/local/lib/python3.7/site-packages/django/template/loader_tags.py
in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)…
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, extra_context=None, isolated_context=False, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x756b38bd9a90> |
blocks | {'body_class': <Block Node: body_class. Contents: []>, 'content': <Block Node: content. Contents: [<TextNode: ' '>]>, 'extra_css': <Block Node: extra_css. Contents: [<TextNode: '\n '>, <TextNode: '\n '>]>, 'extra_js': <Block Node: extra_js. Contents: [<TextNode: '\n \n <script>\n '>]>, 'title': <Block Node: title. Contents: [<TextNode: '\n '>, <django.template.library.SimpleNode object at 0x756b38c58250>, <TextNode: ' -\n '>, <IfNode>, <TextNode: '\n '>]>} |
compiled_parent | <django.template.base.Template object at 0x756b38bd9e50> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <Contacto: Contacto>, 'self': <Contacto: Contacto>, 'request': <WSGIRequest: GET '/home/contacto/'>, 'show_menu_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'title': '', 'description': ''}, 'is_home': False, 'terms_url': '#', 'policy_url': '#', 'base': 'https://portalaldiaensaluddev.azurewebsites.net', 'imagen_seo': None}] |
node | <django.template.defaulttags.LoadNode object at 0x756b38bebd50> |
self | <ExtendsNode: extends 'base.html'> |
/usr/local/lib/python3.7/site-packages/django/template/base.py
in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
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}, {}, {}, {'page': <Contacto: Contacto>, 'self': <Contacto: Contacto>, 'request': <WSGIRequest: GET '/home/contacto/'>, 'show_menu_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'title': '', 'description': ''}, 'is_home': False, 'terms_url': '#', 'policy_url': '#', 'base': 'https://portalaldiaensaluddev.azurewebsites.net', 'imagen_seo': None}] |
self | <django.template.base.Template object at 0x756b38bd9e50> |
/usr/local/lib/python3.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n\n ' |
bits | ['', '\n', '', '\n' '<!DOCTYPE html>\n' '<html lang="en">\n' '\n' '<head>\n' ' <meta charset="utf-8"/>\n' ' \n' ' <meta http-equiv="X-UA-Compatible" content="IE=edge">\n' ' <meta name="viewport" content="width=device-width, initial-scale=1">\n' ' <meta name="robots" content="index">\n' ' <meta name="description" content="', '', ' ', 'Al día en salud es un portal dirigido a todas las personas que están ' 'interesadas en temas de salud.', '">\n' ' <meta property="og:type" content="" />\n' ' <meta property="og:title" content="', 'Al día en Salud', ' - ', 'Contacto', '" />\n <meta property="og:description" content="', '', '" />\n ', '\n \n <meta property="og:image" content="" />\n ', '\n <meta property="og:url" content="', 'http://portalaldiaensaludtest.azurewebsites.net/home/contacto/', '" />\n <meta property="og:site_name" content="', 'Al dia en salud', '" />\n' ' <meta name="twitter:card" content="summary">\n' ' <meta name="twitter:title" content="', 'Al día en Salud', ' - ', 'Contacto', '">\n <meta name="twitter:description" content="', '', '">\n <meta name="twitter:image" content="', '', '">\n' ' <meta name="twitter:site" content="">\n' ' <!-- Google Tag Manager -->\n' " <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n" " new Date().getTime(),event:'gtm.js'});var " 'f=d.getElementsByTagName(s)[0],\n' " j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n" ' ' "'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n" " })(window,document,'script','dataLayer','", 'GTM-3JWQBXN', "');</script>\n" ' <!-- End Google Tag Manager -->\n' ' <!-- Meta Pixel Code -->\n' ' <script>\n' ' !function(f,b,e,v,n,t,s)\n' ' {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n' ' n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n' " if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n" ' n.queue=[];t=b.createElement(e);t.async=!0;\n' ' t.src=v;s=b.getElementsByTagName(e)[0];\n' " s.parentNode.insertBefore(t,s)}(window, document,'script',\n" " 'https://connect.facebook.net/en_US/fbevents.js');\n" " fbq('init', '2044136665941938');\n" " fbq('track', 'PageView');\n" ' </script>\n' ' <noscript><img height="1" width="1" style="display:none"\n' ' ' 'src="https://www.facebook.com/tr?id=2044136665941938&ev=PageView&noscript=1"\n' ' /></noscript>\n' ' <!-- End Meta Pixel Code -->\n' ' <title>\n' ' ', '\n Al día en Salud -\n Contacto\n ', '\n' ' </title>\n' ' \n' ' <!-- <meta name="google-signin-client_id" ' 'content="566775947778-avpdq1jrah5v2vljb9lrrc9s9k9vs0aj.apps.googleusercontent.com"> ' '-->\n' '\n' ' <title>Al dia en salud</title>\n' ' \n' '\n' ' ', '\n' ' \n' ' <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>\n' ' \n' ' <link rel="icon" type="image/png" href="static/pix/favicon.png"/>\n' ' ', '', '\n' ' <link ' 'href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700" ' 'rel="stylesheet">\n' ' <link rel="stylesheet" ' 'href="https://use.fontawesome.com/releases/v5.7.2/css/all.css">\n' ' <link rel="stylesheet" type="text/css" ' 'href="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/>\n' ' <link rel="stylesheet" type="text/css" ' 'href="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick-theme.css"/>\n' ' <link rel="stylesheet" href=', '/static/css/lib/naui.min.css', '>\n <link rel="stylesheet" href=', '/static/css/lib/naui.mfirst.min.css', '>\n <link rel="stylesheet" href=', '/static/css/theme.css', '>\n <link rel="stylesheet" href=', '/static/css/styles.css', '>\n <link rel="stylesheet" href=', '/static/css/app.css', '>\n <link rel="icon" href="', '/static/pix/favicon.png', '">\n ', '\n \n ', '\n</head>\n\n<body class="', '', '">\n '… <trimmed 23151 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <Contacto: Contacto>, 'self': <Contacto: Contacto>, 'request': <WSGIRequest: GET '/home/contacto/'>, 'show_menu_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'title': '', 'description': ''}, 'is_home': False, 'terms_url': '#', 'policy_url': '#', 'base': 'https://portalaldiaensaluddev.azurewebsites.net', 'imagen_seo': None}] |
node | <Block Node: content. Contents: [<TextNode: ' '>]> |
self | [<django.template.defaulttags.LoadNode object at 0x756b38bebd50>, <TextNode: '\n'>, <django.template.library.SimpleNode object at 0x756b38bd9c10>, <TextNode: '\n<!DOCTYPE html>\n<html la'>, <Variable Node: self.search_description>, <TextNode: ' '>, <django.template.library.SimpleNode object at 0x756b38bebbd0>, <TextNode: '">\n <meta property="og'>, <django.template.library.SimpleNode object at 0x756b38beba90>, <TextNode: ' - '>, <Variable Node: self.title>, <TextNode: '" />\n <meta property="'>, <Variable Node: self.search_description>, <TextNode: '" />\n '>, <IfNode>, <TextNode: '\n <meta property="og:u'>, <Variable Node: self.url>, <TextNode: '" />\n <meta property="'>, <Variable Node: self.get_site.site_name>, <TextNode: '" />\n <meta name="twit'>, <django.template.library.SimpleNode object at 0x756b38c290d0>, <TextNode: ' - '>, <Variable Node: self.title>, <TextNode: '">\n <meta name="twitte'>, <Variable Node: self.search_description>, <TextNode: '">\n <meta name="twitte'>, <Variable Node: imagen_seo.url>, <TextNode: '">\n <meta name="twitte'>, <django.template.library.SimpleNode object at 0x756b38f1f510>, <TextNode: "');</script>\n <!-- End G">, <Block Node: title. Contents: [<TextNode: '\n '>, <django.template.library.SimpleNode object at 0x756b38c58250>, <TextNode: ' -\n '>, <IfNode>, <TextNode: '\n '>]>, <TextNode: '\n </title>\n \n <!'>, <TextNode: '\n \n <script src="ht'>, <IfNode>, <TextNode: '\n <link href="https://'>, <django.templatetags.static.StaticNode object at 0x756b38be79d0>, <TextNode: '>\n <link rel="styleshe'>, <django.templatetags.static.StaticNode object at 0x756b38be7410>, <TextNode: '>\n <link rel="styleshe'>, <django.templatetags.static.StaticNode object at 0x756b38bc4650>, <TextNode: '>\n <link rel="styleshe'>, <django.templatetags.static.StaticNode object at 0x756b38bc48d0>, <TextNode: '>\n <link rel="styleshe'>, <django.templatetags.static.StaticNode object at 0x756b38bc4890>, <TextNode: '>\n <link rel="icon" hr'>, <django.templatetags.static.StaticNode object at 0x756b38bd6b90>, <TextNode: '">\n '>, <Block Node: extra_css. Contents: [<TextNode: '\n '>, <TextNode: '\n '>]>, <TextNode: '\n</head>\n\n<body class="'>, <Block Node: body_class. Contents: []>, <TextNode: '">\n '>, <django.template.library.SimpleNode object at 0x756b38beb250>, <TextNode: '\n\n '>, <django.template.loader_tags.IncludeNode object at 0x756b38bd6f50>, <TextNode: '\n\n '>, <Block Node: content. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n \n '>, <django.template.loader_tags.IncludeNode object at 0x756b38bd6dd0>, <TextNode: '\n\n '>, <TextNode: '\n <!-- <script src="ht'>, <Block Node: extra_js. Contents: [<TextNode: '\n \n <script>\n '>]>, <TextNode: '\n\n \n</body>\n\n<script>'>] |
/usr/local/lib/python3.7/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <Contacto: Contacto>, 'self': <Contacto: Contacto>, 'request': <WSGIRequest: GET '/home/contacto/'>, 'show_menu_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'title': '', 'description': ''}, 'is_home': False, 'terms_url': '#', 'policy_url': '#', 'base': 'https://portalaldiaensaluddev.azurewebsites.net', 'imagen_seo': None}] |
self | <Block Node: content. Contents: [<TextNode: ' '>]> |
/usr/local/lib/python3.7/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)…
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: '\n'>, <django.template.library.SimpleNode object at 0x756b391c0350>, <TextNode: '\n<main>\n \n <link re'>, <django.templatetags.static.StaticNode object at 0x756b38d68e50>, <TextNode: ' />\n\n <section class="'>, <django.template.defaulttags.CsrfTokenNode object at 0x756b38d33cd0>, <TextNode: '\n\n <div cl'>, <IfNode>, <TextNode: ' \n\n </d'>, <IfNode>, <TextNode: '>\n <sp'>, <IfNode>, <TextNode: '>\n <sp'>, <IfNode>, <TextNode: '>\n '>, <IfNode>, <TextNode: '\n \n'>, <Variable Node: user_data.tipo_id>, <TextNode: '" type="hidden">\n\n '>, <IfNode>, <TextNode: 'required '>, <IfNode>, <TextNode: '>\n <sp'>, <IfNode>, <TextNode: ' </span>\n '>, <IfNode>, <TextNode: '\n </se'>, <Variable Node: user_data.countryid>, <TextNode: '" type="hidden">\n\n '>, <Variable Node: user_data.departmentid>, <TextNode: '" type="hidden">\n '>, <Variable Node: user_data.ciudad>, <TextNode: '" type="hidden">\n '>, <IfNode>, <TextNode: '>Hombre</option>\n '>, <IfNode>, <TextNode: '>Mujer</option>\n '>, <IfNode>, <TextNode: '>No especifica</option>\n '>, <IfNode>, <TextNode: ' minlength="7" maxlength='>, <IfNode>, <TextNode: ' required>\n '>, <IfNode>, <TextNode: ' </span>\n '>, <IfNode>, <TextNode: '\n\n\n'>, <IfNode>, <TextNode: '\n\n <script src="https:'>, <django.template.library.SimpleNode object at 0x756b38bccbd0>, <TextNode: '\n '>, <django.template.library.SimpleNode object at 0x756b38bccad0>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n<script> \n var exito'>, <Variable Node: ExitoPQRS | safe>, <TextNode: '" \n var apellidos = "'>, <Variable Node: user_data.primer_apellido | safe>, <TextNode: '" \n var ErrorCRM = "'>, <Variable Node: ErrorCRM | safe>, <TextNode: '" \n</script>\n<script src='>, <django.templatetags.static.StaticNode object at 0x756b38bcc950>, <TextNode: '></script>\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x756b38bd9a90> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <Contacto: Contacto>, 'self': <Contacto: Contacto>, 'request': <WSGIRequest: GET '/home/contacto/'>, 'show_menu_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'title': '', 'description': ''}, 'is_home': False, 'terms_url': '#', 'policy_url': '#', 'base': 'https://portalaldiaensaluddev.azurewebsites.net', 'imagen_seo': None}] |
push | <Block Node: content. Contents: [<TextNode: '\n'>, <django.template.library.SimpleNode object at 0x756b391c0350>, <TextNode: '\n<main>\n \n <link re'>, <django.templatetags.static.StaticNode object at 0x756b38d68e50>, <TextNode: ' />\n\n <section class="'>, <django.template.defaulttags.CsrfTokenNode object at 0x756b38d33cd0>, <TextNode: '\n\n <div cl'>, <IfNode>, <TextNode: ' \n\n </d'>, <IfNode>, <TextNode: '>\n <sp'>, <IfNode>, <TextNode: '>\n <sp'>, <IfNode>, <TextNode: '>\n '>, <IfNode>, <TextNode: '\n \n'>, <Variable Node: user_data.tipo_id>, <TextNode: '" type="hidden">\n\n '>, <IfNode>, <TextNode: 'required '>, <IfNode>, <TextNode: '>\n <sp'>, <IfNode>, <TextNode: ' </span>\n '>, <IfNode>, <TextNode: '\n </se'>, <Variable Node: user_data.countryid>, <TextNode: '" type="hidden">\n\n '>, <Variable Node: user_data.departmentid>, <TextNode: '" type="hidden">\n '>, <Variable Node: user_data.ciudad>, <TextNode: '" type="hidden">\n '>, <IfNode>, <TextNode: '>Hombre</option>\n '>, <IfNode>, <TextNode: '>Mujer</option>\n '>, <IfNode>, <TextNode: '>No especifica</option>\n '>, <IfNode>, <TextNode: ' minlength="7" maxlength='>, <IfNode>, <TextNode: ' required>\n '>, <IfNode>, <TextNode: ' </span>\n '>, <IfNode>, <TextNode: '\n\n\n'>, <IfNode>, <TextNode: '\n\n <script src="https:'>, <django.template.library.SimpleNode object at 0x756b38bccbd0>, <TextNode: '\n '>, <django.template.library.SimpleNode object at 0x756b38bccad0>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n<script> \n var exito'>, <Variable Node: ExitoPQRS | safe>, <TextNode: '" \n var apellidos = "'>, <Variable Node: user_data.primer_apellido | safe>, <TextNode: '" \n var ErrorCRM = "'>, <Variable Node: ErrorCRM | safe>, <TextNode: '" \n</script>\n<script src='>, <django.templatetags.static.StaticNode object at 0x756b38bcc950>, <TextNode: '></script>\n'>]> |
self | <Block Node: content. Contents: [<TextNode: ' '>]> |
/usr/local/lib/python3.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n' |
bits | ['\n'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <Contacto: Contacto>, 'self': <Contacto: Contacto>, 'request': <WSGIRequest: GET '/home/contacto/'>, 'show_menu_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'title': '', 'description': ''}, 'is_home': False, 'terms_url': '#', 'policy_url': '#', 'base': 'https://portalaldiaensaluddev.azurewebsites.net', 'imagen_seo': None}] |
node | <django.template.library.SimpleNode object at 0x756b391c0350> |
self | [<TextNode: '\n'>, <django.template.library.SimpleNode object at 0x756b391c0350>, <TextNode: '\n<main>\n \n <link re'>, <django.templatetags.static.StaticNode object at 0x756b38d68e50>, <TextNode: ' />\n\n <section class="'>, <django.template.defaulttags.CsrfTokenNode object at 0x756b38d33cd0>, <TextNode: '\n\n <div cl'>, <IfNode>, <TextNode: ' \n\n </d'>, <IfNode>, <TextNode: '>\n <sp'>, <IfNode>, <TextNode: '>\n <sp'>, <IfNode>, <TextNode: '>\n '>, <IfNode>, <TextNode: '\n \n'>, <Variable Node: user_data.tipo_id>, <TextNode: '" type="hidden">\n\n '>, <IfNode>, <TextNode: 'required '>, <IfNode>, <TextNode: '>\n <sp'>, <IfNode>, <TextNode: ' </span>\n '>, <IfNode>, <TextNode: '\n </se'>, <Variable Node: user_data.countryid>, <TextNode: '" type="hidden">\n\n '>, <Variable Node: user_data.departmentid>, <TextNode: '" type="hidden">\n '>, <Variable Node: user_data.ciudad>, <TextNode: '" type="hidden">\n '>, <IfNode>, <TextNode: '>Hombre</option>\n '>, <IfNode>, <TextNode: '>Mujer</option>\n '>, <IfNode>, <TextNode: '>No especifica</option>\n '>, <IfNode>, <TextNode: ' minlength="7" maxlength='>, <IfNode>, <TextNode: ' required>\n '>, <IfNode>, <TextNode: ' </span>\n '>, <IfNode>, <TextNode: '\n\n\n'>, <IfNode>, <TextNode: '\n\n <script src="https:'>, <django.template.library.SimpleNode object at 0x756b38bccbd0>, <TextNode: '\n '>, <django.template.library.SimpleNode object at 0x756b38bccad0>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n<script> \n var exito'>, <Variable Node: ExitoPQRS | safe>, <TextNode: '" \n var apellidos = "'>, <Variable Node: user_data.primer_apellido | safe>, <TextNode: '" \n var ErrorCRM = "'>, <Variable Node: ErrorCRM | safe>, <TextNode: '" \n</script>\n<script src='>, <django.templatetags.static.StaticNode object at 0x756b38bcc950>, <TextNode: '></script>\n'>] |
/usr/local/lib/python3.7/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <Contacto: Contacto>, 'self': <Contacto: Contacto>, 'request': <WSGIRequest: GET '/home/contacto/'>, 'show_menu_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'title': '', 'description': ''}, 'is_home': False, 'terms_url': '#', 'policy_url': '#', 'base': 'https://portalaldiaensaluddev.azurewebsites.net', 'imagen_seo': None}] |
self | <django.template.library.SimpleNode object at 0x756b391c0350> |
/usr/local/lib/python3.7/site-packages/django/template/library.py
in render
def __init__(self, func, takes_context, args, kwargs, target_var):
super().__init__(func, takes_context, args, kwargs)
self.target_var = target_var
def render(self, context):
resolved_args, resolved_kwargs = self.get_resolved_arguments(context)
output = self.func(*resolved_args, **resolved_kwargs)…
if self.target_var is not None:
context[self.target_var] = output
return ''
if context.autoescape:
output = conditional_escape(output)
return output
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'page': <Contacto: Contacto>, 'self': <Contacto: Contacto>, 'request': <WSGIRequest: GET '/home/contacto/'>, 'show_menu_home': False, 'menu': <generator object PageTQ.get_menu at 0x756b38d7acd0>, 'meta': {'title': '', 'description': ''}, 'is_home': False, 'terms_url': '#', 'policy_url': '#', 'base': 'https://portalaldiaensaluddev.azurewebsites.net', 'imagen_seo': None}] |
resolved_args | [] |
resolved_kwargs | {} |
self | <django.template.library.SimpleNode object at 0x756b391c0350> |
/code/home/templatetags/snippets_tags.py
in crm_get_countries
@register.simple_tag()
def crm_get_countries():
"""
Request to SmartData to get all cities
"""
smartdata = SmartData()…
all_countries = smartdata.country.get_all()
return all_countries
@register.simple_tag()
def crm_get_city(city_id):
/code/smartdata/smartdata.py
in __init__
department: Department = Department()
neighborhood: Neighborhood = Neighborhood()
user: User = User()
def __init__(self, custom_settings_path: str = None) -> None:
self.custom_settings_path = custom_settings_path
self._env_smartdata_validate()
self._token_auth()…
self.city.token = self.token
self.city.smartdata_host = self.smartdata_host
self.department.token = self.token
self.department.smartdata_host = self.smartdata_host
self.country.token = self.token
self.country.smartdata_host = self.smartdata_host
Variable | Value |
---|---|
custom_settings_path | None |
self | SmartData(smartdata_auth_host='https://componenteseguridadtest.tecnoquimicas.com', smartdata_host='https://smartdata-customer-test.azurewebsites.net', smartdata_host_contact='https://smartdata-contactotq-backend-test.azurewebsites.net', client_id='smartdata.ui', client_secret='YzQ1NWEwOGMtN2M3OS00YjY3LTk0NGYtNWU3NGM5YTY0ZTg0', username='actason', password='GXLwlcnZ5VKt', path_auth='/connect/token', grant_type='password', scope='openid profile SMART_DATA', token=None, custom_settings_path=None, city=City(token=None, smartdata_host=None, path='/api/City', message=None), country=Country(token=None, smartdata_host=None, path='/api/Country', message=None), department=Department(token=None, smartdata_host=None, path='/api/Department', message=None), neighborhood=Neighborhood(token=None, smartdata_host=None, path='/api/Neighborhood', message=None), user=User(token=None, smartdata_host=None, path='/api', rol_id=794, message=None)) |
/code/smartdata/smartdata.py
in _token_auth
request = Request(url_auth_token)
response_request = request.post(data=data_required, form=True)
try:
if request.status == 200:
self.token = response_request.get(key_response_token)
else:
raise Exception("Error en la peticion al componente de seguridad respuesta: "+str(request.status))…
except Exception as error:
raise
def _get_auth_data(self) -> dict:
data_required = {
Variable | Value |
---|---|
data_required | {'client_id': 'smartdata.ui', 'client_secret': 'YzQ1NWEwOGMtN2M3OS00YjY3LTk0NGYtNWU3NGM5YTY0ZTg0', 'grant_type': 'password', 'password': 'GXLwlcnZ5VKt', 'scope': 'openid profile SMART_DATA', 'username': 'actason'} |
key_response_token | 'access_token' |
request | <smartdata.services.requests.Request object at 0x756b39009a90> |
response_request | False |
self | SmartData(smartdata_auth_host='https://componenteseguridadtest.tecnoquimicas.com', smartdata_host='https://smartdata-customer-test.azurewebsites.net', smartdata_host_contact='https://smartdata-contactotq-backend-test.azurewebsites.net', client_id='smartdata.ui', client_secret='YzQ1NWEwOGMtN2M3OS00YjY3LTk0NGYtNWU3NGM5YTY0ZTg0', username='actason', password='GXLwlcnZ5VKt', path_auth='/connect/token', grant_type='password', scope='openid profile SMART_DATA', token=None, custom_settings_path=None, city=City(token=None, smartdata_host=None, path='/api/City', message=None), country=Country(token=None, smartdata_host=None, path='/api/Country', message=None), department=Department(token=None, smartdata_host=None, path='/api/Department', message=None), neighborhood=Neighborhood(token=None, smartdata_host=None, path='/api/Neighborhood', message=None), user=User(token=None, smartdata_host=None, path='/api', rol_id=794, message=None)) |
url_auth_token | 'https://componenteseguridadtest.tecnoquimicas.com/connect/token' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CLIENT_IP | '54.81.185.66:39312' |
HTTP_DISGUISED_HOST | 'portalaldiaensaludtest.azurewebsites.net' |
HTTP_HOST | 'portalaldiaensaludtest.azurewebsites.net' |
HTTP_MAX_FORWARDS | '10' |
HTTP_REFERER | 'http://portalaldiaensaludtest.azurewebsites.net/home/contacto/' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_WAS_DEFAULT_HOSTNAME | 'portalaldiaensaludtest.azurewebsites.net' |
HTTP_X_APPSERVICE_PROTO | 'https' |
HTTP_X_ARR_LOG_ID | '6d2dbf5a-c7e6-4db6-88f9-9e4b9a4b8254' |
HTTP_X_ARR_SSL | ('2048|256|CN=Microsoft Azure TLS Issuing CA 01, O=Microsoft Corporation, ' 'C=US|CN=*.azurewebsites.net, O=Microsoft Corporation, L=Redmond, S=WA, C=US') |
HTTP_X_CLIENT_IP | '54.81.185.66' |
HTTP_X_CLIENT_PORT | '39312' |
HTTP_X_FORWARDED_FOR | '54.81.185.66:39312' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_TLSVERSION | '1.3' |
HTTP_X_ORIGINAL_URL | '/home/contacto/' |
HTTP_X_SITE_DEPLOYMENT_ID | 'portalaldiaensaludtest' |
HTTP_X_WAWS_UNENCODED_URL | '/home/contacto/' |
PATH_INFO | '/home/contacto/' |
QUERY_STRING | '' |
RAW_URI | '/home/contacto/' |
REMOTE_ADDR | '169.254.130.1' |
REMOTE_PORT | '26317' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '0.0.0.0' |
SERVER_PORT | '8001' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'gunicorn/20.0.4' |
gunicorn.socket | <socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('169.254.130.2', 8001), raddr=('169.254.130.1', 26317)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x756b38f41210> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x756b38f41550> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
tq_boilerplate_wagtail_package.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALGORITHM | 'HS256' |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
AZURE_ACCOUNT_KEY | '********************' |
AZURE_ACCOUNT_NAME | 'aldiaensaludtest' |
AZURE_CONNECTION_STRING | 'DefaultEndpointsProtocol=https;AccountName=aldiaensaludtest;AccountKey=aasromsrj+FyglMwdIB3e5LO1rrpWHjfbfn2oc0W/5W5Fym5VzpwvLuOnkCiHXaMcheiqqORK9Qg+AStzkPevg==;EndpointSuffix=core.windows.net' |
AZURE_CONTAINER | 'portalaldiaensaludtest' |
BASE_DIR | '/code' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CANAL_CORREO_ADS | '6' |
CANAL_CORREO_SM | '5' |
CLIENT_ID | '1addf097-0bca-7cb5-aa5a-b9cd9e15b39d' |
CLIENT_SECRET | '********************' |
CORREO_SM | 'info@tqatulado.com' |
CORS_ALLOW_ALL_ORIGINS | True |
COUNTRIES_PATH | 'C:/Users/andre/OneDrive/Documentos/Trabajo/Portal-Winny/static/data/countries.json' |
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': 'sql_server.pyodbc', 'HOST': 'serverportalaldiaensalud.database.windows.net', 'NAME': 'bdportalaldiaensaludtest', 'OPTIONS': {'driver': 'ODBC Driver 17 for SQL Server'}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'aplportalaldiaensaludtest'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DAYS_TO_INACTIVE_USER | 90 |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'storages.backends.azure_storage.AzureStorage' |
DEFAULT_FROM_EMAIL | 'info@aldiaensalud.com' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_LOGGING | {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}, 'require_debug_true': {'()': 'django.utils.log.RequireDebugTrue'}}, 'formatters': {'django.server': {'()': 'django.utils.log.ServerFormatter', 'format': '[{server_time}] {message}', 'style': '{'}}, 'handlers': {'console': {'class': 'logging.StreamHandler', 'filters': ['require_debug_true'], 'level': 'INFO'}, 'django.server': {'class': 'logging.StreamHandler', 'formatter': 'django.server', 'level': 'INFO'}, 'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}, 'slack_admins': {'class': 'tq_wagtail_app.slack_logger.SlackExceptionHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'django': {'handlers': ['console', 'mail_admins'], 'level': 'INFO'}, 'django.server': {'handlers': ['django.server'], 'level': 'INFO', 'propagate': False}}, 'version': 1} |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.sendgrid.net' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'apikey' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
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 | 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' |
FROM_NAME_CORREO_ADS | 'Portal al dia en salud' |
FROM_NAME_CORREO_SM | 'Portal TQ a tu lado' |
GEOIP_PATH | 'home/GeoLite2' |
GESDAP_AUTH_ID | '29' |
GESDAP_AUTH_ID_SM | '67' |
GESDAP_CLIENT_ID | '2f165d26-9399-d4f2-1908-157dcc271a38' |
GESDAP_CLIENT_SECRET | '********************' |
GESDAP_HOST | 'https://gesdapapigwtest.tecnoquimicas.com' |
GESDAP_PASSWORD | '********************' |
GESDAP_SCOPE | 'openid api_gesdap_roles' |
GESDAP_SOURCE_ID | 2 |
GESDAP_USERNAME | 'actason' |
HOST | 'https://portalaldiaensaludtest.azurewebsites.net' |
HOST_BASE | 'https://portalaldiaensaluddev.azurewebsites.net' |
HOST_BUSQUEDA_ADS | 'https://portalaldiaensaludtest.azurewebsites.net/home/busqueda-auto/' |
HOST_BUSQUEDA_SALUD_MENTAL | 'https://prueba-redireccion.tqdesa.com/home/busqueda-auto/' |
HOST_SALUD_MENTAL | 'http://prueba-redireccion.tqdesa.com' |
ID_MARCA | '1' |
ID_NEGOCIO | '5' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['home', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django_extensions', 'django.contrib.sitemaps', 'wagtailmetadata', 'rest_framework', 'corsheaders', 'tq_wagtail_app.apps.TqWagtailAppConfig', 'wagtail.contrib.table_block', 'wagtail.contrib.forms', 'wagtail.contrib.redirects', 'wagtail.embeds', 'wagtail.sites', 'wagtail.users', 'wagtail.snippets', 'wagtail.documents', 'wagtail.images', 'wagtail.search', 'wagtail.admin', 'wagtail.core', 'wagtail.contrib.settings', 'wagtail.contrib.styleguide', 'modelcluster', 'taggit', 'wagtail.contrib.modeladmin', 'robots', 'wagtailtrans', 'tq_apps_integrator.apps.TqAppsIntegratorConfig', 'Buscador_Wagtail.apps.BuscadorWagtailConfig'] |
INTERNAL_IPS | [] |
JWT_SECRET_KEY | '********************' |
LANGUAGES | [('en', 'Ingles'), ('co', 'Colombia'), ('ec', 'Ecuador')] |
LANGUAGES_BIDI | ['he', 'ar', '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 | '/code/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'corsheaders.middleware.CorsMiddleware', 'wagtail.core.middleware.SiteMiddleware', 'wagtailtrans.middleware.TranslationMiddleware', 'wagtail.contrib.redirects.middleware.RedirectMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PQRS_ACTIVITY_ID | '1' |
PQRS_CAMPAING_ID | '1' |
PQRS_CASUAL_ID | '3' |
PQRS_CONTACT_POINT | '0' |
PQRS_HOST | 'https://prod-05.westus.logic.azure.com/workflows/d4c4afabc5b944888441ca3157e95dff/triggers/manual/paths/invoke/addPQRs?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=jRoyoMlE5W_wNO50OQrItCTe5MCZtaaShyLPTNGnPF4' |
PQRS_PREGUNTA_CAUSAL | '' |
PQRS_PREGUNTA_SUBTIPO | '3' |
PQRS_PREGUNTA_TIPO | '1' |
PQRS_PROGRAM_ID | '1' |
PQRS_PUBLIC_TYPE | '1' |
PQRS_QUEJA_CAUSAL | '' |
PQRS_QUEJA_SUBTIPO | '7' |
PQRS_QUEJA_TIPO | '2' |
PQRS_RECLAMO_SUBTIPO | '8' |
PQRS_RECLAMO_TIPO | '3' |
PQRS_REQUEST_SUBTYPE | '3' |
PQRS_REQUEST_TYPE | '1' |
PQRS_SOLICITUD_CAUSAL | '' |
PQRS_SOLICITUD_SUBTIPO | '15' |
PQRS_SOLICITUD_TIPO | '4' |
PREPEND_WWW | False |
PROJECT_DIR | '/code/tq_boilerplate_wagtail_package' |
REST_FRAMEWORK | {'DEFAULT_PERMISSION_CLASSES': []} |
ROOT_URLCONF | 'tq_boilerplate_wagtail_package.urls' |
S | <RegexFlag.DOTALL: 16> |
SCOOPE | 'api_fidelizacion_roles' |
SEARCHER_GROUP | None |
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 | None |
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 | 'tq_boilerplate_wagtail_package.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ADS_NAME | 'Al dia en salud' |
SITE_ID | 2 |
SMARTDATA_AUTH_HOST | 'https://componenteseguridadtest.tecnoquimicas.com' |
SMARTDATA_CLIENT_ID | 'smartdata.ui' |
SMARTDATA_CLIENT_SECRET | '********************' |
SMARTDATA_CONTACTO_TQ_HOST | 'https://smartdata-contactotq-backend-test.azurewebsites.net' |
SMARTDATA_HOST | 'https://smartdata-customer-test.azurewebsites.net' |
SMARTDATA_PASSWORD | '********************' |
SMARTDATA_PROFILE_ID_ADS | '70' |
SMARTDATA_PROFILE_ID_SM | '17' |
SMARTDATA_ROLID | '794' |
SMARTDATA_ROL_ID_ADS | '836' |
SMARTDATA_ROL_ID_SM | '796' |
SMARTDATA_USERNAME | 'actason' |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/code/static' |
STATIC_URL | '/static/' |
SUBJECT_ACTIVACION_ADS | 'Activacion de tu cuenta en Al dia en Salud' |
SUBJECT_ACTIVACION_SM | 'Activacion de tu cuenta en a tu lado TQ' |
SUBJECT_RECUPERACION_PASS | '********************' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/code/tq_boilerplate_wagtail_package/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' |
TQ_BANCO_DE_IMAGENES | 'https://bancodeimagenesapiprod.azurewebsites.net/api/v1/recurso/route/1/{codigo}-{pais}/{tipo_de_imagen}' |
TQ_CAMPAIGN_ACTIVITY_RESPONSE_ID | '41' |
TQ_CAMPAIGN_CONTACT_POINT_ID | '7' |
TQ_CAMPAIGN_CONTACT_POINT_ID2 | '6' |
TQ_DAYS_TO_INACTIVE_USER | 90 |
TQ_SOAP_CABECERA | {'compania': 'TQ', 'host': '127.0.0.1', 'idAplicacion': 'Sensitive2021', 'pais': 'CO', 'usuario': 'elfcarvajal', 'uuid': '123'} |
TQ_SOAP_CAMPAIGN | None |
TQ_SOAP_CONSUMER | None |
TQ_SOAP_INTEGRATION | None |
TQ_SOAP_ROL | 'PACIENTE_AL_DIA_EN_SALUD' |
TQ_SOAP_ROL2 | 'A_TU_LADO' |
TQ_SOAP_WSDL_CAMPAIGN | 'http://190.85.249.59/MercadeoRelacional/Services/IntegrationService.asmx?wsdl' |
TQ_SOAP_WSDL_CONSUMER | 'https://fwsoatest.tecnoquimicas.com/ConsumidorServicio/v1?wsdl' |
TQ_SOAP_WSDL_INTEGRATION | 'https://fwsoatest.tecnoquimicas.com/PQRSServicio/v1?wsdl' |
TQ_SOAP_WSDL_LOGIN | 'http://190.85.249.59/MercadeoRelacional/Services/dataproviderservice.asmx?WSDL' |
TQ_SOAP_WSDL_SECURTY | 'http://190.85.249.59/MercadeoRelacional/Services/IntegrationService.asmx?wsdl' |
TQ_SUBTIPOS_PQRS | {'pregunta': 3, 'queja': 7, 'reclamo': 0, 'solicitud': 15} |
TQ_TERMINOS_Y_CONDICIONES | 'https://gesdapapigwtest.tecnoquimicas.com/api/configuracion/modelos-autorizacion/{codigo}/texto' |
TQ_TIPOS_PQRS | {'pregunta': 1, 'queja': 2, 'reclamo': 0, 'solicitud': 4} |
TQ_USE_SOAP | False |
URL_API_MENSAJES | '********************' |
URL_COMPONENTE_SEGURIDAD | 'https://componenteseguridad.tecnoquimicas.com/connect/token' |
USE_AZURE | 'False' |
USE_I18N | True |
USE_L10N | True |
USE_LOCAL_DB | ' ' |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WAGTAILADMIN_NOTIFICATION_FROM_EMAIL | 'info@aldiaensalud.com' |
WAGTAILTRANS_HIDE_TRANSLATION_TREES | False |
WAGTAIL_I18N_ENABLED | True |
WAGTAIL_SITE_NAME | 'gastroFast_wagtail' |
WSGI_APPLICATION | 'tq_boilerplate_wagtail_package.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.