get() returned more than one Itinerary -- it returned 3!
Request Method: | GET |
---|---|
Request URL: | http://travelposting.com/en/category/destination/129 |
Django Version: | 2.1 |
Exception Type: | MultipleObjectsReturned |
Exception Value: | get() returned more than one Itinerary -- it returned 3! |
Exception Location: | /var/www/projects/travelposting/.venv/lib/python3.7/site-packages/django/db/models/query.py in get, line 403 |
Python Executable: | /var/www/projects/travelposting/.venv/bin/python |
Python Version: | 3.7.3 |
Python Path: | ['/var/www/projects/travelposting/travel', '/var/www/projects/travelposting/.venv/bin', '/var/www/projects/travelposting/.venv/lib/python37.zip', '/var/www/projects/travelposting/.venv/lib/python3.7', '/var/www/projects/travelposting/.venv/lib/python3.7/lib-dynload', '/usr/lib/python3.7', '/var/www/projects/travelposting/.venv/lib/python3.7/site-packages', '/var/www/projects/travelposting/.venv/src/django-ads', '/var/www/projects/travelposting/.venv/src/django-star-ratings'] |
Server time: | Thu, 28 Mar 2024 08:11:11 -0400 |
In template /var/www/projects/travelposting/travel/main/templates/base.html
, error at line 0
1 | {% load cms_tags menu_tags sekizai_tags favtags staticfiles i18n %} |
---|---|
2 | <!DOCTYPE html> |
3 | <html class="has-fixed-top" prefix="og: http://ogp.me/ns#" lang="es"> |
4 | <head> |
5 | <meta charset="UTF-8" /> |
6 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
7 | <meta name="p:domain_verify" content="e2424510280fa4ceafe4f7b218d74f53"/> |
8 | <link rel="manifest" href="{% static "manifest.json" %}"> |
9 | {% block feed %} |
10 | {% endblock feed %} |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/django/template/base.py
in _resolve_lookup
detail and shouldn't be called by external code. Use Variable.resolve()
instead.
"""
current = context
try: # catch-all for silent variable failures
for bit in self.lookups:
try: # dictionary lookup
current = current[bit]...
# ValueError/IndexError are for numpy.array lookup on
# numpy < 1.9 and 1.9+ respectively
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(type(current), bit):
Variable | Value |
---|---|
bit | 'itinerario2' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
current | <Destination: Mayan Escape> |
self | <Variable: 'destino.itinerario2'> |
template_name | 'services/destination/detail_destination.html' |
/var/www/projects/travelposting/.venv/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 | MultipleObjectsReturned('get() returned more than one Itinerary -- it returned 3!') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f07e044cc88>> |
request | <WSGIRequest: GET '/en/category/destination/129'> |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/django/core/handlers/base.py
in _get_response
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
return response
def process_exception_by_middleware(self, exception, request):
"""
Pass the exception to the exception middleware. If no middleware
Variable | Value |
---|---|
callback | <function DetailDestinationView at 0x7f07d0b526a8> |
callback_args | () |
callback_kwargs | {'slug': '129'} |
middleware_method | <function CampaignMiddleware.process_view at 0x7f07d0d04ae8> |
request | <WSGIRequest: GET '/en/category/destination/129'> |
resolver | <URLResolver 'config.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=apps.landing_page.views.DetailDestinationView, args=(), kwargs={'slug': '129'}, url_name=view_detail_destination, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f07e044cc88> |
wrapped_callback | <function DetailDestinationView at 0x7f07cd884268> |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/django/core/handlers/base.py
in _get_response
raise ValueError(
"%s.process_template_response didn't return an "
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
return response
def process_exception_by_middleware(self, exception, request):
Variable | Value |
---|---|
callback | <function DetailDestinationView at 0x7f07d0b526a8> |
callback_args | () |
callback_kwargs | {'slug': '129'} |
middleware_method | <function CampaignMiddleware.process_view at 0x7f07d0d04ae8> |
request | <WSGIRequest: GET '/en/category/destination/129'> |
resolver | <URLResolver 'config.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=apps.landing_page.views.DetailDestinationView, args=(), kwargs={'slug': '129'}, url_name=view_detail_destination, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f07e044cc88> |
wrapped_callback | <function DetailDestinationView at 0x7f07cd884268> |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Return the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content...
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
retval | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/django/template/response.py
in rendered_content
This *does not* set the final content of the response. To set the
response content, you must either call render(), or set the
content explicitly using the value of this property.
"""
template = self.resolve_template(self.template_name)
context = self.resolve_context(self.context_data)
content = template.render(context, self._request)...
return content
def add_post_render_callback(self, callback):
"""Add a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
context | {'comment': <QuerySet []>, 'data': None, 'destino': <Destination: Mayan Escape>, 'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'map': None, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7f07ce242d30> |
/var/www/projects/travelposting/.venv/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}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
request | <WSGIRequest: GET '/en/category/destination/129'> |
self | <django.template.backends.django.Template object at 0x7f07ce242d30> |
/var/www/projects/travelposting/.venv/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}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
self | <django.template.base.Template object at 0x7f07cd5a1ba8> |
/var/www/projects/travelposting/.venv/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}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
self | <django.template.base.Template object at 0x7f07cd5a1ba8> |
/var/www/projects/travelposting/.venv/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'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
node | <ExtendsNode: extends "base.html"> |
self | [<TextNode: '\n\n'>, <ExtendsNode: extends "base.html">] |
/var/www/projects/travelposting/.venv/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}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
self | <ExtendsNode: extends "base.html"> |
/var/www/projects/travelposting/.venv/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 0x7f07ce2096a0> |
blocks | {'body': <Block Node: body. Contents: [<TextNode: ' <body> '>]>, 'content': <Block Node: content. Contents: []>, 'extracss': <Block Node: extracss. Contents: [<TextNode: ' '>]>, 'extrajs': <Block Node: extrajs. Contents: [<TextNode: ' '>]>, 'extrajsinit': <Block Node: extrajsinit. Contents: [<TextNode: '\n <!-- JS Global C'>, <django.templatetags.static.StaticNode object at 0x7f07ce543080>, <TextNode: '"></script>\n\n <scr'>, <django.templatetags.static.StaticNode object at 0x7f07ce5434a8>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce5437f0>, <TextNode: '"></script>\n '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7f07ce543748>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n <script src="'>, <django.templatetags.static.StaticNode object at 0x7f07cd934630>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07cd934048>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce5b4d30>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce5b4978>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce5b4cc0>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce455978>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce455358>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce455400>, <TextNode: '"></script>\n <!-- '>, <django.templatetags.static.StaticNode object at 0x7f07ce4554e0>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce455fd0>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce455a90>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce455860>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce4559e8>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce455208>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce4555c0>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce455dd8>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce455e48>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce455278>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce455b70>, <TextNode: '"></script>\n <!-- '>, <django.templatetags.static.StaticNode object at 0x7f07ce455b38>, <TextNode: '"></script> -->\n <'>, <django.templatetags.static.StaticNode object at 0x7f07ce4557b8>, <TextNode: '"></script> -->\n <'>, <django.templatetags.static.StaticNode object at 0x7f07ce455d30>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce455908>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce455be0>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce455e10>, <TextNode: '"></script>\n <scri'>, <django.templatetags.static.StaticNode object at 0x7f07ce455390>, <TextNode: '"></script>\n <!-- '>, <django.templatetags.static.StaticNode object at 0x7f07ce455470>, <TextNode: '"></script> -->\n <'>, <django.templatetags.static.StaticNode object at 0x7f07ce2b3940>, <TextNode: '"></script>\n\n\n <!-'>, <django.templatetags.i18n.TranslateNode object at 0x7f07ce2b3da0>, <TextNode: '",\n });\n '>]>, 'feed': <Block Node: feed. Contents: [<TextNode: '\n '>]>, 'footer': <Block Node: footer. Contents: [<TextNode: '\n '>, <django.temp... <trimmed 4420 bytes string> |
compiled_parent | <django.template.base.Template object at 0x7f07cd327f28> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
node | <django.template.defaulttags.LoadNode object at 0x7f07ce3b67f0> |
self | <ExtendsNode: extends "base.html"> |
/var/www/projects/travelposting/.venv/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}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
self | <django.template.base.Template object at 0x7f07cd327f28> |
/var/www/projects/travelposting/.venv/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' '<!DOCTYPE html>\n' '<html class="has-fixed-top" prefix="og: http://ogp.me/ns#" lang="es">\n' ' <head>\n' ' <meta charset="UTF-8" />\n' ' <meta name="viewport" content="width=device-width, initial-scale=1" ' '/>\n' ' <meta name="p:domain_verify" ' 'content="e2424510280fa4ceafe4f7b218d74f53"/>\n' ' <link rel="manifest" href="', '/static/manifest.json', '">\n ', '\n ', '\n ', '', '\n <title>', '', '</title>\n <meta name="description" content="', '', '">\n <meta property="og:title" content="', '', '" />\n <meta property="og:url" content="', '', '" />\n <meta property="og:description" content="', '', '">\n' ' <meta property="og:site_name" content="Travelposting"/>\n' ' <meta property="og:image" ' 'content="https://travelposting.com/static/img/travel.png" />\n' ' <meta property="og:type" content="article" />\n' ' <meta name="author" content="', 'Travelposting', '">\n <meta name="keywords" content="', 'Trips, vision, products, services', '">\n' ' <meta name="theme-color" content="#2F3BA2" />\n' ' <meta name="apple-mobile-web-app-capable" content="yes">\n' ' <meta name="apple-mobile-web-app-status-bar-style" content="black">\n' ' <meta name="apple-mobile-web-app-title" content="TRAVELPOSTING">\n' ' ', '', '\n <!-- Favicon -->\n ', '<link rel="shortcut icon" sizes="192x192" ' 'href="/main/media/favicon/fav-192.png"/><link rel="shortcut icon" ' 'sizes="128x128" href="/main/media/favicon/fav-128.png"/><link rel="shortcut ' 'icon" sizes="48x48" href="/main/media/favicon/fav-48.png"/><link ' 'rel="shortcut icon" sizes="32x32" ' 'href="/main/media/favicon/fav-32.png"/><link rel="shortcut icon" ' 'sizes="16x16" href="/main/media/favicon/fav-16.png"/><link rel="touch-icon" ' 'sizes="192x192" href="/main/media/favicon/fav-192_Wel211x.png"/><link ' 'rel="icon" sizes="192x192" ' 'href="/main/media/favicon/fav-192_wZ4rrIk.png"/><link rel="apple-touch-icon" ' 'sizes="180x180" href="/main/media/favicon/fav-180.png"/><link ' 'rel="apple-touch-icon" sizes="144x144" ' 'href="/main/media/favicon/fav-144.png"/><link rel="apple-touch-icon" ' 'sizes="114x114" href="/main/media/favicon/fav-114.png"/><link ' 'rel="apple-touch-icon" sizes="72x72" ' 'href="/main/media/favicon/fav-72.png"/><link rel="apple-touch-icon" ' 'sizes="57x57" href="/main/media/favicon/fav-57.png"/><link ' 'rel="apple-touch-icon-precomposed" sizes="180x180" ' 'href="/main/media/favicon/fav-180_26IM04w.png"/><link ' 'rel="apple-touch-icon-precomposed" sizes="152x152" ' 'href="/main/media/favicon/fav-152.png"/><link ' 'rel="apple-touch-icon-precomposed" sizes="144x144" ' 'href="/main/media/favicon/fav-144_ReI1WVc.png"/><link ' 'rel="apple-touch-icon-precomposed" sizes="120x120" ' 'href="/main/media/favicon/fav-120.png"/><link ' 'rel="apple-touch-icon-precomposed" sizes="114x114" ' 'href="/main/media/favicon/fav-114_oOSwosW.png"/><link ' 'rel="apple-touch-icon-precomposed" sizes="76x76" ' 'href="/main/media/favicon/fav-76.png"/><link ' 'rel="apple-touch-icon-precomposed" sizes="72x72" ' 'href="/main/media/favicon/fav-72_Uoy7eF6.png"/><link ' 'rel="apple-touch-icon-precomposed" sizes="57x57" ' 'href="/main/media/favicon/fav-57_4TiBulg.png"/><link rel="shortcut icon" ' 'sizes="32x32" href="/main/media/favicon/fav-32.png"/>', '\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
node | <Tag: render_block> |
self | [<django.template.defaulttags.LoadNode object at 0x7f07ce3b67f0>, <TextNode: '\n<!DOCTYPE html>\n<html cl'>, <django.templatetags.static.StaticNode object at 0x7f07cd4820b8>, <TextNode: '">\n '>, <Block Node: feed. Contents: [<TextNode: '\n '>]>, <TextNode: '\n '>, <Tag: page_attribute>, <TextNode: '\n <title>'>, <Variable Node: title>, <TextNode: '</title>\n <meta na'>, <Tag: page_attribute>, <TextNode: '">\n <meta property'>, <Variable Node: title>, <TextNode: '" />\n <meta proper'>, <Variable Node: article.url>, <TextNode: '" />\n <meta proper'>, <Tag: page_attribute>, <TextNode: '">\n <meta property'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd918da0>, <TextNode: '">\n <meta name="ke'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd918550>, <TextNode: '">\n <meta name="th'>, <Block Node: meta. Contents: []>, <TextNode: '\n <!-- Favicon -->'>, <django.template.library.SimpleNode object at 0x7f07cd918940>, <TextNode: '\n '>, <Tag: render_block>] |
/var/www/projects/travelposting/.venv/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}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
self | <Tag: render_block> |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/classytags/core.py
in render
"""
INTERNAL method to prepare rendering
Usually you should not override this method, but rather use render_tag.
"""
items = self.kwargs.items()
kwargs = dict([(key, value.resolve(context)) for key, value in items])
kwargs.update(self.blocks)
return self.render_tag(context, **kwargs)...
def render_tag(self, context, **kwargs):
"""
The method you should override in your custom tags
"""
raise NotImplementedError
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
items | dict_items([('name', <classytags.values.StringValue object at 0x7f07cd918358>), ('postprocessor', <TemplateConstant: None>)]) |
kwargs | {'name': 'css', 'nodelist': [<TextNode: '\n <!-- Google Font'>, <django.templatetags.static.StaticNode object at 0x7f07cd9184a8>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd9186d8>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918438>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd9183c8>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918128>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918e80>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918f28>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918978>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918b00>, <TextNode: '">\n <!-- <link rel'>, <django.templatetags.static.StaticNode object at 0x7f07cd918908>, <TextNode: '"> -->\n <link rel='>, <django.templatetags.static.StaticNode object at 0x7f07cd918470>, <TextNode: '">\n <link href="'>, <django.templatetags.static.StaticNode object at 0x7f07cd9187f0>, <TextNode: '" rel="stylesheet" />\n '>, <django.templatetags.static.StaticNode object at 0x7f07cd918710>, <TextNode: '">\n\n '>, <Block Node: extracss. Contents: [<TextNode: ' '>]>, <TextNode: '\n <!-- CSS Front T'>, <django.templatetags.static.StaticNode object at 0x7f07ce543d68>, <TextNode: '">\n <!-- CSS Extra'>, <django.templatetags.static.StaticNode object at 0x7f07ce543eb8>, <TextNode: '" rel="stylesheet">\n\n '>, <Block Node: body. Contents: [<TextNode: ' <body> '>]>, <TextNode: '\n '>, <Tag: cms_toolbar>], 'postprocessor': None} |
self | <Tag: render_block> |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/sekizai/templatetags/sekizai_tags.py
in render_tag
Argument('postprocessor', required=False, default=None, resolve=False),
parser_class=SekizaiParser,
)
def render_tag(self, context, name, postprocessor, nodelist):
if not validate_context(context):
return nodelist.render(context)
rendered_contents = nodelist.render(context)...
varname = get_varname()
data = '\n'.join(context[varname][name])
if postprocessor:
func = import_processor(postprocessor)
data = func(context, data, name)
return '%s\n%s' % (data, rendered_contents)
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
name | 'css' |
nodelist | [<TextNode: '\n <!-- Google Font'>, <django.templatetags.static.StaticNode object at 0x7f07cd9184a8>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd9186d8>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918438>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd9183c8>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918128>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918e80>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918f28>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918978>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918b00>, <TextNode: '">\n <!-- <link rel'>, <django.templatetags.static.StaticNode object at 0x7f07cd918908>, <TextNode: '"> -->\n <link rel='>, <django.templatetags.static.StaticNode object at 0x7f07cd918470>, <TextNode: '">\n <link href="'>, <django.templatetags.static.StaticNode object at 0x7f07cd9187f0>, <TextNode: '" rel="stylesheet" />\n '>, <django.templatetags.static.StaticNode object at 0x7f07cd918710>, <TextNode: '">\n\n '>, <Block Node: extracss. Contents: [<TextNode: ' '>]>, <TextNode: '\n <!-- CSS Front T'>, <django.templatetags.static.StaticNode object at 0x7f07ce543d68>, <TextNode: '">\n <!-- CSS Extra'>, <django.templatetags.static.StaticNode object at 0x7f07ce543eb8>, <TextNode: '" rel="stylesheet">\n\n '>, <Block Node: body. Contents: [<TextNode: ' <body> '>]>, <TextNode: '\n '>, <Tag: cms_toolbar>] |
postprocessor | None |
self | <Tag: render_block> |
/var/www/projects/travelposting/.venv/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' ' <!-- Google Fonts -->\n' ' <link ' 'href="http://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" ' 'rel="stylesheet">\n' ' <!-- CSS Implementing Plugins -->\n' ' <link rel="stylesheet" href="', '/static/assets/vendor/font-awesome/css/fontawesome-all.min.css', '">\n <link rel="stylesheet" href="', '/static/assets/css/bootstrap.min.css', '">\n <link rel="stylesheet" href="', '/static/assets/vendor/animate.css/animate.min.css', '">\n <link rel="stylesheet" href="', '/static/assets/vendor/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css', '">\n <link rel="stylesheet" href="', '/static/assets/vendor/hs-megamenu/src/hs.megamenu.css', '">\n <link rel="stylesheet" href="', '/static/assets/vendor/fancybox/jquery.fancybox.css', '">\n <link rel="stylesheet" href="', '/static/assets/vendor/cubeportfolio/css/cubeportfolio.min.css', '">\n <link rel="stylesheet" href="', '/static/assets/vendor/hs-bg-video/hs-bg-video.css', '">\n <link rel="stylesheet" href="', '/static/assets/vendor/slick-carousel/slick/slick.css', '">\n <!-- <link rel="stylesheet" href="', '/static/assets/vendor/custombox/dist/custombox.min.css', '"> -->\n <link rel="stylesheet" href="', '/static/assets/vendor/bootstrap-select/dist/css/bootstrap-select.min.css', '">\n <link href="', '/static/css/select2.min.css', '" rel="stylesheet" />\n <link rel="stylesheet" href="', '/static/css/select2-bootstrap4.css', '">\n\n ', '\n<link rel="stylesheet" href="/static/star-ratings/css/star-ratings.css">\n', '\n <!-- CSS Front Template -->\n <link rel="stylesheet" href="', '/static/assets/css/theme.css', '">\n <!-- CSS Extras -->\n <link href="', '/static/css/flag-icon.min.css', '" rel="stylesheet">\n\n </head>\n ', ' <body> ', '\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
node | <Tag: cms_toolbar> |
self | [<TextNode: '\n <!-- Google Font'>, <django.templatetags.static.StaticNode object at 0x7f07cd9184a8>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd9186d8>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918438>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd9183c8>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918128>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918e80>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918f28>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918978>, <TextNode: '">\n <link rel="sty'>, <django.templatetags.static.StaticNode object at 0x7f07cd918b00>, <TextNode: '">\n <!-- <link rel'>, <django.templatetags.static.StaticNode object at 0x7f07cd918908>, <TextNode: '"> -->\n <link rel='>, <django.templatetags.static.StaticNode object at 0x7f07cd918470>, <TextNode: '">\n <link href="'>, <django.templatetags.static.StaticNode object at 0x7f07cd9187f0>, <TextNode: '" rel="stylesheet" />\n '>, <django.templatetags.static.StaticNode object at 0x7f07cd918710>, <TextNode: '">\n\n '>, <Block Node: extracss. Contents: [<TextNode: ' '>]>, <TextNode: '\n <!-- CSS Front T'>, <django.templatetags.static.StaticNode object at 0x7f07ce543d68>, <TextNode: '">\n <!-- CSS Extra'>, <django.templatetags.static.StaticNode object at 0x7f07ce543eb8>, <TextNode: '" rel="stylesheet">\n\n '>, <Block Node: body. Contents: [<TextNode: ' <body> '>]>, <TextNode: '\n '>, <Tag: cms_toolbar>] |
/var/www/projects/travelposting/.venv/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}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
self | <Tag: cms_toolbar> |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/classytags/core.py
in render
"""
INTERNAL method to prepare rendering
Usually you should not override this method, but rather use render_tag.
"""
items = self.kwargs.items()
kwargs = dict([(key, value.resolve(context)) for key, value in items])
kwargs.update(self.blocks)
return self.render_tag(context, **kwargs)...
def render_tag(self, context, **kwargs):
"""
The method you should override in your custom tags
"""
raise NotImplementedError
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
items | dict_items([('name', <TemplateConstant: None>)]) |
kwargs | {'name': None, 'nodelist': [<TextNode: '\n\n\n '>, <Block Node: navbar. Contents: [<TextNode: '\n <header id="head'>, <django.template.loader_tags.IncludeNode object at 0x7f07ce543c50>, <TextNode: '\n </header>\n '>]>, <TextNode: '\n <main id="conten'>, <Block Node: content. Contents: []>, <TextNode: '\n <a class="js'>, <django.templatetags.i18n.TranslateNode object at 0x7f07ce5439b0>, <TextNode: '"\n data-pos'>, <Block Node: footer. Contents: [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f07ce543048>, <TextNode: '\n '>]>, <TextNode: '\n '>, <Tag: render_block>]} |
self | <Tag: cms_toolbar> |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/cms/templatetags/cms_tags.py
in render_tag
return nodelist.render(context)
toolbar = get_toolbar_from_request(request)
if toolbar and toolbar.show_toolbar:
toolbar.init_toolbar(request)
return toolbar.render_with_structure(context, nodelist)
return nodelist.render(context)...
class CMSEditableObject(InclusionTag):
"""
Templatetag that links a content extracted from a generic django model
to the model admin changeform.
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
name | None |
nodelist | [<TextNode: '\n\n\n '>, <Block Node: navbar. Contents: [<TextNode: '\n <header id="head'>, <django.template.loader_tags.IncludeNode object at 0x7f07ce543c50>, <TextNode: '\n </header>\n '>]>, <TextNode: '\n <main id="conten'>, <Block Node: content. Contents: []>, <TextNode: '\n <a class="js'>, <django.templatetags.i18n.TranslateNode object at 0x7f07ce5439b0>, <TextNode: '"\n data-pos'>, <Block Node: footer. Contents: [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f07ce543048>, <TextNode: '\n '>]>, <TextNode: '\n '>, <Tag: render_block>] |
request | <WSGIRequest: GET '/en/category/destination/129'> |
self | <Tag: cms_toolbar> |
toolbar | <cms.toolbar.toolbar.CMSToolbar object at 0x7f07ce534898> |
/var/www/projects/travelposting/.venv/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 <main id="content" role="main">\n ' |
bits | ['\n\n\n ', '\n' '\n' '\n' '\n' '\n' '<header id="header" class="u-header u-header--abs-top-md ' 'u-header--show-hide-md"\n' '\t\tdata-header-fix-moment="500"\n' '\t\tdata-header-fix-effect="slide">\n' '\t<div class="u-header__section">\n' '\t\t<div class="container u-header__hide-content pt-2">\n' '\t\t\t<div class="d-flex align-items-center">\n' '\t\t\t\t<!-- Language -->\n' '\t\t\t\t<div class="position-relative">\n' '\t\t\t\t\t\n' '\t\t\t\t\t<a id="languageDropdownInvoker" class="dropdown-nav-link ' 'dropdown-toggle d-flex align-items-center"\n' '\t\t\t\t\t href="javascript::" role="button" ' 'aria-controls="languageDropdown" aria-haspopup="true"\n' '\t\t\t\t\t aria-expanded="false" data-unfold-event="hover" ' 'data-unfold-target="#languageDropdown"\n' '\t\t\t\t\t data-unfold-type="css-animation" data-unfold-duration="300" ' 'data-unfold-delay="300"\n' '\t\t\t\t\t data-unfold-hide-on-scroll="true" ' 'data-unfold-animation-in="slideInUp"\n' '\t\t\t\t\t data-unfold-animation-out="fadeOut">\n' '\t\t\t\t\t\t<span class="flag-icon flag-icon-gb"> </span>\n' '\t\t\t\t\t\t<span class="d-inline-block d-sm-none">en</span>\n' '\t\t\t\t\t\t<span class="d-none d-sm-inline-block">\n' ' \n' ' English\n' ' \n' ' </span>\n' '\t\t\t\t\t</a>\n' '\n' '\t\t\t\t\t<div id="languageDropdown" class="dropdown-menu dropdown-unfold ' 'u-unfold--css-animation u-unfold--hidden"\n' '\t\t\t\t\t\t aria-labelledby="languageDropdownInvoker" ' 'style="animation-duration: 300ms; left: 0px;">\n' '\t\t\t\t\t\t<a class="dropdown-item active" href="/en/">English</a>\n' '\t\t\t\t\t\t<a class="dropdown-item" href="/de/">Deutsch</a>\n' '\t\t\t\t\t\t<a class="dropdown-item" href="/es/">Spanish</a>\n' '\t\t\t\t\t</div>\n' '\t\t\t\t</div>\n' '\t\t\t\t<!-- End Language -->\n' '\n' '\t\t\t\t<div class="ml-auto">\n' '\t\t\t\t\t<!-- Jump To -->\n' '\t\t\t\t\t<div class="d-inline-block d-sm-none position-relative mr-2">\n' '\t\t\t\t\t\t<a id="jumpToDropdownInvoker" title="Jump to"\n' '\t\t\t\t\t\t class="dropdown-nav-link dropdown-toggle d-flex ' 'align-items-center"\n' '\t\t\t\t\t\t href="javascript:;" role="button" ' 'aria-controls="jumpToDropdown" aria-haspopup="true"\n' '\t\t\t\t\t\t aria-expanded="false" data-unfold-event="hover" ' 'data-unfold-target="#jumpToDropdown"\n' '\t\t\t\t\t\t data-unfold-type="css-animation" data-unfold-duration="300" ' 'data-unfold-delay="300"\n' '\t\t\t\t\t\t data-unfold-hide-on-scroll="true" ' 'data-unfold-animation-in="slideInUp"\n' '\t\t\t\t\t\t data-unfold-animation-out="fadeOut">\n' '\t\t\t\t\t\t\tJump to\n' '\t\t\t\t\t\t</a>\n' '\n' '\t\t\t\t\t\t<div id="jumpToDropdown"\n' '\t\t\t\t\t\t\t class="dropdown-menu dropdown-unfold u-unfold--css-animation ' 'u-unfold--hidden fadeOut"\n' '\t\t\t\t\t\t\t aria-labelledby="jumpToDropdownInvoker" ' 'style="animation-duration: 300ms;">\n' '\t\t\t\t\t\t\t<a class="dropdown-item" href="/faq/">FAQs</a>\n' '\t\t\t\t\t\t\t<a class="dropdown-item" href="/#contact">Contacts</a>\n' '\t\t\t\t\t\t</div>\n' '\t\t\t\t\t</div>\n' '\t\t\t\t\t<!-- End Jump To -->\n' '\n' '\t\t\t\t\t<!-- Links -->\n' '\t\t\t\t\t<div class="d-none d-sm-inline-block ml-sm-auto">\n' '\t\t\t\t\t\t<ul class="list-inline mb-0">\n' '\t\t\t\t\t\t\t<li class="list-inline-item mr-0">\n' '\t\t\t\t\t\t\t\t<a class="u-header__navbar-link" href="/faq/">FAQs</a>\n' '\t\t\t\t\t\t\t</li>\n' '\t\t\t\t\t\t\t<li class="list-inline-item mr-0">\n' '\t\t\t\t\t\t\t\t<a class="u-header__navbar-link" ' 'href="/#contact">Contacts</a>\n' '\t\t\t\t\t\t\t</li>\n' '\t\t\t\t\t\t</ul>\n' '\t\t\t\t\t</div>\n' '\t\t\t\t\t<!-- End Links -->\n' '\t\t\t\t</div>\n' '\n' '\t\t\t\t<ul class="list-inline ml-2 mb-0">\n' '\n' '\n' '\t\t\t\t\t<!-- Account Login -->\n' '\t\t\t\t\t\n' '\t\t\t\t\t<li class="list-inline-item">\n' '\t\t\t\t\t\t<!-- Account Sidebar Toggle Button -->\n' '\t\t\t\t\t\t<a id="sidebarNavToggler"\n' '\t\t\t\t\t\t ... <trimmed 12203 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
node | <Block Node: content. Contents: []> |
self | [<TextNode: '\n\n\n '>, <Block Node: navbar. Contents: [<TextNode: '\n <header id="head'>, <django.template.loader_tags.IncludeNode object at 0x7f07ce543c50>, <TextNode: '\n </header>\n '>]>, <TextNode: '\n <main id="conten'>, <Block Node: content. Contents: []>, <TextNode: '\n <a class="js'>, <django.templatetags.i18n.TranslateNode object at 0x7f07ce5439b0>, <TextNode: '"\n data-pos'>, <Block Node: footer. Contents: [<TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f07ce543048>, <TextNode: '\n '>]>, <TextNode: '\n '>, <Tag: render_block>] |
/var/www/projects/travelposting/.venv/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}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
self | <Block Node: content. Contents: []> |
/var/www/projects/travelposting/.venv/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\n'>, <IfNode>, <TextNode: '\n\n<!-- Start SVG Hero Ima'>, <Variable Node: destino.photos.first.image>, <TextNode: ');">\n <div class="cont'>, <django.templatetags.static.StaticNode object at 0x7f07cd353cf8>, <TextNode: '\' alt="'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd3539e8>, <TextNode: '"\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd353c18>, <TextNode: '\n '>, <django.templatetags.static.StaticNode object at 0x7f07cd3536d8>, <TextNode: '\' alt="'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd3535c0>, <TextNode: '"\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd353da0>, <TextNode: '\n '>, <django.templatetags.static.StaticNode object at 0x7f07cd353a20>, <TextNode: '\' alt="'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd353470>, <TextNode: '"\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd353be0>, <TextNode: '\n '>, <ForNode: for gallery in destino.photos, tail_len: 13>, <TextNode: '\n '>, <ForNode: for item in destino.videos, tail_len: 17>, <TextNode: '\n '>, <Variable Node: destino.description|safe>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <Variable Node: request.META.HTTP_REFERER>, <TextNode: '" title="'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd9c4748>, <TextNode: '">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd9c4978>, <TextNode: '</a>\n </di'>, <django.template.library.SimpleNode object at 0x7f07cd9c4c18>, <TextNode: '\n <!--'>, <IfNode>, <TextNode: '\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd9c4ba8>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7f07ce814cf8>, <TextNode: '" alt="'>, <django.templatetags.i18n.TranslateNode object at 0x7f07ce38f470>, <TextNode: '" width="32">\n '>, <Variable Node: destino.name|truncatechars:36>, <TextNode: '</h1>\n <p '>, <Variable Node: destino.short_description|truncatechars:150|striptags>, <TextNode: '</p>\n </div>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07ce38fd68>, <TextNode: ':</h2>\n '>, <Variable Node: destino.list_prices.sale_price>, <TextNode: '</span>\n '>, <IfNode>, <TextNode: '\n </ul>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </ul>\n '>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd60c5f8>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd5ef860>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd597588>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd597668>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd597710>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07ce422f60>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextN... <trimmed 8864 bytes string> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f07ce2096a0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
push | <Block Node: content. Contents: [<TextNode: '\n\n'>, <IfNode>, <TextNode: '\n\n<!-- Start SVG Hero Ima'>, <Variable Node: destino.photos.first.image>, <TextNode: ');">\n <div class="cont'>, <django.templatetags.static.StaticNode object at 0x7f07cd353cf8>, <TextNode: '\' alt="'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd3539e8>, <TextNode: '"\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd353c18>, <TextNode: '\n '>, <django.templatetags.static.StaticNode object at 0x7f07cd3536d8>, <TextNode: '\' alt="'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd3535c0>, <TextNode: '"\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd353da0>, <TextNode: '\n '>, <django.templatetags.static.StaticNode object at 0x7f07cd353a20>, <TextNode: '\' alt="'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd353470>, <TextNode: '"\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd353be0>, <TextNode: '\n '>, <ForNode: for gallery in destino.photos, tail_len: 13>, <TextNode: '\n '>, <ForNode: for item in destino.videos, tail_len: 17>, <TextNode: '\n '>, <Variable Node: destino.description|safe>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <Variable Node: request.META.HTTP_REFERER>, <TextNode: '" title="'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd9c4748>, <TextNode: '">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd9c4978>, <TextNode: '</a>\n </di'>, <django.template.library.SimpleNode object at 0x7f07cd9c4c18>, <TextNode: '\n <!--'>, <IfNode>, <TextNode: '\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd9c4ba8>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7f07ce814cf8>, <TextNode: '" alt="'>, <django.templatetags.i18n.TranslateNode object at 0x7f07ce38f470>, <TextNode: '" width="32">\n '>, <Variable Node: destino.name|truncatechars:36>, <TextNode: '</h1>\n <p '>, <Variable Node: destino.short_description|truncatechars:150|striptags>, <TextNode: '</p>\n </div>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07ce38fd68>, <TextNode: ':</h2>\n '>, <Variable Node: destino.list_prices.sale_price>, <TextNode: '</span>\n '>, <IfNode>, <TextNode: '\n </ul>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </ul>\n '>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd60c5f8>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd5ef860>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd597588>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd597668>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd597710>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07ce422f60>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextN... <trimmed 8864 bytes string> |
self | <Block Node: content. Contents: []> |
/var/www/projects/travelposting/.venv/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' ' </h2>\n' ' </a>\n' ' </div>\n' " <!-- End Destionation Include/Doesn't Include -->\n" '\n' ' ') |
bits | ['\n\n', '', '\n' '\n' '<!-- Start SVG Hero Image -->\n' '<div id="SVGHero" class="position-relative bg-img-hero" ' 'style="background-image: url(/main/media/', 'gallery/image/image_dwbBjBY.jpeg', ');">\n' ' <div class="container space-top-2 space-bottom-3 space-md-3 ' 'space-bottom-lg-4">\n' ' <div class="w-md-65 w-lg-50">\n' ' </div>\n' ' </div>\n' ' <!-- Start SVG Background -->\n' ' <figure class="position-absolute right-0 bottom-0 left-0">\n' ' <svg xmlns="http://www.w3.org/2000/svg" ' 'xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="none" ' 'x="0px" y="0px" width="100%" height="85px" viewBox="0 0 1920 107.7" ' 'style="margin-bottom: -8px; enable-background:new 0 0 1920 107.7;" ' 'xml:space="preserve" class="injected-svg js-svg-injector" ' 'data-parent="#SVGHero">\n' ' <style type="text/css">\n' ' .wave-9-bottom-0{fill:#FFFFFF;}\n' ' .wave-9-bottom-1{fill:#FFFFFF;}\n' ' </style>\n' ' <path class="wave-9-bottom-0 fill-white" ' 'd="M0,107.7V69.8c0,0,451-54.7,960-5.4S1920,0,1920,0v107.7H0z"></path>\n' ' <path class="wave-9-bottom-1 fill-white" opacity=".3" ' 'd="M0,107.7v-81c0,0,316.2-8.9,646.1,54.5s794.7-114.1,1273.9-38v64.5H0z"></path>\n' ' </svg>\n' ' </figure>\n' ' <!-- End SVG Background -->\n' '</div>\n' '<!-- End SVG Hero Image -->\n' '\n' '<!-- Start Container with Ads Section -->\n' '<div class="container space-top-1 space-md-3 space-top-sm-2">\n' ' <div class="row row-cols-1 row-cols-sm-2 row-cols-md-3">\n' ' <!-- Tabs section -->\n' ' <div class="col col-lg-6 mb-6 mb-lg-0">\n' ' <div class="pr-lg-4">\n' ' <!--START TABS DETAIL-->\n' ' <div class="position-relative">\n' '\n' ' <!-- Nav Classic -->\n' ' <ul id="SVGnavIcons" class="svg-preloader nav ' 'nav-classic nav-rounded nav-shadow nav-justified border" role="tablist">\n' ' <li class="nav-item">\n' ' <a class="nav-link font-weight-medium active" ' 'id="pills-graphics-tab" data-toggle="pill"\n' ' href="#pills-graphics" role="tab" ' 'aria-controls="pills-graphics" aria-selected="true">\n' ' <div class="d-md-flex ' 'justify-content-md-center align-items-md-center">\n' ' <figure class="ie-height-20 d-none ' 'd-md-block w-100 max-width-6 mr-3">\n' ' <img class="js-svg-injector" src=\'', '/static/img/destinies/images-regular.svg', '\' alt="', 'SVG', '"\n' ' data-parent="#SVGnavIcons">\n' ' </figure>\n' ' ', 'Graphics', '\n' ' </div>\n' ' </a>\n' ' </li>\n' ' <li class="nav-item">\n' ' <a class="nav-link font-weight-medium" ' 'id="pills-detail-tab" data-toggle="pill" href="#pills-detail"\n' ' role="tab" aria-controls="pills-detail" ' 'aria-selected="false">\n' ' <div class="d-md-flex ' 'justify-content-md-center align-items-md-center">\n' ' <figure class="ie-height-20 d-none ' 'd-md-block w-100 max-width-6 mr-3">\n' ' <img class="js-svg-injector" src=\'', '/static/img/destinies/readme-brands.svg', '\' alt="', 'SVG', '"\n' ' data-parent="#SVGnavIcons">\n' ' </figure>\n' ' ', 'Detail', '\n' ' </div>\n' ' </a>\n' ' </li>\n' ' <li class="nav-item">\n' ' <a class="... <trimmed 35613 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
node | <IfNode> |
self | [<TextNode: '\n\n'>, <IfNode>, <TextNode: '\n\n<!-- Start SVG Hero Ima'>, <Variable Node: destino.photos.first.image>, <TextNode: ');">\n <div class="cont'>, <django.templatetags.static.StaticNode object at 0x7f07cd353cf8>, <TextNode: '\' alt="'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd3539e8>, <TextNode: '"\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd353c18>, <TextNode: '\n '>, <django.templatetags.static.StaticNode object at 0x7f07cd3536d8>, <TextNode: '\' alt="'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd3535c0>, <TextNode: '"\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd353da0>, <TextNode: '\n '>, <django.templatetags.static.StaticNode object at 0x7f07cd353a20>, <TextNode: '\' alt="'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd353470>, <TextNode: '"\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd353be0>, <TextNode: '\n '>, <ForNode: for gallery in destino.photos, tail_len: 13>, <TextNode: '\n '>, <ForNode: for item in destino.videos, tail_len: 17>, <TextNode: '\n '>, <Variable Node: destino.description|safe>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <Variable Node: request.META.HTTP_REFERER>, <TextNode: '" title="'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd9c4748>, <TextNode: '">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd9c4978>, <TextNode: '</a>\n </di'>, <django.template.library.SimpleNode object at 0x7f07cd9c4c18>, <TextNode: '\n <!--'>, <IfNode>, <TextNode: '\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd9c4ba8>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7f07ce814cf8>, <TextNode: '" alt="'>, <django.templatetags.i18n.TranslateNode object at 0x7f07ce38f470>, <TextNode: '" width="32">\n '>, <Variable Node: destino.name|truncatechars:36>, <TextNode: '</h1>\n <p '>, <Variable Node: destino.short_description|truncatechars:150|striptags>, <TextNode: '</p>\n </div>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07ce38fd68>, <TextNode: ':</h2>\n '>, <Variable Node: destino.list_prices.sale_price>, <TextNode: '</span>\n '>, <IfNode>, <TextNode: '\n </ul>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </ul>\n '>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd60c5f8>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd5ef860>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd597588>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd597668>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd597710>, <TextNode: '\n </h2'>, <IfNode>, <TextNode: ' !important;"></i> &'>, <IfNode>, <TextNode: ' !important;">\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07ce422f60>, <TextNode: '\n </h2'>, <I... <trimmed 9039 bytes string> |
/var/www/projects/travelposting/.venv/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}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
self | <IfNode> |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/django/template/defaulttags.py
in render
return NodeList(self)
def render(self, context):
for condition, nodelist in self.conditions_nodelists:
if condition is not None: # if / elif clause
try:
match = condition.eval(context)...
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
Variable | Value |
---|---|
condition | (literal <django.template.base.FilterExpression object at 0x7f07cd9e7710>) |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
nodelist | [<TextNode: '\n <!-- Accordi'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd9e79e8>, <TextNode: '\n '>, <Variable Node: destino.itinerario2.short_description |safe>, <TextNode: '<br><br>\n '>, <Variable Node: destino.itinerario2.detail_itinerary |safe>, <TextNode: '<br><br>\n\n '>, <django.template.defaulttags.URLNode object at 0x7f07cd9e7ba8>, <TextNode: '"\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd9e7588>, <TextNode: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7f07cd9e7f98>, <TextNode: '</a>\n '>] |
self | <IfNode> |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/django/template/defaulttags.py
in eval
self.value = value
self.text = text # for better error messages
def display(self):
return self.text
def eval(self, context):
return self.value.resolve(context, ignore_failures=True)...
class TemplateIfParser(IfParser):
error_class = TemplateSyntaxError
def __init__(self, parser, *args, **kwargs):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
self | (literal <django.template.base.FilterExpression object at 0x7f07cd9e7710>) |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/django/template/base.py
in resolve
self.filters = filters
self.var = var_obj
def resolve(self, context, ignore_failures=False):
if isinstance(self.var, Variable):
try:
obj = self.var.resolve(context)...
except VariableDoesNotExist:
if ignore_failures:
obj = None
else:
string_if_invalid = context.template.engine.string_if_invalid
if string_if_invalid:
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
ignore_failures | True |
self | <django.template.base.FilterExpression object at 0x7f07cd9e7710> |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/django/template/base.py
in resolve
var)
self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR))
def resolve(self, context):
"""Resolve this variable against a given context."""
if self.lookups is not None:
# We're dealing with a variable that needs to be resolved
value = self._resolve_lookup(context)...
else:
# We're dealing with a literal, so it's already been "resolved"
value = self.literal
if self.translate:
is_safe = isinstance(value, SafeData)
msgid = value.replace('%', '%%')
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
self | <Variable: 'destino.itinerario2'> |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/django/template/base.py
in _resolve_lookup
# ValueError/IndexError are for numpy.array lookup on
# numpy < 1.9 and 1.9+ respectively
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(type(current), bit):
raise AttributeError
current = getattr(current, bit)...
except (TypeError, AttributeError):
# Reraise if the exception was raised by a @property
if not isinstance(current, BaseContext) and bit in dir(current):
raise
try: # list-index lookup
current = current[int(bit)]
Variable | Value |
---|---|
bit | 'itinerario2' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <BookingForm bound=False, valid=Unknown, fields=(firts_name;last_name;cellphone;mail;number_travel;name_booking;comment;captcha)>, 'view': <apps.landing_page.views.DetailDestinationView object at 0x7f07cd5aa630>, 'destino': <Destination: Mayan Escape>, 'map': None, 'data': None, 'key': 'AIzaSyAP2gYILCvNYGNxU5icCYegcqBjrqYopAM', 'comment': <QuerySet []>, 'title': ''}] |
current | <Destination: Mayan Escape> |
self | <Variable: 'destino.itinerario2'> |
template_name | 'services/destination/detail_destination.html' |
/var/www/projects/travelposting/travel/apps/destinations/models.py
in itinerario2
itine = TabData.objects\
.filter(option_tab__name="Itinerary")\
.get(tour_data__destination=self.pk)
return itine
@property
def itinerario2(self):
it2 = Itinerary.objects.get(destination=self.pk)...
return it2
@property
def social(self):
sn = SocialNetwork.objects.get(destination=self.pk)
return sn
Variable | Value |
---|---|
self | <Destination: Mayan Escape> |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/django/db/models/manager.py
in manager_method
def check(self, **kwargs):
return []
@classmethod
def _get_queryset_methods(cls, queryset_class):
def create_method(name, method):
def manager_method(self, *args, **kwargs):
return getattr(self.get_queryset(), name)(*args, **kwargs)...
manager_method.__name__ = method.__name__
manager_method.__doc__ = method.__doc__
return manager_method
new_methods = {}
for name, method in inspect.getmembers(queryset_class, predicate=inspect.isfunction):
Variable | Value |
---|---|
args | () |
kwargs | {'destination': 129} |
name | 'get' |
self | <django.db.models.manager.Manager object at 0x7f07ce3cef60> |
/var/www/projects/travelposting/.venv/lib/python3.7/site-packages/django/db/models/query.py
in get
if not num:
raise self.model.DoesNotExist(
"%s matching query does not exist." %
self.model._meta.object_name
)
raise self.model.MultipleObjectsReturned(
"get() returned more than one %s -- it returned %s!" %
(self.model._meta.object_name, num)...
)
def create(self, **kwargs):
"""
Create a new object with the given kwargs, saving it to the database
and returning the created object.
Variable | Value |
---|---|
args | () |
clone | <QuerySet [<Itinerary: Mayan Escape-nn>, <Itinerary: Mayan Escape-nnnn>, <Itinerary: Mayan Escape-qass>]> |
kwargs | {'destination': 129} |
num | 3 |
self | <QuerySet [<Itinerary: Aconcagua Summit of America-Importante saber>, <Itinerary: Caribbean garden-Reiseplan>, <Itinerary: Southern charms-Disfruta al máximo las bellezas del Sur.>, <Itinerary: Argentina Round-Itinerario>, <Itinerary: Wine of Argentina-ITINERARIO Wine of Argentina>, <Itinerary: Argentina Activ Ruta 40-ITINERARIO Ruta 40>, <Itinerary: Fjords and Glaciers-Itinerario Fiordos y Glaciares>, <Itinerary: Mexico and Guatemala-Itinerario México y Guatemala>, <Itinerary: Coast to Coast-Itinerario de Costa a Costa>, <Itinerary: Puebla Cultural-Itinerario de Puebla>, <Itinerary: Argentina Express-Itinerario Argentina Express>, <Itinerary: End of the world - Ushuaia-Itinerario Fiin de Mundo>, <Itinerary: China at your fingertips-China Itinerario>, <Itinerary: Basilika von Teotihuacan-Itinerario de la Basilica>, <Itinerary: Golden Triangle Tour-Nuestro Itinerario.>, <Itinerary: Jamaica all inclusive-Jamaica Itinerario>, <Itinerary: Bahamas with Panama-Itinerario Bahamas - Panama>, <Itinerary: Puyehue Hot Springs, Chile-Termas de Puyehue, Centro de Evento y Spa>, <Itinerary: Galapagos Fantastic-Ven y disfruta de las islas encantadas>, <Itinerary: Ecuador Maravilloso-Conoce el Ecuador con sus paisajes increibles.>, '...(remaining elements truncated)...']> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'travelposting.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '3.90.33.254' |
PATH_INFO | '/en/category/destination/129' |
QUERY_STRING | '' |
RAW_URI | '/en/category/destination/129' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'travelposting.com' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/19.9.0' |
gunicorn.socket | <socket.socket fd=8, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/var/www/projects/travelposting/travel/run/gunicorn.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f07ce3df2e8> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f07ced3eb70> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
config.settings.local
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_ACTIVATION_DAYS | 7 |
ADMINS | [('Travelposting Info', 'support@travelposting.com')] |
ADS_DEFAULT_AD_SIZE | '720x150' |
ADS_DEVICES | (('xs', 'Extra small devices'), ('sm', 'Small devices'), ('md', 'Medium devices (Tablets)'), ('lg', 'Large devices (Desktops)'), ('xl', 'Extra large devices (Large Desktops)')) |
ADS_GOOGLE_ADSENSE_CLIENT | None |
ADS_VIEWPORTS | {'lg': 'd-none img-fluid d-lg-block d-xl-none', 'md': 'd-none img-fluid d-md-block d-lg-none', 'sm': 'd-none img-fluid d-sm-block d-md-none', 'xl': 'd-none img-fluid d-xl-block', 'xs': 'd-block img-fluid d-sm-none'} |
ADS_ZONES | {'content': {'ad_size': {'lg': '800x90', 'md': '800x90', 'sm': '800x90', 'xl': '800x90', 'xs': '720x150'}, 'google_adsense_format': None, 'google_adsense_slot': None, 'name': 'Content'}, 'header': {'ad_size': {'lg': '800x90', 'md': '800x90', 'sm': '800x90', 'xl': '800x90', 'xs': '720x150'}, 'google_adsense_format': None, 'google_adsense_slot': None, 'name': 'Header'}, 'sidebar': {'ad_size': {'lg': '800x90', 'md': '800x90', 'sm': '200x130', 'xl': '800x90', 'xs': '720x150'}, 'name': 'Sidebar'}} |
ALLOWED_HOSTS | '["localhost", "0.0.0.0", "127.0.0.1", "*"]' |
APPEND_SLASH | True |
APPS_DIR | <Path:/var/www/projects/travelposting/travel/apps> |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'accounts.CustomerUser' |
AXES_COOLOFF_TIME | datetime.timedelta(seconds=3600) |
AXES_ENABLED | True |
AXES_IP_WHITELIST | [] |
AXES_LOGIN_FAILURE_LIMIT | 3 |
BOT | <telepot.Bot object at 0x7f07e112b160> |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION': 'unique-snowflake'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CAMPAIGN_COUPON_LIMIT | 10000 |
CAMPAIGN_COUPON_PREFIX | 'TPC-1220' |
CAMPAIGN_REF_CODE | 'TPCW-20' |
CKEDITOR_IMAGE_BACKED | 'pillow' |
CKEDITOR_SETTINGS | {'disableNativeSpellChecker': False, 'language': 'es', 'toolbar': 'Custom', 'toolbar_Custom': [['Undo', 'Redo'], ['Bold', 'Italic', 'Underline', 'Strike', 'SpellChecker', 'Subscript', 'Superscript'], ['NumberedList', 'BulletedList', 'Indent', 'Outdent', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'Blockquote'], ['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'], ['TabErrorle', 'Link', 'Unlink', 'Anchor', 'SectionLink'], ['Find', 'Replace', '-', 'SelectAll', '-', 'Scayt'], ['TextColor', 'BGColor'], ['Styles', 'Format', 'Font', 'FontSize'], ['Maximize', 'ShowBlocks', 'Templates', '-', 'Source']]} |
CKEDITOR_UPLOAD_PATH | 'uploads_ckeditor/' |
CMS_PERMISSION | True |
CMS_PLACEHOLDER_CONF | {} |
CMS_TEMPLATES | (('index.html', 'Landing'), ('about.html', 'About us'), ('template_base_for_text.html', 'Template base'), ('tours.html', 'Tour'), ('magazine.html', 'Magazine'), ('community.html', 'Community'), ('datenschutz.html', 'Data protection'), ('datenshutz_form.html', 'Data protection Form'), ('datenshutz_form_privacity.html', 'Data protection Form Privacity'), ('coming-soon.html', 'Coming Soon'), ('hotels.html', 'Hotels template'), ('pricing.html', 'Pricing'), ('make_page.html', 'Make page'), ('term.html', 'Terms'), ('faq.html', 'FAQ'), ('page01.html', 'Page type 01'), ('page02.html', 'Page type 02'), ('presignup.html', 'Pre-signup'), ('team.html', 'Team'), ('portafolio.html', 'Portafolio'), ('events.html', 'Events')) |
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 |
CURRENCIES | ('USD', 'EUR') |
CURRENCY_CHOICES | [('EUR', 'EUR €'), ('USD', 'USD $')] |
CURRENCY_DECIMAL_PLACES | 2 |
DATABASES | {'default': {'ATOMIC_REQUESTS': True, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'HOST': '127.0.0.1', 'NAME': 'dashboard', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': 5432, 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'travelposting'}} |
DATABASE_ROUTERS | [] |
DATA_DIR | '/var/www/projects/travelposting/travel/config' |
DATA_UPLOAD_MAX_MEMORY_SIZE | 6291456 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_CURRENCY | 'USD' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'Travelposting <travelsolution@travelposting.com>' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
DJANGOCMS_STYLE_TEMPLATES | [('feature', 'Feature')] |
DJANGO_ADMIN_LOGS_ENABLED | True |
DJANGO_APPS | ['djangocms_admin_style', 'modeltranslation', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'django.contrib.messages', 'django.contrib.humanize', 'django.contrib.gis'] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'mail.agenturserver.de' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'travelsolution@travelposting.com' |
EMAIL_PORT | '465' |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | 'TravelPosting:' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | True |
EMAIL_USE_TLS | False |
FILER_IMAGE_MODEL | 'filer.Image' |
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 | 5242880 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | ('/var/www/projects/travelposting/travel/fixtures',) |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
GEOIP_PATH | '/var/www/projects/travelposting/travel/main/media//GeoLite2' |
GOOGLE_MAPS_API_KEY | '********************' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['djangocms_admin_style', 'modeltranslation', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'django.contrib.messages', 'django.contrib.humanize', 'django.contrib.gis', 'favicon', 'apps.accounts.apps.AccountsConfig', 'cms', 'aldryn_apphooks_config', 'aldryn_categories', 'aldryn_common', 'aldryn_newsblog', 'aldryn_people', 'aldryn_translation_tools', 'parler', 'sortedm2m', 'taggit', 'menus', 'sekizai', 'treebeard', 'djangocms_text_ckeditor', 'filer', 'mptt', 'easy_thumbnails', 'djangocms_column', 'djangocms_file', 'djangocms_link', 'djangocms_picture', 'djangocms_style', 'djangocms_snippet', 'djangocms_googlemap', 'djangocms_video', 'django_summernote', 'impersonate', 'rest_framework', 'nested_admin', 'rosetta', 'bootstrap_datepicker_plus', 'oauth2_provider', 'mapwidgets', 'mathfilters', 'sorl.thumbnail', 'captcha', 'django_admin_logs', 'ads.apps.AdsConfig', 'star_ratings', 'apps.events', 'apps.landing_page.apps.LandingPageConfig', 'apps.utils.apps.UtilsConfig', 'apps.payments.apps.PaymentsConfig', 'apps.destinations.apps.DestinationsConfig', 'apps.api.apps.ApiConfig', 'apps.community.apps.CommunityConfig', 'apps.directmessages.apps.DirectmessagesConfig', 'apps.advertisements.apps.AdvertisementsConfig', 'apps.podcast', 'apps.portfolio'] |
INTERNAL_IPS | [] |
KEEP_COMMENTS_ON_MINIFYING | False |
LANGUAGES | (('en', 'en'), ('de', 'de'), ('es', 'es')) |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | ['/var/www/projects/travelposting/travel/apps/locale/'] |
LOCAL_APPS | ['apps.events', 'apps.landing_page.apps.LandingPageConfig', 'apps.utils.apps.UtilsConfig', 'apps.payments.apps.PaymentsConfig', 'apps.destinations.apps.DestinationsConfig', 'apps.api.apps.ApiConfig', 'apps.community.apps.CommunityConfig', 'apps.directmessages.apps.DirectmessagesConfig', 'apps.advertisements.apps.AdvertisementsConfig', 'apps.podcast', 'apps.portfolio'] |
LOGGING | {'disable_existing_loggers': True, 'formatters': {'verbose': {'format': '%(levelname)s %(asctime)s %(module)s ' '%(process)d %(thread)d %(message)s'}}, 'handlers': {'console': {'class': 'logging.StreamHandler', 'formatter': 'verbose', 'level': 'DEBUG'}}, 'loggers': {'django.db.backends': {'handlers': ['console'], 'level': 'ERROR', 'propagate': False}, 'django.security.DisallowedHost': {'handlers': ['console'], 'level': 'ERROR', 'propagate': False}, 'sentry_sdk': {'handlers': ['console'], 'level': 'ERROR', 'propagate': False}}, 'root': {'handlers': ['console'], 'level': 'INFO'}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | 'dashboard:dashboard-index' |
LOGIN_URL | 'accounts:login' |
LOGOUT_REDIRECT_URL | 'accounts:logout' |
LOGOUT_URL | 'accounts:logout' |
MANAGERS | [('Info', 'support@travelposting.com')] |
MAP_WIDGETS | {'GOOGLE_MAP_API_KEY': '********************', 'GooglePointFieldWidget': (('zoom', 15), ('mapCenterLocationName', 'london'), ('markerFitZoom', 12))} |
MEDIA_ROOT | '/var/www/projects/travelposting/travel/main/media/' |
MEDIA_URL | '/main/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['cms.middleware.utils.ApphookReloadMiddleware', 'django.middleware.cache.UpdateCacheMiddleware', 'htmlmin.middleware.HtmlMinifyMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.cache.FetchFromCacheMiddleware', 'htmlmin.middleware.MarkRequestMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'impersonate.middleware.ImpersonateMiddleware', 'apps.community.middleware.CampaignMiddleware'] |
MIGRATION_MODULES | {} |
MODELTRANSLATION_DEFAULT_LANGUAGE | 'en' |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
OAUTH2_PROVIDER | {'SCOPES': {'read': 'Permiso de lectura', 'write': 'Permiso de escritura'}} |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PAYPAL_CLIENT_ID | 'ARClllzhfsDYA4vLY4aqykuUtGecs9yn9ezknTXldwuOmfPp79JxmskWhTeMsvvoQdK76RIOkJ7QowFq' |
PAYPAL_CLIENT_SECRET | '********************' |
PAYPAL_MODE | 'live' |
PODCAST_ALLOWED_TAGS | ['p', 'ol', 'ul', 'li', 'a', 'i', 'em', 'b', 'strong'] |
PODCAST_EPISODE_LIMIT | None |
PODCAST_ID | 1 |
PODCAST_NO_ARTWORK | 'podcast/img/no_artwork.png' |
PODCAST_PAGINATE_BY | 10 |
PODCAST_SINGULAR | False |
PREPEND_WWW | False |
READ_DOT_ENV_FILE | True |
RECAPTCHA_PRIVATE_KEY | '********************' |
RECAPTCHA_PUBLIC_KEY | '********************' |
REST_FRAMEWORK | {'DEFAULT_AUTHENTICATION_CLASSES': ('oauth2_provider.contrib.rest_framework.OAuth2Authentication',), 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'DEFAULT_PAGINATION_CLASS': ('rest_framework.pagination.PageNumberPagination',), 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',), 'PAGE_SIZE': 20} |
ROOT_DIR | <Path:/var/www/projects/travelposting/travel> |
ROOT_URLCONF | 'config.urls' |
ROSETTA_ENABLE_TRANSLATION_SUGGESTIONS | True |
ROSETTA_REQUIRES_AUTH | True |
ROSETTA_UWSGI_AUTO_RELOAD | True |
ROSETTA_WSGI_AUTO_RELOAD | True |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SENTRY_DSN | 'https://24a6c538e8464795b0e9d1d3827808d4@o400380.ingest.sentry.io/5258769' |
SENTRY_LOG_LEVEL | 20 |
SERVER_EMAIL | 'travelsolution@travelposting.com' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1800 |
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 | True |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'config.settings.local' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'd/m/y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | ['captcha.recaptcha_test_key_error'] |
SITE_ID | 1 |
STAR_RATINGS_RATING_MODEL | 'star_ratings.Rating' |
STAR_RATINGS_STAR_HEIGHT | 12 |
STATICFILES_DIRS | ('/var/www/projects/travelposting/travel/main/private/',) |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/www/projects/travelposting/travel/main/static/' |
STATIC_URL | '/static/' |
SUMMERNOTE_CONFIG | {'base_css': ('//stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css',), 'base_js': ('//code.jquery.com/jquery-3.3.1.min.js', '//stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js'), 'default_css': ('summernote/summernote.css', 'summernote/django_summernote.css'), 'default_js': ('summernote/jquery.ui.widget.js', 'summernote/jquery.iframe-transport.js', 'summernote/jquery.fileupload.js', 'summernote/summernote.min.js', 'summernote/ResizeSensor.js'), 'iframe': True, 'js': ('destinations/js/summernote-map-plugin.js',), 'lazy': True} |
TEMPLATES | [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/projects/travelposting/travel/config/settings/main/templates', '/var/www/projects/travelposting/travel/main/templates/', '/var/www/projects/travelposting/travel/main/templates/', '/var/www/projects/travelposting/travel/main/templates/admin'], 'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.i18n', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.media', 'django.template.context_processors.csrf', 'django.template.context_processors.tz', 'sekizai.context_processors.sekizai', 'django.template.context_processors.static', 'apps.landing_page.context_processor.get_ip', 'cms.context_processors.cms_settings'], 'loaders': ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THIRD_PARTY | ['favicon', 'apps.accounts.apps.AccountsConfig', 'cms', 'aldryn_apphooks_config', 'aldryn_categories', 'aldryn_common', 'aldryn_newsblog', 'aldryn_people', 'aldryn_translation_tools', 'parler', 'sortedm2m', 'taggit', 'menus', 'sekizai', 'treebeard', 'djangocms_text_ckeditor', 'filer', 'mptt', 'easy_thumbnails', 'djangocms_column', 'djangocms_file', 'djangocms_link', 'djangocms_picture', 'djangocms_style', 'djangocms_snippet', 'djangocms_googlemap', 'djangocms_video', 'django_summernote', 'impersonate', 'rest_framework', 'nested_admin', 'rosetta', 'bootstrap_datepicker_plus', 'oauth2_provider', 'mapwidgets', 'mathfilters', 'sorl.thumbnail', 'captcha', 'django_admin_logs', 'ads.apps.AdsConfig', 'star_ratings'] |
THOUSAND_SEPARATOR | ',' |
THUMBNAIL_HIGH_RESOLUTION | True |
THUMBNAIL_PROCESSORS | ('easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', 'filer.thumbnail_processors.scale_and_crop_with_subject_location', 'easy_thumbnails.processors.filters', 'easy_thumbnails.processors.background') |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'America/Caracas' |
URL_NAME_LANGS | (('en', 'en'), ('de', 'de'), ('es', 'es')) |
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 | 'config.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.