int() argument must be a string or a number, not 'NoneType'
Request Method: | GET |
---|---|
Request URL: | http://www.realyachtcharter.com/en/resultados-mapa |
Django Version: | 1.11 |
Exception Type: | TypeError |
Exception Value: | int() argument must be a string or a number, not 'NoneType' |
Exception Location: | /code/apps/producto/templatetags/customtags.py in get_zone_name, line 62 |
Python Executable: | /usr/local/bin/python2 |
Python Version: | 2.7.12 |
Python Path: | ['/code/apps', '/code', '/usr/local/bin', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages', '/src/django-admin-sortable2', '/src/django-modeltranslation', '/src/django-seo', '/src/django-admin-multiupload', '/code'] |
Server time: | Fri, 29 Mar 2024 00:59:27 +0100 |
In template /code/templates/base.html
, error at line 0
1 | {% load i18n %} |
---|---|
2 | {% get_current_language as LANGUAGE_CODE %} |
3 | {% get_available_languages as LANGUAGES %} |
4 | {% get_language_info_list for LANGUAGES as languages %} |
5 | {% load staticfiles %} |
6 | {% load compress %} |
7 | {% load google_analytics %} |
8 | {% load trm_utils_tags %} |
9 | <!DOCTYPE html> |
10 | <html lang="{{ LANGUAGE_CODE }}"> |
/usr/local/lib/python2.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, assigned=available_attrs(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 | TypeError("int() argument must be a string or a number, not 'NoneType'",) |
get_response | <bound method WSGIHandler._legacy_get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f7084c26490>> |
request | <WSGIRequest: GET '/en/resultados-mapa'> |
/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py
in _legacy_get_response
# Apply request middleware
for middleware_method in self._request_middleware:
response = middleware_method(request)
if response:
break
if response is None:
response = self._get_response(request)...
return response
Variable | Value |
---|---|
middleware_method | <bound method FetchFromCacheMiddleware.process_request of <django.middleware.cache.FetchFromCacheMiddleware object at 0x7f707fa9afd0>> |
request | <WSGIRequest: GET '/en/resultados-mapa'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f7084c26490> |
/usr/local/lib/python2.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 ResultsMapView at 0x7f707f975c08> |
callback_args | () |
callback_kwargs | {} |
e | TypeError("int() argument must be a string or a number, not 'NoneType'",) |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f707fb0bd90>> |
request | <WSGIRequest: GET '/en/resultados-mapa'> |
resolver | <RegexURLResolver 'realyachtcharter.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=core.views.ResultsMapView, args=(), kwargs={}, url_name=results_map, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f7084c26490> |
wrapped_callback | <function ResultsMapView at 0x7f707f975c08> |
/usr/local/lib/python2.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 ResultsMapView at 0x7f707f975c08> |
callback_args | () |
callback_kwargs | {} |
e | TypeError("int() argument must be a string or a number, not 'NoneType'",) |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f707fb0bd90>> |
request | <WSGIRequest: GET '/en/resultados-mapa'> |
resolver | <RegexURLResolver 'realyachtcharter.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=core.views.ResultsMapView, args=(), kwargs={}, url_name=results_map, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f7084c26490> |
wrapped_callback | <function ResultsMapView at 0x7f707f975c08> |
/usr/local/lib/python2.7/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Returns 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"> |
/usr/local/lib/python2.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):
"""Adds a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
context | {'current_url': u'/en/resultados-mapa', 'get_params': '', 'is_grid': False, u'is_paginated': False, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'page_obj': None, u'paginator': None, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'results_count': 186, 'search': {'checkin': None, 'checkout': None, 'large_rent': None, 'large_rent_period': None, 'large_sell_m': None, 'large_sell_rooms': None, 'large_sell_types': None, 'zone': None}, 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7f707e8a51d0> |
/usr/local/lib/python2.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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
request | <WSGIRequest: GET '/en/resultados-mapa'> |
self | <django.template.backends.django.Template object at 0x7f707e8a51d0> |
/usr/local/lib/python2.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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
self | <django.template.base.Template object at 0x7f707f7fbdd0> |
/usr/local/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
self | <django.template.base.Template object at 0x7f707f7fbdd0> |
/usr/local/lib/python2.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(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
node | <ExtendsNode: extends 'results_base.html'> |
self | [<ExtendsNode: extends 'results_base.html'>] |
/usr/local/lib/python2.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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
e | TypeError("int() argument must be a string or a number, not 'NoneType'",) |
self | <ExtendsNode: extends 'results_base.html'> |
/usr/local/lib/python2.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, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f707e8a5590> |
compiled_parent | <django.template.base.Template object at 0x7f707e8fb6d0> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
node | <ExtendsNode: extends 'base.html'> |
self | <ExtendsNode: extends 'results_base.html'> |
/usr/local/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
self | <django.template.base.Template object at 0x7f707e8fb6d0> |
/usr/local/lib/python2.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(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
node | <ExtendsNode: extends 'base.html'> |
self | [<ExtendsNode: extends 'base.html'>] |
/usr/local/lib/python2.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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
e | TypeError("int() argument must be a string or a number, not 'NoneType'",) |
self | <ExtendsNode: extends 'base.html'> |
/usr/local/lib/python2.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, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f707e8a5590> |
blocks | {u'content': <Block Node: content. Contents: []>, u'extra-metas': <Block Node: extra-metas. Contents: []>, u'extrahead': <Block Node: extrahead. Contents: []>, u'head-scripts': <Block Node: head-scripts. Contents: [<TextNode: u'\n <script type'>, <django.templatetags.static.StaticNode object at 0x7f707f4d2790>, <TextNode: u'"></script>\n <'>, <django.templatetags.static.StaticNode object at 0x7f707f4d2750>, <TextNode: u'"></script>\n <'>, <django.templatetags.static.StaticNode object at 0x7f707f4d2650>, <TextNode: u'"></script>\n <'>, <django.templatetags.static.StaticNode object at 0x7f707f4c6810>, <TextNode: u'"></script>\n <'>, <django.templatetags.static.StaticNode object at 0x7f707f4c6350>, <TextNode: u'"></script>\n '>, <django.template.library.InclusionNode object at 0x7f707f4c6bd0>, <TextNode: u'\n '>]>, u'head-styles': <Block Node: head-styles. Contents: [<TextNode: u'\n <link href="'>, <django.templatetags.static.StaticNode object at 0x7f707f4d2c90>, <TextNode: u'" rel="stylesheet">\n '>, <django.templatetags.static.StaticNode object at 0x7f707f4d27d0>, <TextNode: u'" rel="stylesheet">\n '>, <django.templatetags.static.StaticNode object at 0x7f707f4d26d0>, <TextNode: u'" rel="stylesheet">\n '>, <django.templatetags.static.StaticNode object at 0x7f707f4d2210>, <TextNode: u'" rel="stylesheet">\n '>, <django.template.library.InclusionNode object at 0x7f707f4d2990>, <TextNode: u'\n '>]>, u'header': <Block Node: header. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f707f112cd0>, <TextNode: u'\n '>]>, u'nocompress': <Block Node: nocompress. Contents: []>, u'scripts': <Block Node: scripts. Contents: []>, u'seo_description': <Block Node: seo_description. Contents: []>, u'styles': <Block Node: styles. Contents: []>, u'title': <Block Node: title. Contents: []>} |
compiled_parent | <django.template.base.Template object at 0x7f707f7fbad0> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
node | <django.template.defaulttags.LoadNode object at 0x7f707f41ae90> |
self | <ExtendsNode: extends 'base.html'> |
/usr/local/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
self | <django.template.base.Template object at 0x7f707f7fbad0> |
/usr/local/lib/python2.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(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | u'\n <title>' |
bits | [u'', u'\n', u'', u'\n', u'', u'\n', u'', u'\n', u'', u'\n', u'', u'\n', u'', u'\n', u'', u'\n<!DOCTYPE html>\n<html lang="', u'en', u'">\n<head>\n <meta charset="utf-8">\n <meta http-equiv="X-UA-Compatible" content="IE=edge">\n <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">\n <meta name="yandex-verification" content="4fbdb720a2955934" />\n <meta name=\'wmail-verification\' content=\'4adc9a3cc607b841f3d8c6118b991a74\' />\n <meta name="msvalidate.01" content="4335051A3C8F9622926B11EE375C15BF" />\n ', u'', u'\n <title>'] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
node | <Block Node: title. Contents: []> |
self | [<django.template.defaulttags.LoadNode object at 0x7f707f41ae90>, <TextNode: u'\n'>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7f707eb32cd0>, <TextNode: u'\n'>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7f707eb32350>, <TextNode: u'\n'>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7f707ea60e50>, <TextNode: u'\n'>, <django.template.defaulttags.LoadNode object at 0x7f707ea608d0>, <TextNode: u'\n'>, <django.template.defaulttags.LoadNode object at 0x7f707ea60ed0>, <TextNode: u'\n'>, <django.template.defaulttags.LoadNode object at 0x7f707ea60910>, <TextNode: u'\n'>, <django.template.defaulttags.LoadNode object at 0x7f707ea60890>, <TextNode: u'\n<!DOCTYPE html>\n<html la'>, <Variable Node: LANGUAGE_CODE>, <TextNode: u'">\n<head>\n <meta chars'>, <Block Node: extra-metas. Contents: []>, <TextNode: u'\n <title>'>, <Block Node: title. Contents: []>, <TextNode: u' | Real Yacht Charter</ti'>, <Block Node: seo_description. Contents: []>, <TextNode: u'" />\n '>, <Variable Node: my_meta>, <TextNode: u'\n\n'>, <TextNode: u'\n '>, <Block Node: head-styles. Contents: [<TextNode: u'\n <link href="'>, <django.templatetags.static.StaticNode object at 0x7f707f4d2c90>, <TextNode: u'" rel="stylesheet">\n '>, <django.templatetags.static.StaticNode object at 0x7f707f4d27d0>, <TextNode: u'" rel="stylesheet">\n '>, <django.templatetags.static.StaticNode object at 0x7f707f4d26d0>, <TextNode: u'" rel="stylesheet">\n '>, <django.templatetags.static.StaticNode object at 0x7f707f4d2210>, <TextNode: u'" rel="stylesheet">\n '>, <django.template.library.InclusionNode object at 0x7f707f4d2990>, <TextNode: u'\n '>]>, <TextNode: u'\n '>, <Block Node: styles. Contents: []>, <TextNode: u'\n'>, <TextNode: u'\n\n'>, <TextNode: u'\n '>, <Block Node: head-scripts. Contents: [<TextNode: u'\n <script type'>, <django.templatetags.static.StaticNode object at 0x7f707f4d2790>, <TextNode: u'"></script>\n <'>, <django.templatetags.static.StaticNode object at 0x7f707f4d2750>, <TextNode: u'"></script>\n <'>, <django.templatetags.static.StaticNode object at 0x7f707f4d2650>, <TextNode: u'"></script>\n <'>, <django.templatetags.static.StaticNode object at 0x7f707f4c6810>, <TextNode: u'"></script>\n <'>, <django.templatetags.static.StaticNode object at 0x7f707f4c6350>, <TextNode: u'"></script>\n '>, <django.template.library.InclusionNode object at 0x7f707f4c6bd0>, <TextNode: u'\n '>]>, <TextNode: u'\n '>, <Block Node: scripts. Contents: []>, <TextNode: u'\n'>, <TextNode: u'\n\n '>, <Block Node: nocompress. Contents: []>, <TextNode: u'\n\n '>, <Block Node: extrahead. Contents: []>, <TextNode: u'\n\n <!-- WARNING: Respo'>, <analytical.templatetags.google_analytics.GoogleAnalyticsNode object at 0x7f707f4c67d0>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f707f4c6790>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f707f4c6590>, <TextNode: u'\n</head>\n<body>\n<nav clas'>, <django.template.loader_tags.IncludeNode object at 0x7f707f4c6110>, <TextNode: u'\n </ul>\n</nav>\n<div cl'>, <django.template.defaulttags.URLNode object at 0x7f707f4c68d0>, <TextNode: u'" method="post" id="langu'>, <django.template.defaulttags.CsrfTokenNode object at 0x7f707f4c6090>, <TextNode: u'\n <input type="hid'>, <Block Node: header. Contents: [<TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f707f112cd0>, <TextNode: u'\n '>]>, <TextNode: u'\n '>, <Block Node: content. Contents: []>, <TextNode: u'\n '>, <django.template.loader_tags.IncludeNode object at 0x7f707f112b50>, <TextNode: u'\n</div>\n</body>\n</html>\n'>] |
/usr/local/lib/python2.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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
e | TypeError("int() argument must be a string or a number, not 'NoneType'",) |
self | <Block Node: title. Contents: []> |
/usr/local/lib/python2.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: title. Contents: [<IfNode>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f707e8a5590> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
push | <Block Node: title. Contents: [<IfNode>]> |
self | <Block Node: title. Contents: []> |
/usr/local/lib/python2.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(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
node | <IfNode> |
self | [<IfNode>] |
/usr/local/lib/python2.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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
e | TypeError("int() argument must be a string or a number, not 'NoneType'",) |
self | <IfNode> |
/usr/local/lib/python2.7/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | None |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
match | True |
nodelist | [<django.templatetags.i18n.BlockTranslateNode object at 0x7f707ecb0d10>] |
self | <IfNode> |
/usr/local/lib/python2.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(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
node | <django.templatetags.i18n.BlockTranslateNode object at 0x7f707ecb0d10> |
self | [<django.templatetags.i18n.BlockTranslateNode object at 0x7f707ecb0d10>] |
/usr/local/lib/python2.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 | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
e | TypeError("int() argument must be a string or a number, not 'NoneType'",) |
self | <django.templatetags.i18n.BlockTranslateNode object at 0x7f707ecb0d10> |
/usr/local/lib/python2.7/site-packages/django/templatetags/i18n.py
in render
def render(self, context, nested=False):
if self.message_context:
message_context = self.message_context.resolve(context)
else:
message_context = None
tmp_context = {}
for var, val in self.extra_context.items():
tmp_context[var] = val.resolve(context)...
# Update() works like a push(), so corresponding context.pop() is at
# the end of function
context.update(tmp_context)
singular, vars = self.render_token_list(self.singular)
if self.plural and self.countervar and self.counter:
count = self.counter.resolve(context)
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
message_context | None |
nested | False |
self | <django.templatetags.i18n.BlockTranslateNode object at 0x7f707ecb0d10> |
tmp_context | {} |
val | <django.template.base.FilterExpression object at 0x7f707e8fb590> |
var | u'zone' |
/usr/local/lib/python2.7/site-packages/django/template/base.py
in resolve
else:
arg_vals.append(arg.resolve(context))
if getattr(func, 'expects_localtime', False):
obj = template_localtime(obj, context.use_tz)
if getattr(func, 'needs_autoescape', False):
new_obj = func(obj, autoescape=context.autoescape, *arg_vals)
else:
new_obj = func(obj, *arg_vals)...
if getattr(func, 'is_safe', False) and isinstance(obj, SafeData):
obj = mark_safe(new_obj)
elif isinstance(obj, EscapeData):
with warnings.catch_warnings():
# Ignore mark_for_escaping deprecation as this will be
# removed in Django 2.0.
Variable | Value |
---|---|
arg_vals | [] |
args | [] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {u'paginator': None, u'languages': [{u'name_translated': u'Spanish', u'code': u'es', u'name': u'Spanish', u'bidi': False, u'name_local': u'espa\xf1ol'}, {u'name_translated': u'English', u'code': u'en', u'name': u'English', u'bidi': False, u'name_local': u'English'}, {u'name_translated': u'German', u'code': u'de', u'name': u'German', u'bidi': False, u'name_local': u'Deutsch'}, {u'name_translated': u'Italian', u'code': u'it', u'name': u'Italian', u'bidi': False, u'name_local': u'italiano'}, {u'name_translated': u'Russian', u'code': u'ru', u'name': u'Russian', u'bidi': False, u'name_local': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439'}], 'search': {'large_sell_rooms': None, 'zone': None, 'checkin': None, 'large_rent_period': None, 'large_sell_types': None, 'large_sell_m': None, 'large_rent': None, 'checkout': None}, u'object_list': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, u'is_paginated': False, 'results_count': 186, 'is_grid': False, 'results': <MultilingualQuerySet [<Property: Abacus 70>, <Property: Abbate Primatist G46>, <Property: A Montecarlo 66 Fly>, <Property: A Pardo 38>, <Property: A Scorpion 50>, <Property: Astondoa 27m>, <Property: A-Super Phantom 80>, <Property: Axopar 22>, <Property: Axopar 28>, <Property: Axopar 28 TT>, <Property: Axopar 37>, <Property: Azimut 50>, <Property: Azimut 68>, <Property: Azimut 68 S>, <Property: Baia 63>, <Property: Bali 4.0>, <Property: Bali 4.0 (Ibiza) Day Charter>, <Property: Bali 4.1>, <Property: Bali 4.1 (2018)>, <Property: Bali 4.2 (2022) Ibiza>, '...(remaining elements truncated)...']>, 'current_url': u'/en/resultados-mapa', 'searchf': <SearchForm bound=False, valid=Unknown, fields=(type;zone;date_from;date_to;large_rent;large_rent_period;large_sell_m;large_sell_rooms;large_sell_types)>, u'LANGUAGES': [('es', u'Espa\xf1ol'), ('en', u'English'), ('de', u'Deutsch'), ('it', u'Italian'), ('ru', u'Russian')], 'searchref': <SearchRefForm bound=False, valid=Unknown, fields=(ref)>, u'page_obj': None, u'LANGUAGE_CODE': u'en', 'get_params': '', 'type': 1, u'view': <core.views.ResultsMapView object at 0x7f707f7fb7d0>}] |
escape_isnt_last_filter | True |
func | <function get_zone_name at 0x7f707f82fd70> |
ignore_failures | False |
obj | None |
self | <django.template.base.FilterExpression object at 0x7f707e8fb590> |
/code/apps/producto/templatetags/customtags.py
in get_zone_name
@register.filter(name='get_zone_name')
def get_zone_name(key):
print(key)
# return 'test'
from producto.models import Zone
return Zone.objects.get(id=int(key)).name...
Variable | Value |
---|---|
Zone | <class 'producto.models.Zone'> |
key | None |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'keep-alive' |
HTTP_HOST | 'www.realyachtcharter.com' |
HTTP_REFERER | 'http://www.realyachtcharter.com/en/resultados-mapa' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '54.165.122.173' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_PROTOCOL | 'https' |
HTTP_X_FORWARDED_SSL | 'on' |
HTTP_X_REAL_IP | '54.165.122.173' |
HTTP_X_SCHEME | 'https' |
PATH_INFO | u'/en/resultados-mapa' |
QUERY_STRING | '' |
RAW_URI | '/en/resultados-mapa' |
REMOTE_ADDR | '192.168.240.1' |
REMOTE_PORT | '33910' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | u'' |
SERVER_NAME | '0.0.0.0' |
SERVER_PORT | '8000' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/19.7.1' |
gunicorn.socket | <socket._socketobject object at 0x7f707de71c90> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f707f100150> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f707f100e90> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
realyachtcharter.settings.production
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ADMIN_EMAIL | 'contact@realyachtcharter.com' |
ADMIN_EMAILS | ['contact@realyachtcharter.com'] |
ALLOWED_HOSTS | ['127.0.0.1', 'realyachtcharter.com', 'www.realyachtcharter.com', 'localhost'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | [u'django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | u'********************' |
AUTH_USER_MODEL | u'auth.User' |
BASE_DIR | '/code' |
BASE_URL | 'http://www.realyachtcharter.com/' |
BROKER_URL | 'redis://redis:6379/1' |
CACHES | {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://redis:6379/0', 'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}}} |
CACHE_MIDDLEWARE_ALIAS | u'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CALENDAR_SEARCH_DAYS_MARGIN | 50 |
CALENDAR_SHOW_DAYS_LESS | 30 |
CALENDAR_SHOW_DAYS_MORE | 500 |
CKEDITOR_CONFIGS | {'default': {'font_names': 'Open Sans regular;verdana', 'height': 400, 'toolbar': 'full', 'width': 900}} |
CKEDITOR_IMAGE_BACKEND | 'pillow' |
CKEDITOR_JQUERY_URL | '/static/js/jquery.min.js' |
CKEDITOR_UPLOAD_PATH | 'blog/' |
COMPRESS_CACHEABLE_PRECOMPILERS | () |
COMPRESS_CACHE_BACKEND | u'default' |
COMPRESS_CACHE_KEY_FUNCTION | u'********************' |
COMPRESS_CLEAN_CSS_ARGUMENTS | u'' |
COMPRESS_CLEAN_CSS_BINARY | u'cleancss' |
COMPRESS_CLOSURE_COMPILER_ARGUMENTS | u'' |
COMPRESS_CLOSURE_COMPILER_BINARY | u'java -jar compiler.jar' |
COMPRESS_CSS_COMPRESSOR | u'compressor.css.CssCompressor' |
COMPRESS_CSS_FILTERS | ['compressor.filters.css_default.CssAbsoluteFilter', 'compressor.filters.cssmin.CSSMinFilter', 'compressor.filters.cssmin.CSSCompressorFilter'] |
COMPRESS_CSS_HASHING_METHOD | u'mtime' |
COMPRESS_DATA_URI_MAX_SIZE | 1024 |
COMPRESS_DEBUG_TOGGLE | None |
COMPRESS_ENABLED | True |
COMPRESS_JINJA2_GET_ENVIRONMENT | <function JINJA2_GET_ENVIRONMENT at 0x7f7080198938> |
COMPRESS_JS_COMPRESSOR | u'compressor.js.JsCompressor' |
COMPRESS_JS_FILTERS | ['compressor.filters.jsmin.JSMinFilter'] |
COMPRESS_MINT_DELAY | 30 |
COMPRESS_MTIME_DELAY | 10 |
COMPRESS_OFFLINE | False |
COMPRESS_OFFLINE_CONTEXT | {u'STATIC_URL': '/static/'} |
COMPRESS_OFFLINE_MANIFEST | u'manifest.json' |
COMPRESS_OFFLINE_TIMEOUT | 31536000 |
COMPRESS_OUTPUT_DIR | u'CACHE' |
COMPRESS_PARSER | u'compressor.parser.AutoSelectParser' |
COMPRESS_PRECOMPILERS | () |
COMPRESS_REBUILD_TIMEOUT | 2592000 |
COMPRESS_ROOT | '/code/public/static' |
COMPRESS_STORAGE | 'compressor.storage.GzipCompressorFileStorage' |
COMPRESS_TEMPLATE_FILTER_CONTEXT | {u'STATIC_URL': '/static/'} |
COMPRESS_URL | '/static/' |
COMPRESS_VERBOSE | False |
COMPRESS_YUGLIFY_BINARY | u'yuglify' |
COMPRESS_YUGLIFY_CSS_ARGUMENTS | u'--terminal' |
COMPRESS_YUGLIFY_JS_ARGUMENTS | u'--terminal' |
COMPRESS_YUI_BINARY | u'java -jar yuicompressor.jar' |
COMPRESS_YUI_CSS_ARGUMENTS | u'' |
COMPRESS_YUI_JS_ARGUMENTS | u'' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | u'csrftoken' |
CSRF_COOKIE_PATH | u'/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | u'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | u'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'postgres', 'NAME': 'realyachtcharter', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'realyachtcharter_user'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | u'N j, Y, P' |
DATETIME_INPUT_FORMATS | [u'%Y-%m-%d %H:%M:%S', u'%Y-%m-%d %H:%M:%S.%f', u'%Y-%m-%d %H:%M', u'%Y-%m-%d', u'%m/%d/%Y %H:%M:%S', u'%m/%d/%Y %H:%M:%S.%f', u'%m/%d/%Y %H:%M', u'%m/%d/%Y', u'%m/%d/%y %H:%M:%S', u'%m/%d/%y %H:%M:%S.%f', u'%m/%d/%y %H:%M', u'%m/%d/%y'] |
DATE_FORMAT | u'N j, Y' |
DATE_INPUT_FORMATS | [u'%Y-%m-%d', u'%m/%d/%Y', u'%m/%d/%y', u'%b %d %Y', u'%b %d, %Y', u'%d %b %Y', u'%d %b, %Y', u'%B %d %Y', u'%B %d, %Y', u'%d %B %Y', u'%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | u'.' |
DEFAULT_CHARSET | u'utf-8' |
DEFAULT_CONTENT_TYPE | u'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | u'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | u'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | u'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | u'' |
DEFAULT_TABLESPACE | u'' |
DISALLOWED_USER_AGENTS | [] |
DJANGO_APPS | ('django.contrib.auth', 'suit', 'django.contrib.admin.apps.SimpleAdminConfig', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'django.contrib.sitemaps', 'django.contrib.flatpages', 'django.contrib.sites') |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp-relay.sendinblue.com' |
EMAIL_HOST_PASSWORD | u'********************' |
EMAIL_HOST_USER | 'javi.llabres@gmail.com' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | u'********************' |
EMAIL_SUBJECT_PREFIX | u'[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
FILE_CHARSET | u'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | [u'django.core.files.uploadhandler.MemoryFileUploadHandler', u'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | u'django.forms.renderers.DjangoTemplates' |
GEOPOSITION_GOOGLE_MAPS_API_KEY | u'********************' |
GEOPOSITION_MAP_OPTIONS | {'center': {'lat': 39.64, 'lng': 3.09}, 'maxZoom': 15, 'minZoom': 3, 'zoom': 9} |
GEOPOSITION_MARKER_OPTIONS | {'cursor': 'move', 'lat': 39.58, 'lng': 13.4, 'position': {'lat': 39.38, 'lng': 2.63}} |
GMAPS_KEY | u'********************' |
GOOGLE_ANALYTICS_PROPERTY_ID | 'UA-98416393-1' |
HOST_NAME | 'realyachtcharter.com' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ('django.contrib.auth', 'suit', 'django.contrib.admin.apps.SimpleAdminConfig', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'django.contrib.sitemaps', 'django.contrib.flatpages', 'django.contrib.sites', 'analytical', 'adminplus', 'adminsortable2', 'multiupload', 'easy_thumbnails', 'modeltranslation', 'easy_thumbnails.optimize', 'PIL', 'autoslug', 'ckeditor', 'ckeditor_uploader', 'cachalot', 'geoposition', 'compressor', 'trm_utils', 'trm_blog', 'trm_static_pages', 'rosetta', 'core', 'producto', 'disponibilidad', 'contactos', 'landings', 'raven.contrib.django.raven_compat') |
INTERNAL_IPS | [] |
LANDINGS_HOME | {'eventos': 17, 'ibiza': 5, 'mallorca': 9} |
LANGUAGES | (('es', u'Espa\xf1ol'), ('en', 'English'), ('de', 'Deutsch'), ('it', 'Italian'), ('ru', 'Russian')) |
LANGUAGES_BIDI | [u'he', u'ar', u'fa', u'ur'] |
LANGUAGE_CODE | 'es' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | u'django_language' |
LANGUAGE_COOKIE_PATH | u'/' |
LOCALE_PATHS | ('/code/locale',) |
LOCAL_APPS | ('core', 'producto', 'disponibilidad', 'contactos', 'landings') |
LOGGING | {} |
LOGGING_CONFIG | u'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | u'/accounts/profile/' |
LOGIN_URL | u'/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/code/public/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | u'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | None |
MIDDLEWARE_CLASSES | (u'raven.contrib.django.middleware.SentryMiddleware', 'django.middleware.http.ConditionalGetMiddleware', 'django.middleware.cache.UpdateCacheMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.middleware.cache.FetchFromCacheMiddleware') |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | u'F j' |
NUMBER_GROUPING | 0 |
OBJECT_DISPONIBLE | 'producto.Property' |
OTHER_APPS | ('analytical', 'adminplus', 'adminsortable2', 'multiupload', 'easy_thumbnails', 'modeltranslation', 'easy_thumbnails.optimize', 'PIL', 'autoslug', 'ckeditor', 'ckeditor_uploader', 'cachalot', 'geoposition', 'compressor', 'trm_utils', 'trm_blog', 'trm_static_pages', 'rosetta') |
PASSWORD_HASHERS | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
PREPEND_WWW | False |
PUBLIC_DIR | '/code/public' |
RAVEN_CONFIG | {'dsn': 'http://8738bdae5bdf4cd8b21c39eded66ee1e:98afb1b77b214da1b4c0657bfa6a9a39@sentry.serversocial.com:9000/28', 'release': u'52b23121dfa413e7eecd8d6e74ab3ca9dfee3533'} |
ROOT_URLCONF | 'realyachtcharter.urls' |
SECRET_KEY | u'********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | u'root@localhost' |
SESSION_CACHE_ALIAS | u'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | u'sessionid' |
SESSION_COOKIE_PATH | u'/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | u'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | u'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'realyachtcharter.settings.production' |
SHORT_DATETIME_FORMAT | u'm/d/Y P' |
SHORT_DATE_FORMAT | u'm/d/Y' |
SIGNING_BACKEND | u'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
SITE_URL | 'www.realyachtcharter.com' |
STATICFILES_DIRS | ('/code/public/assets',) |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'compressor.finders.CompressorFinder') |
STATICFILES_STORAGE | u'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/code/public/static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/code/templates'], 'OPTIONS': {'context_processors': ['trm_utils.context_processors.cookies_accepted', 'django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages'], 'debug': True}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | u'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | u',' |
THUMBNAIL_ALIASES | {'': {'icon': {'autocrop': True, 'crop': 'smart', 'quality': 85, 'size': (64, 64), 'thumbnail_preserve_extensions': ('png', 'gif'), 'upscale': True}, 'resultados': {'autocrop': True, 'crop': 'smart', 'quality': 85, 'size': (350, 233), 'thumbnail_preserve_extensions': ('png', 'gif'), 'upscale': True}, 'slider': {'autocrop': False, 'crop': 'smart', 'quality': 85, 'size': (1920, 1080), 'thumbnail_preserve_extensions': ('png', 'gif'), 'upscale': True}, 'slider-detail': {'autocrop': True, 'crop': 'smart', 'quality': 55, 'size': (1100, 650), 'thumbnail_preserve_extensions': ('png', 'gif'), 'upscale': True}}} |
THUMBNAIL_BASEDIR | 'thumb' |
THUMBNAIL_HIGHRES_INFIX | '_2x' |
THUMBNAIL_HIGH_RESOLUTION | True |
THUMBNAIL_NAMER | 'easy_thumbnails.namers.source_hashed' |
THUMBNAIL_OPTIMIZE_COMMAND | {'gif': '/usr/bin/optipng {filename}', 'jpeg': '/usr/bin/jpegoptim {filename}', 'png': '/usr/bin/optipng {filename}'} |
THUMBNAIL_PRESERVE_EXTENSIONS | ('png', 'gif') |
TIME_FORMAT | u'P' |
TIME_INPUT_FORMATS | [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M'] |
TIME_ZONE | 'Europe/Madrid' |
TRM_BLOG_MAIN_COLOR | '' |
TRM_BLOG_SECONDARY_COLOR | '' |
TRM_BLOG_SITEMAP_URL | '^sitemap\\.xml$' |
TRM_BLOG_SUBTITLE | {'de': u'Nautical News', 'en': u'Nautical News', 'es': u'Nautical News', 'it': u'Nautical News', 'ru': u'Nautical News'} |
TRM_BLOG_SUBTITLE_COLOR | '' |
TRM_BLOG_TEXT_COLOR | '' |
TRM_BLOG_TITLE | {'de': u'Yacht Charters & Sailing Vacations Blog', 'en': u'Yacht Charters & Sailing Vacations Blog', 'es': u'Yacht Charters & Sailing Vacations Blog', 'it': u'Yacht Charters & Sailing Vacations Blog', 'ru': u'Yacht Charters & Sailing Vacations Blog'} |
TRM_BLOG_TITLE_COLOR | '' |
TRM_STATIC_PAGES_TEMPLATE_PATH | 'flatpages/trm_static_page.html' |
TRM_STATIC_PAGES_USE_I18N | True |
TRM_UTILS_COOKIES_BUTTON_COLOR | '#bbf5ec' |
TRM_UTILS_COOKIES_INFO_URL | '/privacy/' |
TRM_UTILS_COOKIES_PREPEND_LANGUAGE_CODE | True |
TRM_UTILS_COOKIES_TEXT_COLOR | '#333' |
USE_ETAGS | False |
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 | 'realyachtcharter.wsgi.application' |
X_FRAME_OPTIONS | u'SAMEORIGIN' |
YEAR_MONTH_FORMAT | u'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.