Caught HTTPError while rendering: HTTP Error 403: Forbidden
Request Method: | GET |
---|---|
Request URL: | http://cnintl.com/executive-lounge/region/1/ |
Django Version: | 1.3.1 |
Exception Type: | TemplateSyntaxError |
Exception Value: | Caught HTTPError while rendering: HTTP Error 403: Forbidden |
Exception Location: | /usr/lib/python2.6/urllib2.py in http_error_default, line 518 |
Python Executable: | /usr/bin/python |
Python Version: | 2.6.5 |
Python Path: | ['/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/pip-1.0-py2.6.egg', '/home/rawjam/sites/iic_branded/cnintl/env/src/django-admintools-bootstrap', '/home/rawjam/sites/iic_branded/cnintl/env/src/django-allauth', '/home/rawjam/sites/iic_branded/cnintl/env/src/django-modeltranslation', '/home/rawjam/sites/iic_branded/cnintl/env/src/django-pagination', '/home/rawjam/sites/iic_branded/cnintl/env/src/django-uni-form', '/home/rawjam/sites/iic_branded/cnintl/env/src/facebook-sdk', '/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg', '/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages', '/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/PIL', '/usr/local/lib/python2.6/dist-packages/pip-1.0-py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/pymodules/python2.6', '/usr/local/lib/python2.6/dist-packages', '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/..', '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded'] |
Server time: | Thu, 28 Mar 2024 13:13:45 +0000 |
In template /home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/apps/blog/templates/blog/fragments/landing.html
, error at line 13
3 | {% if category %} |
---|---|
4 | {% get_featured_for_category category ws_settings %} |
5 | {% else %} |
6 | {% if author %} |
7 | {% get_featured_for_author author %} |
8 | {% else %} |
9 | {% if practicegroup %} |
10 | {% get_featured_for_practicegroup practicegroup ws_settings %} |
11 | {% else %} |
12 | {% if region %} |
13 | {% get_featured_for_region region ws_settings %} |
14 | {% else %} |
15 | {% get_featured ws_settings %} |
16 | {% endif %} |
17 | {% endif %} |
18 | {% endif %} |
19 | {% endif %} |
20 | |
21 | {% include "blog/fragments/featured_posts.html" %} |
22 | |
23 | <div class="posts" id="blog_latest_posts"></div> |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/core/handlers/base.py
in get_response
try:
response = callback(request, *callback_args, **callback_kwargs)
except Exception, e:
# If the view raised an exception, run it through exception
# middleware, and if the exception middleware returns a
# response, use that. Otherwise, reraise the exception.
for middleware_method in self._exception_middleware:
response = middleware_method(request, e)...
if response:
break
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
exceptions | <module 'django.core.exceptions' from '/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/core/exceptions.pyc'> |
e | TemplateSyntaxError(u'Caught HTTPError while rendering: HTTP Error 403: Forbidden',) |
callback_args | () |
receivers | [(<function _rollback_on_exception at 0x2b81df4>, None)] |
middleware_method | <bound method LocalStoreClearMiddleware.process_exception of <johnny.middleware.LocalStoreClearMiddleware object at 0x2b15bcc>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x2a9bd8c> |
settings | <django.conf.LazySettings object at 0x2901dac> |
request | <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> |
callback | <function blog_index_by_region at 0x39ca80c> |
resolver | <RegexURLResolver iic_branded.configs.common.urls (None:None) ^/> |
urlresolvers | <module 'django.core.urlresolvers' from '/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/core/urlresolvers.pyc'> |
callback_kwargs | {'region': u'1'} |
response | None |
urlconf | 'iic_branded.configs.common.urls' |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/core/handlers/base.py
in get_response
for middleware_method in self._view_middleware:
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
try:
response = callback(request, *callback_args, **callback_kwargs)...
except Exception, e:
# If the view raised an exception, run it through exception
# middleware, and if the exception middleware returns a
# response, use that. Otherwise, reraise the exception.
for middleware_method in self._exception_middleware:
response = middleware_method(request, e)
Variable | Value |
---|---|
exceptions | <module 'django.core.exceptions' from '/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/core/exceptions.pyc'> |
e | TemplateSyntaxError(u'Caught HTTPError while rendering: HTTP Error 403: Forbidden',) |
callback_args | () |
receivers | [(<function _rollback_on_exception at 0x2b81df4>, None)] |
middleware_method | <bound method LocalStoreClearMiddleware.process_exception of <johnny.middleware.LocalStoreClearMiddleware object at 0x2b15bcc>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x2a9bd8c> |
settings | <django.conf.LazySettings object at 0x2901dac> |
request | <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> |
callback | <function blog_index_by_region at 0x39ca80c> |
resolver | <RegexURLResolver iic_branded.configs.common.urls (None:None) ^/> |
urlresolvers | <module 'django.core.urlresolvers' from '/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/core/urlresolvers.pyc'> |
callback_kwargs | {'region': u'1'} |
response | None |
urlconf | 'iic_branded.configs.common.urls' |
/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/apps/common/utils/decorators.py
in wrapper
@wraps(function)
def wrapper(request, *args, **kwargs):
output = function(request, *args, **kwargs)
if not isinstance(output, dict):
return output
tmpl = output.pop('TEMPLATE', template)
return render_to_response(tmpl, output, \
context_instance=RequestContext(request), mimetype=mimetype)...
return wrapper
return renderer
def register_render_tag(register):
"""
Decorator that creates a template tag using the given renderer as the
Variable | Value |
---|---|
mimetype | 'text/html' |
tmpl | 'blog/blog_index_by_region.html' |
function | <function blog_index_by_region at 0x39ca7d4> |
args | () |
request | <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> |
template | 'blog/blog_index_by_region.html' |
kwargs | {'region': u'1'} |
output | {u'LANGUAGE_CODE': 'en', 'bg_image': <BackgroundImage: 15>, 'region': (1, 'EMEA')} |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/shortcuts/__init__.py
in render_to_response
def render_to_response(*args, **kwargs):
"""
Returns a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None)}
return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)...
def render(request, *args, **kwargs):
"""
Returns a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
Uses a RequestContext by default.
Variable | Value |
---|---|
httpresponse_kwargs | {'mimetype': 'text/html'} |
args | ('blog/blog_index_by_region.html', {u'LANGUAGE_CODE': 'en', 'bg_image': <BackgroundImage: 15>, 'region': (1, 'EMEA')}) |
kwargs | {'context_instance': [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}]} |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/loader.py
in render_to_string
t = get_template(template_name)
if not context_instance:
return t.render(Context(dictionary))
# Add the dictionary to the context stack, ensuring it gets removed again
# to keep the context_instance in the same state it started in.
context_instance.update(dictionary)
try:
return t.render(context_instance)...
finally:
context_instance.pop()
def select_template(template_name_list):
"Given a list of template names, returns the first that can be loaded."
not_found = []
Variable | Value |
---|---|
template_name | 'blog/blog_index_by_region.html' |
t | <django.template.base.Template object at 0x4dd71cc> |
dictionary | {u'LANGUAGE_CODE': 'en', 'bg_image': <BackgroundImage: 15>, 'region': (1, 'EMEA')} |
context_instance | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/base.py
in render
def _render(self, context):
return self.nodelist.render(context)
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)...
finally:
context.render_context.pop()
def compile_string(template_string, origin):
"Compiles template_string into NodeList ready for rendering"
if settings.TEMPLATE_DEBUG:
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x4dd71cc> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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"
context.render_context.push()
try:
return self._render(context)
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x4dd71cc> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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):
bits.append(self.render_node(node, context))...
else:
bits.append(node)
return mark_safe(''.join([force_unicode(b) for b in bits]))
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
Variable | Value |
---|---|
node | <ExtendsNode: extends "ui/layouts/base.html"> |
self | [<ExtendsNode: extends "ui/layouts/base.html">] |
bits | [] |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'source'):
e.source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
result = node.render(context)...
except TemplateSyntaxError, e:
if not hasattr(e, 'source'):
e.source = node.source
raise
except Exception, e:
from sys import exc_info
Variable | Value |
---|---|
node | <ExtendsNode: extends "ui/layouts/base.html"> |
self | [<ExtendsNode: extends "ui/layouts/base.html">] |
e | TemplateSyntaxError(u'Caught HTTPError while rendering: HTTP Error 403: Forbidden',) |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/loader_tags.py
in render
blocks = dict([(n.name, n) for n in
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.
return compiled_parent._render(context)...
class BaseIncludeNode(Node):
def __init__(self, *args, **kwargs):
self.extra_context = kwargs.pop('extra_context', {})
self.isolated_context = kwargs.pop('isolated_context', False)
super(BaseIncludeNode, self).__init__(*args, **kwargs)
Variable | Value |
---|---|
node | <django.template.defaulttags.LoadNode object at 0x55e7f0c> |
blocks | {u'body_class': <Block Node: body_class. Contents: []>, u'contacts_top_box': <Block Node: contacts_top_box. Contents: [<Text Node: ' '>, <If node>, <Text Node: ' '>]>, u'content': <Block Node: content. Contents: []>, u'content_outer': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>, u'content_outer2': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, u'extra_body': <Block Node: extra_body. Contents: []>, u'extra_head': <Block Node: extra_head. Contents: []>, u'extracss': <Block Node: extracss. Contents: []>, u'extrajs': <Block Node: extrajs. Contents: []>, u'first_paragraph': <Block Node: first_paragraph. Contents: []>, u'first_paragraph_outer': <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, u'page_meta_text': <Block Node: page_meta_text. Contents: []>, u'page_title': <Block Node: page_title. Contents: []>, u'page_title_image': <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, u'page_title_outer': <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, u'sidebar_outer': <Block Node: sidebar_outer. Contents: [<Text Node: ' <div id="sidebar">'>, <Block Node: sidebar_search_box. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x51c3fac>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: contacts_top_box. Contents: [<Text Node: ' '>, <If node>, <Text Node: ' '>]>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x4e2d56c>, <Text Node: ' '>]>, u'sidebar_search_box': <Block Node: sidebar_search_box. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x51c3fac>, <Text Node: ' '>]>, u'site-meta-description': <Block Node: site-meta-description. Contents: [<Tag: page_attribute>]>, u'site-meta-keywords': <Block Node: site-meta-keywords. Contents: [<Tag: page_attribute>]>, u'sub_content': <Block Node: sub_content. Contents: []>, u'title': <Block Node: title. Contents: [<Tag: page_attribute>]>} |
block_context | <django.template.loader_tags.BlockContext object at 0x518464c> |
n | <Block Node: extra_body. Contents: []> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
compiled_parent | <django.template.base.Template object at 0x59d420c> |
self | <ExtendsNode: extends "ui/layouts/base.html"> |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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"
context.render_context.push()
try:
return self._render(context)
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x59d420c> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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):
bits.append(self.render_node(node, context))...
else:
bits.append(node)
return mark_safe(''.join([force_unicode(b) for b in bits]))
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
Variable | Value |
---|---|
node | <Tag: render_block> |
self | [<django.template.defaulttags.LoadNode object at 0x55e7f0c>, <Text Node: ' '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x59d404c>, <Text Node: ' <!DOCTYPE html PUBLIC "-'>, <Variable Node: ws_settings.company_name>, <Text Node: ' | '>, <Block Node: title. Contents: [<Tag: page_attribute>]>, <Text Node: '</title> <meta name="'>, <Block Node: site-meta-description. Contents: [<Tag: page_attribute>]>, <Text Node: '" /> <meta name="keyw'>, <Block Node: site-meta-keywords. Contents: [<Tag: page_attribute>]>, <Text Node: '" /> <meta name="robo'>, <If node>, <Text Node: '" /> <link rel="short'>, <django_static.templatetags.django_static.StaticFilesNode object at 0x55f932c>, <Text Node: ' '>, <django.template.defaulttags.CommentNode object at 0x55f93ec>, <Text Node: ' <style> @media '>, <If node>, <Text Node: ' </style> '>, <Block Node: extracss. Contents: []>, <Text Node: ' <!--[if lt IE 8]><li'>, <Variable Node: STATIC_URL>, <Text Node: 'css/ie.css" media="screen'>, <Variable Node: STATIC_URL>, <Text Node: 'css/ie8.css" media="scree'>, <Block Node: extra_head. Contents: []>, <Text Node: ' '>, <django.template.defaulttags.CommentNode object at 0x51cd7cc>, <Text Node: ' <script type="text/'>, <Tag: render_block>] |
bits | ['', u'\n', '', u'\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\n<head>\n <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n <title>', u'Clarey Napier International', u' | ', u'Executive Lounge', u'</title>\n <meta name="description" content="', u'', u'" />\n <meta name="keywords" content="', u'', u'" />\n <meta name="robots" content="', u'nofollow', u'" />\n <link rel="shortcut icon" href="/favicon.ico">\n <link rel="shortcut icon" href="/apple-touch-icon.png">\n <meta name="viewport" content="width=1016,maximum-scale=1.0" />\n\n ', u'<link rel="stylesheet" media="all" href="/media/cache-forever/css/uni-form_uni-form_reset_all_extra.1487004721.css"/>\n \n \n \n \n \n \n\n<style>\n\t#nav li:hover a, #nav li.hover a, #nav li.active a, #nav a:hover {border-bottom-color: #f7941d !important;}\n\t#sidebar .text-holder p b, #sidebar .text-holder p strong {color: #f7941d !important;}\n\t.pg_sidebar_item a:hover {color: #f7941d !important;}\n\t.post-detail blockquote { border-bottom-color: #f7941d !important; border-top-color: #f7941d !important;}\n\t.home #sidebar .post-block h3 {color: #f7941d !important;}\n\t.uniForm .ctrlHolder .errorField span {background: #f7941d !important;}\n\t.primary-color {color: #2D257D !important;}\n\t.accent-color {color: #f7941d !important;}\n\t#show-content a:hover {color: #f7941d !important;}\n\t#content {border-bottom-color: #2D257D !important;}\n\t.add-nav li.active a, .add-nav a:hover {color: #f7941d;}\n\t#content .block h3 {color: #2D257D !important;}\n\t#nav li {padding: 0 20px;}\n\t.inner2 .logo, .logo {width: 320px !important;}\n\t#header .text-holder {color: #2D257D !important;}\n\t.partner-office-tabs li.active a, .partner-office-tabs li a:hover { background: #f7941d !important; }\n\t\n\t#content .block table td {border: 1px solid #EEEEEE; padding: 6px;}\n\t\n\t\n\t#sidebar .post-list.image-with-title-and-teaser a.title { color: #f7941d !important; }\n\n\t\n\t.slideshow-pages li.active a, .slideshow-pages a:hover { background: #f7941d !important; }\n\t.slideshow-pages a { border-color: #f7941d !important; }\n\t.pages li.active a, .pages a:hover { background: #f7941d !important; }\n\t.relise-list a { color: #f7941d !important; }\n</style>\n ', u'\n\n ', '', u'\n\n <style>\n @media print {\n\t\t#header{display:none}\n\t\t#header-bar{display:none}\n\t\t#footer{display:none}\n\t\t#sidebar{display:none}.tools{display:none}\n\t\t#background-image-container{display:none}\n\t\t#background-image{display:none}\n\t\t#content .block .heading .image{display:none}\n\t\tbody{background:none !important}\n\t}\n\t@media (screen, max-device-width: 1024px) {\n\t\t.btn-submit{-webkit-appearance:none;-webkit-border-radius:0px}\n\t\tinput[type=text]{-webkit-appearance:none;-webkit-appearance:none;-webkit-border-radius:0px}\n\t\t#footer{position:relative}\n\t}\n /*#nav li:nth-child(3), li:nth-child(4), li:nth-child(5){display: none;}\n\n #nav li .drop ul li:nth-child(2){display: none;}\n #nav li .drop ul li:nth-child(3){display: none;}*/\n\n #footer .columns.new-footer .col2 {\n width: 100% !important;\n float: inherit !important;\n padding: 0px 0px;\n text-align: center !important;\n}\n\n\t', '', u'\n </style>\n\n ', '', u'\n <!--[if lt IE 8]><link rel="stylesheet" type="text/css" href="', u'/static/', u'css/ie.css" media="screen"/><![endif]-->\n\t<!--[if IE 8]><link rel="stylesheet" type="text/css" href="', u'/static/', u'css/ie8.css" media="screen"/><![endif]-->\n ', '', u'\n\n\t', '', u'\n\n <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>\n\n '] |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'source'):
e.source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
result = node.render(context)...
except TemplateSyntaxError, e:
if not hasattr(e, 'source'):
e.source = node.source
raise
except Exception, e:
from sys import exc_info
Variable | Value |
---|---|
node | <Tag: render_block> |
self | [<django.template.defaulttags.LoadNode object at 0x55e7f0c>, <Text Node: ' '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x59d404c>, <Text Node: ' <!DOCTYPE html PUBLIC "-'>, <Variable Node: ws_settings.company_name>, <Text Node: ' | '>, <Block Node: title. Contents: [<Tag: page_attribute>]>, <Text Node: '</title> <meta name="'>, <Block Node: site-meta-description. Contents: [<Tag: page_attribute>]>, <Text Node: '" /> <meta name="keyw'>, <Block Node: site-meta-keywords. Contents: [<Tag: page_attribute>]>, <Text Node: '" /> <meta name="robo'>, <If node>, <Text Node: '" /> <link rel="short'>, <django_static.templatetags.django_static.StaticFilesNode object at 0x55f932c>, <Text Node: ' '>, <django.template.defaulttags.CommentNode object at 0x55f93ec>, <Text Node: ' <style> @media '>, <If node>, <Text Node: ' </style> '>, <Block Node: extracss. Contents: []>, <Text Node: ' <!--[if lt IE 8]><li'>, <Variable Node: STATIC_URL>, <Text Node: 'css/ie.css" media="screen'>, <Variable Node: STATIC_URL>, <Text Node: 'css/ie8.css" media="scree'>, <Block Node: extra_head. Contents: []>, <Text Node: ' '>, <django.template.defaulttags.CommentNode object at 0x51cd7cc>, <Text Node: ' <script type="text/'>, <Tag: render_block>] |
e | TemplateSyntaxError(u'Caught HTTPError while rendering: HTTP Error 403: Forbidden',) |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/classytags/core.py
in render
"""
INTERNAL method to prepare rendering
Usually you should not override this method, but rather use render_tag.
"""
items = self.kwargs.items()
kwargs = dict([(key, value.resolve(context)) for key, value in items])
kwargs.update(self.blocks)
return self.render_tag(context, **kwargs)...
def render_tag(self, context, **kwargs):
"""
The method you should override in your custom tags
"""
raise NotImplementedError
Variable | Value |
---|---|
key | 'postprocessor' |
items | [('name', <classytags.values.StringValue object at 0x55580ac>), ('postprocessor', <TemplateConstant: None>)] |
self | <Tag: render_block> |
value | <TemplateConstant: None> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
kwargs | {'name': u'css', 'nodelist': [<Text Node: ' </head> <body class="'>, <If node>, <Text Node: ' '>, <Block Node: body_class. Contents: []>, <Text Node: ' '>, <If node>, <If node>, <Text Node: ' '>, <If node>, <If node>, <Text Node: '"> '>, <django.template.base.SimpleNode object at 0x51cd78c>, <Text Node: ' <div id="background-ima'>, <Variable Node: bg_image.image.url>, <Text Node: '" id="background-image" w'>, <django_static.templatetags.django_static.SlimContentNode object at 0x4e2d50c>, <Text Node: ' '>, <If node>, <Text Node: ' '>, <django_static.templatetags.django_static.StaticFilesNode object at 0x4e2d92c>, <Text Node: ' <script type="text/java'>, <Variable Node: STATIC_URL>, <Text Node: 'js/lib/jquery.scrollTo-1.'>, <django_static.templatetags.django_static.SlimContentNode object at 0x55e754c>, <Text Node: ' '>, <django_static.templatetags.django_static.SlimContentNode object at 0x55e722c>, <Text Node: ' '>, <Tag: render_block>], 'postprocessor': None} |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/sekizai/templatetags/sekizai_tags.py
in render_tag
Argument('postprocessor', required=False, default=None, resolve=False),
parser_class=SekizaiParser,
)
def render_tag(self, context, name, postprocessor, nodelist):
if not validate_context(context):
return nodelist.render(context)
rendered_contents = nodelist.render(context)...
varname = getattr(settings, 'SEKIZAI_VARNAME', 'SEKIZAI_CONTENT_HOLDER')
data = context[varname][name].render()
if postprocessor:
func = import_processor(postprocessor)
data = func(data, name)
return '%s\n%s' % (data, rendered_contents)
Variable | Value |
---|---|
self | <Tag: render_block> |
nodelist | [<Text Node: ' </head> <body class="'>, <If node>, <Text Node: ' '>, <Block Node: body_class. Contents: []>, <Text Node: ' '>, <If node>, <If node>, <Text Node: ' '>, <If node>, <If node>, <Text Node: '"> '>, <django.template.base.SimpleNode object at 0x51cd78c>, <Text Node: ' <div id="background-ima'>, <Variable Node: bg_image.image.url>, <Text Node: '" id="background-image" w'>, <django_static.templatetags.django_static.SlimContentNode object at 0x4e2d50c>, <Text Node: ' '>, <If node>, <Text Node: ' '>, <django_static.templatetags.django_static.StaticFilesNode object at 0x4e2d92c>, <Text Node: ' <script type="text/java'>, <Variable Node: STATIC_URL>, <Text Node: 'js/lib/jquery.scrollTo-1.'>, <django_static.templatetags.django_static.SlimContentNode object at 0x55e754c>, <Text Node: ' '>, <django_static.templatetags.django_static.SlimContentNode object at 0x55e722c>, <Text Node: ' '>, <Tag: render_block>] |
name | u'css' |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
postprocessor | None |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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):
bits.append(self.render_node(node, context))...
else:
bits.append(node)
return mark_safe(''.join([force_unicode(b) for b in bits]))
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
Variable | Value |
---|---|
node | <django_static.templatetags.django_static.SlimContentNode object at 0x4e2d50c> |
self | [<Text Node: ' </head> <body class="'>, <If node>, <Text Node: ' '>, <Block Node: body_class. Contents: []>, <Text Node: ' '>, <If node>, <If node>, <Text Node: ' '>, <If node>, <If node>, <Text Node: '"> '>, <django.template.base.SimpleNode object at 0x51cd78c>, <Text Node: ' <div id="background-ima'>, <Variable Node: bg_image.image.url>, <Text Node: '" id="background-image" w'>, <django_static.templatetags.django_static.SlimContentNode object at 0x4e2d50c>, <Text Node: ' '>, <If node>, <Text Node: ' '>, <django_static.templatetags.django_static.StaticFilesNode object at 0x4e2d92c>, <Text Node: ' <script type="text/java'>, <Variable Node: STATIC_URL>, <Text Node: 'js/lib/jquery.scrollTo-1.'>, <django_static.templatetags.django_static.SlimContentNode object at 0x55e754c>, <Text Node: ' '>, <django_static.templatetags.django_static.SlimContentNode object at 0x55e722c>, <Text Node: ' '>, <Tag: render_block>] |
bits | [u'\n</head>\n<body class="', u'', u' ', '', u' ', '', '', u' ', '', '', u'">\n\t', '', u'\n\t<div id="background-image-container">\n\t\t<img src="', u'/media/uploads/backgrounds/istock_000018530861medium_80p_1280x800.jpg', u'" id="background-image" width="1280" height="800" />\n\t</div>\n '] |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'source'):
e.source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
result = node.render(context)...
except TemplateSyntaxError, e:
if not hasattr(e, 'source'):
e.source = node.source
raise
except Exception, e:
from sys import exc_info
Variable | Value |
---|---|
node | <django_static.templatetags.django_static.SlimContentNode object at 0x4e2d50c> |
self | [<Text Node: ' </head> <body class="'>, <If node>, <Text Node: ' '>, <Block Node: body_class. Contents: []>, <Text Node: ' '>, <If node>, <If node>, <Text Node: ' '>, <If node>, <If node>, <Text Node: '"> '>, <django.template.base.SimpleNode object at 0x51cd78c>, <Text Node: ' <div id="background-ima'>, <Variable Node: bg_image.image.url>, <Text Node: '" id="background-image" w'>, <django_static.templatetags.django_static.SlimContentNode object at 0x4e2d50c>, <Text Node: ' '>, <If node>, <Text Node: ' '>, <django_static.templatetags.django_static.StaticFilesNode object at 0x4e2d92c>, <Text Node: ' <script type="text/java'>, <Variable Node: STATIC_URL>, <Text Node: 'js/lib/jquery.scrollTo-1.'>, <django_static.templatetags.django_static.SlimContentNode object at 0x55e754c>, <Text Node: ' '>, <django_static.templatetags.django_static.SlimContentNode object at 0x55e722c>, <Text Node: ' '>, <Tag: render_block>] |
e | TemplateSyntaxError(u'Caught HTTPError while rendering: HTTP Error 403: Forbidden',) |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django_static/templatetags/django_static.py
in render
class SlimContentNode(template.Node):
def __init__(self, nodelist, format=None):
self.nodelist = nodelist
self.format = format
def render(self, context):
code = self.nodelist.render(context)...
if slimmer is None:
return code
if self.format not in ('css','js','html','xhtml'):
self.format = slimmer.guessSyntax(code)
Variable | Value |
---|---|
self | <django_static.templatetags.django_static.SlimContentNode object at 0x4e2d50c> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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):
bits.append(self.render_node(node, context))...
else:
bits.append(node)
return mark_safe(''.join([force_unicode(b) for b in bits]))
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
Variable | Value |
---|---|
node | <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]> |
self | [<Text Node: ' <div id="wrapper"> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a240c>, <Text Node: ' '>, <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>, <Text Node: ' </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x4e2d70c>, <Text Node: ' '>, <If node>, <Text Node: ' '>] |
bits | [u'\n <div id="wrapper">\n <div class="w1">\n <div class="w2">\n ', u'\n\n<div id="header-bar">\n\t<div class="bar">\n\t\t<div class="bar-holder">\n\t\t <ul id="nav">\n \n <li class="active">\n <a href="/" class="parent">Home</a>\n \n \n </li>\n \n <li class="">\n <a href="/about-us/" class="parent">About Us</a>\n \n \n <div class="drop">\n \t<div class="drop-holder">\n \t\t<ul>\n \t\t \n \t\t\t<li><a href="/about-us/the-team/" class="no-icon">The Team</a></li>\n \t\t\t\n \t\t</ul>\n \t</div>\n </div>\n \n </li>\n \n <li class="">\n <a href="/contact/" class="parent">Contact</a>\n \n \n </li>\n \n</ul>\n\t\t \n\t\t</div>\n\t</div>\n</div>\n<div id="header">\n\t<div class="header-holder home-slideshow" style="display: none;" id="main-box-1">\n\t\t<div class="section">\n\t\t\t<h1 class="logo" ><a href="/" title="Clarey Napier International"><img src="/media/uploads/logos/clareynapier_logo_transp_header_logo_sm.png" height="56" /></a></h1>\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t</div>\n\t\t\n\t</div>\n</div>', u'\n\n '] |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'source'):
e.source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
result = node.render(context)...
except TemplateSyntaxError, e:
if not hasattr(e, 'source'):
e.source = node.source
raise
except Exception, e:
from sys import exc_info
Variable | Value |
---|---|
node | <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]> |
self | [<Text Node: ' <div id="wrapper"> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a240c>, <Text Node: ' '>, <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>, <Text Node: ' </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x4e2d70c>, <Text Node: ' '>, <If node>, <Text Node: ' '>] |
e | TemplateSyntaxError(u'Caught HTTPError while rendering: HTTP Error 403: Forbidden',) |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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 = BlockNode(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)
context.pop()
return result
def super(self):
Variable | Value |
---|---|
push | <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x518464c> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
block | <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]> |
self | <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]> |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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):
bits.append(self.render_node(node, context))...
else:
bits.append(node)
return mark_safe(''.join([force_unicode(b) for b in bits]))
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
Variable | Value |
---|---|
node | <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]> |
self | [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>] |
bits | [u'\n\n <div id="main">\n\t <div id="show-content" style="display: none;"><a href="#" onclick="show_content(); return false;">Show Content</a></div>\n <div class="twocolumns">\n <div id="content">\n '] |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'source'):
e.source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
result = node.render(context)...
except TemplateSyntaxError, e:
if not hasattr(e, 'source'):
e.source = node.source
raise
except Exception, e:
from sys import exc_info
Variable | Value |
---|---|
node | <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]> |
self | [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>] |
e | TemplateSyntaxError(u'Caught HTTPError while rendering: HTTP Error 403: Forbidden',) |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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 = BlockNode(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)
context.pop()
return result
def super(self):
Variable | Value |
---|---|
push | <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x518464c> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
block | <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]> |
self | <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]> |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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):
bits.append(self.render_node(node, context))...
else:
bits.append(node)
return mark_safe(''.join([force_unicode(b) for b in bits]))
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
Variable | Value |
---|---|
node | <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c> |
self | [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>] |
bits | [u'\n\t', '', u'\n\t', u'\n\n<div class="section">\n\t\n\n<ul class="breadcrumbs">\n\t\n\t\t<li><a href="/">Home</a></li>\n\t\n</ul>\n\t<ul class="tools">\n\t \n\t\t<li class="print">\n\t\t\t<a href="#" onclick="window.print(); return false;">\n\t\t\t\t<img src="/static/images/ico-print.gif" width="11" height="14" border="0" alt="Share" /><span style="top: -5px; position: relative; padding-top: 0px;"> Print</span></a>\n\t\t</li>\n\t\t\n\t\t\n\t</ul>\n</div>\n\n\n\n', u'\n\t<div class="block">\n\t\t<div class="heading">\n\t\t\t<div class="heading-holder">\n\t\t\t\t<div class="image">\n\t\t\t\t\t', u'<img src="/static/images/blank.png" width="48" height="48" />', u'\n\t\t\t\t</div>\n\t\t\t\t<h1>', u'Executive Lounge', u': ', u'EMEA', u'</h1>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t\n\t'] |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'source'):
e.source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
result = node.render(context)...
except TemplateSyntaxError, e:
if not hasattr(e, 'source'):
e.source = node.source
raise
except Exception, e:
from sys import exc_info
Variable | Value |
---|---|
node | <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c> |
self | [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>] |
e | TemplateSyntaxError(u'Caught HTTPError while rendering: HTTP Error 403: Forbidden',) |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/loader_tags.py
in render
if settings.TEMPLATE_DEBUG:
raise
self.template = None
def render(self, context):
if not self.template:
return ''
return self.render_template(self.template, context)...
class IncludeNode(BaseIncludeNode):
def __init__(self, template_name, *args, **kwargs):
super(IncludeNode, self).__init__(*args, **kwargs)
self.template_name = template_name
Variable | Value |
---|---|
self | <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/loader_tags.py
in render_template
def render_template(self, template, context):
values = dict([(name, var.resolve(context)) for name, var
in self.extra_context.iteritems()])
if self.isolated_context:
return template.render(context.new(values))
context.update(values)
output = template.render(context)...
context.pop()
return output
class ConstantIncludeNode(BaseIncludeNode):
def __init__(self, template_path, *args, **kwargs):
super(ConstantIncludeNode, self).__init__(*args, **kwargs)
Variable | Value |
---|---|
self | <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c> |
values | {} |
template | <django.template.base.Template object at 0x55b216c> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/base.py
in render
def _render(self, context):
return self.nodelist.render(context)
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)...
finally:
context.render_context.pop()
def compile_string(template_string, origin):
"Compiles template_string into NodeList ready for rendering"
if settings.TEMPLATE_DEBUG:
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x55b216c> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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"
context.render_context.push()
try:
return self._render(context)
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x55b216c> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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):
bits.append(self.render_node(node, context))...
else:
bits.append(node)
return mark_safe(''.join([force_unicode(b) for b in bits]))
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
Variable | Value |
---|---|
node | <If node> |
self | [<django.template.defaulttags.LoadNode object at 0x55f772c>, <Text Node: ' '>, <If node>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b22cc>, <Text Node: ' <div class="posts" id="'>, <If node>, <Text Node: ' <script type="text/java'>, <If node>, <Text Node: ' }); </script>'>] |
bits | ['', u'\n\n'] |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'source'):
e.source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
result = node.render(context)...
except TemplateSyntaxError, e:
if not hasattr(e, 'source'):
e.source = node.source
raise
except Exception, e:
from sys import exc_info
Variable | Value |
---|---|
node | <If node> |
self | [<django.template.defaulttags.LoadNode object at 0x55f772c>, <Text Node: ' '>, <If node>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b22cc>, <Text Node: ' <div class="posts" id="'>, <If node>, <Text Node: ' <script type="text/java'>, <If node>, <Text Node: ' }); </script>'>] |
e | TemplateSyntaxError(u'Caught HTTPError while rendering: HTTP Error 403: Forbidden',) |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/defaulttags.py
in render
var = self.var.eval(context)
except VariableDoesNotExist:
var = None
if var:
return self.nodelist_true.render(context)
else:
return self.nodelist_false.render(context)...
class RegroupNode(Node):
def __init__(self, target, expression, var_name):
self.target, self.expression = target, expression
self.var_name = var_name
Variable | Value |
---|---|
var | None |
self | <If node> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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):
bits.append(self.render_node(node, context))...
else:
bits.append(node)
return mark_safe(''.join([force_unicode(b) for b in bits]))
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
Variable | Value |
---|---|
node | <If node> |
self | [<Text Node: ' '>, <If node>, <Text Node: ' '>] |
bits | [u'\n\t'] |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'source'):
e.source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
result = node.render(context)...
except TemplateSyntaxError, e:
if not hasattr(e, 'source'):
e.source = node.source
raise
except Exception, e:
from sys import exc_info
Variable | Value |
---|---|
node | <If node> |
self | [<Text Node: ' '>, <If node>, <Text Node: ' '>] |
e | TemplateSyntaxError(u'Caught HTTPError while rendering: HTTP Error 403: Forbidden',) |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/defaulttags.py
in render
var = self.var.eval(context)
except VariableDoesNotExist:
var = None
if var:
return self.nodelist_true.render(context)
else:
return self.nodelist_false.render(context)...
class RegroupNode(Node):
def __init__(self, target, expression, var_name):
self.target, self.expression = target, expression
self.var_name = var_name
Variable | Value |
---|---|
var | None |
self | <If node> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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):
bits.append(self.render_node(node, context))...
else:
bits.append(node)
return mark_safe(''.join([force_unicode(b) for b in bits]))
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
Variable | Value |
---|---|
node | <If node> |
self | [<Text Node: ' '>, <If node>, <Text Node: ' '>] |
bits | [u'\n\t\t'] |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'source'):
e.source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
result = node.render(context)...
except TemplateSyntaxError, e:
if not hasattr(e, 'source'):
e.source = node.source
raise
except Exception, e:
from sys import exc_info
Variable | Value |
---|---|
node | <If node> |
self | [<Text Node: ' '>, <If node>, <Text Node: ' '>] |
e | TemplateSyntaxError(u'Caught HTTPError while rendering: HTTP Error 403: Forbidden',) |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/defaulttags.py
in render
var = self.var.eval(context)
except VariableDoesNotExist:
var = None
if var:
return self.nodelist_true.render(context)
else:
return self.nodelist_false.render(context)...
class RegroupNode(Node):
def __init__(self, target, expression, var_name):
self.target, self.expression = target, expression
self.var_name = var_name
Variable | Value |
---|---|
var | None |
self | <If node> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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):
bits.append(self.render_node(node, context))...
else:
bits.append(node)
return mark_safe(''.join([force_unicode(b) for b in bits]))
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
Variable | Value |
---|---|
node | <If node> |
self | [<Text Node: ' '>, <If node>, <Text Node: ' '>] |
bits | [u'\n\t\t\t'] |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'source'):
e.source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
result = node.render(context)...
except TemplateSyntaxError, e:
if not hasattr(e, 'source'):
e.source = node.source
raise
except Exception, e:
from sys import exc_info
Variable | Value |
---|---|
node | <If node> |
self | [<Text Node: ' '>, <If node>, <Text Node: ' '>] |
e | TemplateSyntaxError(u'Caught HTTPError while rendering: HTTP Error 403: Forbidden',) |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/defaulttags.py
in render
def render(self, context):
try:
var = self.var.eval(context)
except VariableDoesNotExist:
var = None
if var:
return self.nodelist_true.render(context)...
else:
return self.nodelist_false.render(context)
class RegroupNode(Node):
def __init__(self, target, expression, var_name):
self.target, self.expression = target, expression
Variable | Value |
---|---|
var | (1, 'EMEA') |
self | <If node> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/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):
bits.append(self.render_node(node, context))...
else:
bits.append(node)
return mark_safe(''.join([force_unicode(b) for b in bits]))
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
Variable | Value |
---|---|
node | <django.template.base.SimpleNode object at 0x58b94cc> |
self | [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x58b94cc>, <Text Node: ' '>] |
bits | [u'\n\t\t\t\t'] |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'source'):
e.source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
result = node.render(context)...
except TemplateSyntaxError, e:
if not hasattr(e, 'source'):
e.source = node.source
raise
except Exception, e:
from sys import exc_info
Variable | Value |
---|---|
node | <django.template.base.SimpleNode object at 0x58b94cc> |
e | HTTPError() |
self | [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x58b94cc>, <Text Node: ' '>] |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
wrapped | TemplateSyntaxError(u'Caught HTTPError while rendering: HTTP Error 403: Forbidden',) |
exc_info | <built-in function exc_info> |
/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django/template/base.py
in render
def render(self, context):
resolved_vars = [var.resolve(context) for var in self.vars_to_resolve]
if takes_context:
func_args = [context] + resolved_vars
else:
func_args = resolved_vars
return func(*func_args)...
compile_func = curry(generic_tag_compiler, params, defaults, getattr(func, "_decorated_function", func).__name__, SimpleNode)
compile_func.__doc__ = func.__doc__
self.tag(getattr(func, "_decorated_function", func).__name__, compile_func)
return func
Variable | Value |
---|---|
resolved_vars | [(1, 'EMEA'), <WebsiteSetting: Active Website Settings #1>] |
takes_context | True |
func_args | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}], (1, 'EMEA'), <WebsiteSetting: Active Website Settings #1>] |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
self | <django.template.base.SimpleNode object at 0x58b94cc> |
func | <function get_featured_for_region at 0x341af0c> |
var | <Variable: u'ws_settings'> |
/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/apps/blog/templatetags/blog_tags.py
in get_featured_for_region
context['featured'] = featured
context['sub_featured'] = sub_featured
return ''
@register.simple_tag(takes_context=True)
def get_featured_for_region(context, region, ws_settings):
if ws_settings.include_api_blogposts and not request_is_for_local_blog(context['request'], ws_settings):
featured = get_api_list("blogpost", {'is_featured_for_region':True, 'region':region[0]})[:1]...
sub_featured = get_api_list("blogpost", {'is_sub_featured_for_region':True, 'region':region[0]})[:2]
else:
Post = get_model("blog", "post")
featured = Post.published.filter(is_featured_for_region=True, region=region[0])[:1]
sub_featured = Post.published.filter(is_sub_featured_for_region=True, region=region[0])[:2]
Variable | Value |
---|---|
region | (1, 'EMEA') |
ws_settings | <WebsiteSetting: Active Website Settings #1> |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x4dd780c>}, {'perms': <django.utils.functional.__proxy__ object at 0x4dd746c>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>, 'user': <django.utils.functional.SimpleLazyObject object at 0x4dd722c>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'request': <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'afc08872f70e2bc1f2abb6e239077f08', 'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'cnintl.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '44.213.80.203', 'HTTP_X_REAL_IP': '44.213.80.203', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/executive-lounge/region/1/', 'PATH_TRANSLATED': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '38218', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/executive-lounge/region/1/', 'SCRIPT_FILENAME': '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://cnintl.com/executive-lounge/region/1/', 'SCRIPT_URL': '/executive-lounge/region/1/', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'cnintl.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)', 'mod_wsgi.application_group': 'cnintl.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'cnintl', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (2, 8), 'wsgi.errors': <mod_wsgi.Log object at 0x34e79a0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x3f33260>, 'wsgi.input': <mod_wsgi.Input object at 0x4041cc8>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x5077d0c>}, {'site': <Site: example.com>, 'settings': <apps.common.utils.context_processors.SafeSettings instance at 0x39add4c>}, {'allauth': {'twitter_enabled': True, 'socialaccount_enabled': True, 'facebook_enabled': True, 'openid_enabled': True}}, {'CONTACT_EMAIL': 'support@iic.com'}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'bw_partner': <Partner: Clarey Napier International>, 'multilingual': False, 'ws_settings': <WebsiteSetting: Active Website Settings #1>}, {'LANGUAGES': (('en', 'English'),), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en'}, {'region': (1, 'EMEA'), 'bg_image': <BackgroundImage: 15>, u'LANGUAGE_CODE': 'en'}, {}, {'block': <Block Node: content_outer. Contents: [<Text Node: ' <div id'>, <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55a2a8c>, <Text Node: ' '>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' '>, <Block Node: page_title_outer. Contents: [<Text Node: '<h1 '>, <If node>, <Text Node: '>'>, <Block Node: page_title. Contents: []>, <Text Node: '</h1>'>]>, <Text Node: ' '>, <Block Node: page_meta_text. Contents: []>, <Text Node: '</span> '>, <Block Node: first_paragraph_outer. Contents: [<Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: first_paragraph. Contents: []>, <Text Node: '</q> '>]>, <Text Node: ' '>, <If node>, <Text Node: '> '>, <Block Node: content. Contents: []>, <Text Node: ' '>, <Block Node: sub_content. Contents: []>, <Text Node: ' '>]>, <Text Node: ' '>, <django.templatetags.cache.CacheNode object at 0x4e2d9ac>, <Text Node: ' </di'>]>}, {'is_local_blog': False, 'block': <Block Node: content_outer2. Contents: [<Text Node: ' '>, <django.template.base.SimpleNode object at 0x59d4acc>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x59d470c>, <Text Node: ' <div class="block"> <'>, <Block Node: page_title_image. Contents: [<Text Node: '<img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/blank.png" width="'>]>, <Text Node: ' </div> <h1>'>, <If node>, <Text Node: ': '>, <Variable Node: region.1>, <Text Node: '</h1> </div> </div> '>, <django.template.loader_tags.ConstantIncludeNode object at 0x55b280c>, <Text Node: ' '>]>}, {}] |
/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/apps/core/utils.py
in __call__
self.cache = {}
def __call__(self, *args, **kwargs):
key = str(args) + str(kwargs)
try:
return self.cache[key]
except KeyError:
self.cache[key] = rval = self.fun(*args, **kwargs)...
return rval
except TypeError: # incase key isn't a valid key - don't cache
return self.fun(*args, **kwargs)
@cache
def get_website_settings():
Variable | Value |
---|---|
self | <apps.core.utils.cache object at 0x326532c> |
args | ('blogpost', {'is_featured_for_region': True, 'region': 1}) |
key | "('blogpost', {'region': 1, 'is_featured_for_region': True}){}" |
kwargs | {} |
/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/apps/core/utils.py
in get_api_list
if settings.IIC_API_USERNAME != "" and settings.IIC_API_PASSWORD != "":
request = urllib2.Request(_url)
base64string = base64.encodestring('%s:%s' % (settings.IIC_API_USERNAME, settings.IIC_API_PASSWORD)).replace('\n', '')
request.add_header("Authorization", "Basic %s" % base64string)
result = urllib2.urlopen(request)
else:
result = urllib2.urlopen(_url)...
return simplejson.load(result)["objects"]
@cache
def get_api_object(entity, filter_dict):
"""
Variable | Value |
---|---|
_filters | 'region=1&is_featured_for_region=True' |
_url | 'http://old.iicpartners.com/api/v1/blogpost/?format=json®ion=1&is_featured_for_region=True' |
filter_dict | {'is_featured_for_region': True, 'region': 1} |
value | True |
entity | 'blogpost' |
key | 'is_featured_for_region' |
/usr/lib/python2.6/urllib2.py
in urlopen
__version__ = sys.version[:3]
_opener = None
def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
global _opener
if _opener is None:
_opener = build_opener()
return _opener.open(url, data, timeout)...
def install_opener(opener):
global _opener
_opener = opener
# do these error classes make sense?
Variable | Value |
---|---|
url | 'http://old.iicpartners.com/api/v1/blogpost/?format=json®ion=1&is_featured_for_region=True' |
data | None |
timeout | <object object at 0xb62594d8> |
/usr/lib/python2.6/urllib2.py
in open
response = self._open(req, data)
# post-process response
meth_name = protocol+"_response"
for processor in self.process_response.get(protocol, []):
meth = getattr(processor, meth_name)
response = meth(req, response)...
return response
def _open(self, req, data=None):
result = self._call_chain(self.handle_open, 'default',
'default_open', req)
Variable | Value |
---|---|
protocol | 'http' |
self | <urllib2.OpenerDirector instance at 0x55eb98c> |
req | <urllib2.Request instance at 0x56cf94c> |
meth_name | 'http_response' |
processor | <urllib2.HTTPErrorProcessor instance at 0x55eb60c> |
timeout | <object object at 0xb62594d8> |
meth | <bound method HTTPErrorProcessor.http_response of <urllib2.HTTPErrorProcessor instance at 0x55eb60c>> |
data | None |
response | <addinfourl at 89763532 whose fp = <socket._fileobject object at 0x55e5b6c>> |
fullurl | 'http://old.iicpartners.com/api/v1/blogpost/?format=json®ion=1&is_featured_for_region=True' |
/usr/lib/python2.6/urllib2.py
in http_response
def http_response(self, request, response):
code, msg, hdrs = response.code, response.msg, response.info()
# According to RFC 2616, "2xx" code indicates that the client's
# request was successfully received, understood, and accepted.
if not (200 <= code < 300):
response = self.parent.error(
'http', request, response, code, msg, hdrs)...
return response
https_response = http_response
class HTTPDefaultErrorHandler(BaseHandler):
Variable | Value |
---|---|
code | 403 |
hdrs | <httplib.HTTPMessage instance at 0x5183c2c> |
self | <urllib2.HTTPErrorProcessor instance at 0x55eb60c> |
request | <urllib2.Request instance at 0x56cf94c> |
msg | 'Forbidden' |
response | <addinfourl at 89763532 whose fp = <socket._fileobject object at 0x55e5b6c>> |
/usr/lib/python2.6/urllib2.py
in error
args = (dict, proto, meth_name) + args
result = self._call_chain(*args)
if result:
return result
if http_err:
args = (dict, 'default', 'http_error_default') + orig_args
return self._call_chain(*args)...
# XXX probably also want an abstract factory that knows when it makes
# sense to skip a superclass in favor of a subclass and when it might
# make sense to include both
def build_opener(*handlers):
Variable | Value |
---|---|
orig_args | (<urllib2.Request instance at 0x56cf94c>, <addinfourl at 89763532 whose fp = <socket._fileobject object at 0x55e5b6c>>, 403, 'Forbidden', <httplib.HTTPMessage instance at 0x5183c2c>) |
proto | 403 |
self | <urllib2.OpenerDirector instance at 0x55eb98c> |
args | ({301: [<urllib2.HTTPRedirectHandler instance at 0x55eb66c>], 302: [<urllib2.HTTPRedirectHandler instance at 0x55eb66c>], 303: [<urllib2.HTTPRedirectHandler instance at 0x55eb66c>], 307: [<urllib2.HTTPRedirectHandler instance at 0x55eb66c>], 'default': [<urllib2.HTTPDefaultErrorHandler instance at 0x55eb42c>]}, 'default', 'http_error_default', <urllib2.Request instance at 0x56cf94c>, <addinfourl at 89763532 whose fp = <socket._fileobject object at 0x55e5b6c>>, 403, 'Forbidden', <httplib.HTTPMessage instance at 0x5183c2c>) |
meth_name | 'http_error_403' |
dict | {301: [<urllib2.HTTPRedirectHandler instance at 0x55eb66c>], 302: [<urllib2.HTTPRedirectHandler instance at 0x55eb66c>], 303: [<urllib2.HTTPRedirectHandler instance at 0x55eb66c>], 307: [<urllib2.HTTPRedirectHandler instance at 0x55eb66c>], 'default': [<urllib2.HTTPDefaultErrorHandler instance at 0x55eb42c>]} |
result | None |
http_err | 1 |
/usr/lib/python2.6/urllib2.py
in _call_chain
# Handlers raise an exception if no one else should try to handle
# the request, or return None if they can't but another handler
# could. Otherwise, they return the response.
handlers = chain.get(kind, ())
for handler in handlers:
func = getattr(handler, meth_name)
result = func(*args)...
if result is not None:
return result
def open(self, fullurl, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
# accept a URL or a Request object
if isinstance(fullurl, basestring):
Variable | Value |
---|---|
kind | 'default' |
chain | {301: [<urllib2.HTTPRedirectHandler instance at 0x55eb66c>], 302: [<urllib2.HTTPRedirectHandler instance at 0x55eb66c>], 303: [<urllib2.HTTPRedirectHandler instance at 0x55eb66c>], 307: [<urllib2.HTTPRedirectHandler instance at 0x55eb66c>], 'default': [<urllib2.HTTPDefaultErrorHandler instance at 0x55eb42c>]} |
handlers | [<urllib2.HTTPDefaultErrorHandler instance at 0x55eb42c>] |
self | <urllib2.OpenerDirector instance at 0x55eb98c> |
args | (<urllib2.Request instance at 0x56cf94c>, <addinfourl at 89763532 whose fp = <socket._fileobject object at 0x55e5b6c>>, 403, 'Forbidden', <httplib.HTTPMessage instance at 0x5183c2c>) |
meth_name | 'http_error_default' |
handler | <urllib2.HTTPDefaultErrorHandler instance at 0x55eb42c> |
func | <bound method HTTPDefaultErrorHandler.http_error_default of <urllib2.HTTPDefaultErrorHandler instance at 0x55eb42c>> |
/usr/lib/python2.6/urllib2.py
in http_error_default
return response
https_response = http_response
class HTTPDefaultErrorHandler(BaseHandler):
def http_error_default(self, req, fp, code, msg, hdrs):
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)...
class HTTPRedirectHandler(BaseHandler):
# maximum number of redirections to any single URL
# this is needed because of the state that cookies introduce
max_repeats = 4
# maximum total number of redirections (regardless of URL) before
Variable | Value |
---|---|
fp | <addinfourl at 89763532 whose fp = <socket._fileobject object at 0x55e5b6c>> |
code | 403 |
hdrs | <httplib.HTTPMessage instance at 0x5183c2c> |
self | <urllib2.HTTPDefaultErrorHandler instance at 0x55eb42c> |
req | <urllib2.Request instance at 0x56cf94c> |
msg | 'Forbidden' |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
mod_wsgi.reload_mechanism | '1' |
mod_wsgi.listener_port | '81' |
SERVER_SOFTWARE | 'Apache/2.2.14 (Ubuntu)' |
SCRIPT_NAME | u'' |
SERVER_SIGNATURE | '' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/executive-lounge/region/1/' |
SERVER_PROTOCOL | 'HTTP/1.0' |
QUERY_STRING | '' |
PATH | '/usr/local/bin:/usr/bin:/bin' |
HTTP_X_REAL_IP | '44.213.80.203' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_CONNECTION | 'close' |
SERVER_NAME | 'cnintl.com' |
REMOTE_ADDR | '127.0.0.1' |
wsgi.url_scheme | 'http' |
PATH_TRANSLATED | '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi/executive-lounge/region/1/' |
SERVER_PORT | '80' |
wsgi.multiprocess | False |
SERVER_ADDR | '127.0.0.1' |
DOCUMENT_ROOT | '/htdocs' |
mod_wsgi.process_group | 'cnintl' |
SCRIPT_FILENAME | '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/configs/production/production.wsgi' |
SERVER_ADMIN | '[no address given]' |
SCRIPT_URI | 'http://cnintl.com/executive-lounge/region/1/' |
wsgi.input | <mod_wsgi.Input object at 0x4041cc8> |
HTTP_HOST | 'cnintl.com' |
SCRIPT_URL | '/executive-lounge/region/1/' |
wsgi.multithread | True |
mod_wsgi.callable_object | 'application' |
REQUEST_URI | '/executive-lounge/region/1/' |
HTTP_ACCEPT | '*/*' |
wsgi.version | (1, 0) |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_X_FORWARDED_FOR | '44.213.80.203' |
wsgi.errors | <mod_wsgi.Log object at 0x34e79a0> |
REMOTE_PORT | '38218' |
mod_wsgi.listener_host | '' |
mod_wsgi.version | (2, 8) |
wsgi.run_once | False |
mod_wsgi.application_group | 'cnintl.com|' |
mod_wsgi.script_reloading | '1' |
wsgi.file_wrapper | '' |
CSRF_COOKIE | 'afc08872f70e2bc1f2abb6e239077f08' |
iic_branded.configs.production.settings
Setting | Value |
---|---|
CACHE_COUNT_TIMEOUT | 60 |
ADDTHIS_KEY | 'ra-4d87f7de6c9ab011' |
SOCIALACCOUNT_ENABLED | True |
FILEBROWSER_VERSIONS | {'blog_detail_photo': {'height': 190, 'opts': 'crop upscale', 'verbose_name': 'Blog Detail Photo', 'width': 290}, 'blog_detail_photo_wide': {'height': 190, 'opts': 'crop upscale', 'verbose_name': 'Blog Detail Photo', 'width': 690}, 'blog_featured': {'height': 244, 'opts': 'crop upscale', 'verbose_name': 'Blog Featured Image', 'width': 689}, 'blog_image_thumb': {'height': 74, 'opts': 'crop upscale', 'verbose_name': 'Blog Image Thumb', 'width': 137}, 'blog_image_thumb_portrait': {'height': 196, 'opts': 'crop upscale', 'verbose_name': 'Blog Image Thumb (portrait)', 'width': 137}, 'fb_thumb': {'height': 60, 'opts': 'crop upscale', 'verbose_name': 'Admin Thumbnail', 'width': 60}, 'footer_featured_thumb': {'height': 76, 'opts': 'crop upscale', 'verbose_name': 'Footer Featured Thumb', 'width': 139}, 'header_logo': {'height': 72, 'opts': 'crop upscale', 'verbose_name': 'Footer Featured Thumb', 'width': ''}, 'header_logo_sm': {'height': 56, 'opts': 'crop upscale', 'verbose_name': 'Footer Featured Thumb', 'width': ''}, 'large': {'height': '', 'opts': '', 'verbose_name': 'Large (530px)', 'width': 530}, 'location_banner_photo': {'height': 184, 'opts': 'crop upscale', 'verbose_name': 'Office Banner Photo', 'width': 780}, 'medium': {'height': '', 'opts': '', 'verbose_name': 'Medium (370px)', 'width': 370}, 'office_person_thumb_medium': {'height': 161, 'opts': 'crop upscale', 'verbose_name': 'Office Person Thumb - Medium', 'width': 122}, 'office_person_thumb_medium2': {'height': '', 'opts': 'crop', 'verbose_name': 'Office Person Thumb - Medium', 'width': 122}, 'office_person_thumb_medium3': {'height': '', 'opts': 'crop', 'verbose_name': 'Office Person Thumb - Medium', 'width': 200}, 'office_person_thumb_small': {'height': 79, 'opts': 'crop upscale', 'verbose_name': 'Office Person Thumb - Small', 'width': 60}, 'portrait_thumb': {'height': 51, 'opts': 'crop upscale', 'verbose_name': 'Portrait Thumb', 'width': 48}, 'portrait_thumb3': {'height': '', 'opts': 'crop upscale', 'verbose_name': 'Portrait Thumb', 'width': 39}, 'portrait_thumb_48': {'height': 48, 'opts': 'crop upscale', 'verbose_name': 'Portrait Thumb (48x48)', 'width': 48}, 'portrait_thumb_48x63': {'height': 63, 'opts': 'crop upscale', 'verbose_name': 'Portrait Thumb (48x63)', 'width': 48}, 'practicegroup_banner_photo': {'height': 164, 'opts': 'crop upscale', 'verbose_name': 'Practice Group Banner Photo', 'width': 697}, 'small': {'height': '', 'opts': '', 'verbose_name': 'Small (210px)', 'width': 210}, 'thumb': {'height': 150, 'opts': 'crop upscale', 'verbose_name': 'Grid Thumb', 'width': 150}, 'two_col_header_back': {'height': 152, 'opts': 'crop upscale', 'verbose_name': 'Two Columns of Text - Header Back', 'width': 687}} |
GRAPPELLI_INDEX_DASHBOARD | 'dashboard.CustomIndexDashboard' |
EMAIL_USE_TLS | False |
HAYSTACK_SEARCH_ENGINE | 'whoosh' |
TINYMCE_JS_ROOT | '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/media/grappelli/tinymce/jscripts/tiny_mce/' |
HAYSTACK_WHOOSH_PATH | '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/whoosh_index' |
NUMBER_GROUPING | 0 |
RECAPTCHA_PRIVATE_KEY | '6LfA9ucSAAAAAJ7lw2cCZvto0EsHSfdBHj4EizbH' |
LANGUAGE_CODE | 'en' |
ROOT_URLCONF | 'iic_branded.configs.common.urls' |
LOGIN_URL | '/accounts/signin/' |
PROJECT_INFO_EMAIL_ADDRESS | 'info@iic.rawjam.co.uk' |
DEFAULT_CHARSET | 'utf-8' |
CMS_MEDIA_ROOT | '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/media/cms/' |
ACCOUNT_EMAIL_REQUIRED | True |
CMS_SHOW_START_DATE | True |
CMS_SITE_CHOICES_CACHE_KEY | 'CMS:site_choices' |
TINYMCE_JS_URL | '/static/grappelli/tinymce/jscripts/tiny_mce/tiny_mce.js' |
DEFAULT_LANGUAGE | 0 |
EXEC_LOUNGE_BACKDOOR_KEY | 'BN02ME1CNTMLEVG' |
DJANGO_ROOT | '/home/rawjam/sites/iic_branded/cnintl/env/lib/python2.6/site-packages/django' |
CMS_MODERATOR | False |
GOOGLE_MAPS_API_KEY | '' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.user_messages.LegacyFallbackStorage' |
DATABASE_HOST | '' |
PREFIX_DEFAULT_LOCALE | False |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SEND_BROKEN_LINK_EMAILS | False |
SECRET_KEY | '********************' |
CMS_TEMPLATE_INHERITANCE_MAGIC | 'INHERIT' |
URL_VALIDATOR_USER_AGENT | 'Django/1.3.1 (http://www.djangoproject.com)' |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
CMS_MEDIA_URL | '/media/cms/' |
CMS_SHOW_END_DATE | True |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
ADMIN_FOR | () |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M') |
DATABASES | {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '', 'NAME': 'iic_branded_cnintl', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'Europe/London', 'USER': 'postgres'}} |
FILEBROWSER_ADMIN_THUMBNAIL | 'fb_thumb' |
TEST_DATABASE_NAME | None |
PLACEHOLDER_FRONTEND_EDITING | True |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DJANGO_STATIC | True |
DEFAULT_CONTENT_TYPE | 'text/html' |
ACCOUNT_EMAIL_VERIFICATION | False |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | [] |
CMS_PLUGIN_PROCESSORS | () |
CMS_MENU_TITLE_OVERWRITE | True |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'KEY_PREFIX': 'iic_branded_cnintl:', 'LOCATION': '127.0.0.1:11211'}} |
ACCOUNT_ACTIVATION_ADMINS | ['ben@rawjam.co.uk'] |
CMS_FRONTEND_LANGUAGES | ['en'] |
SERVER_EMAIL | 'root@localhost' |
SESSION_COOKIE_PATH | '/' |
IIC_API_USERNAME | '' |
USE_X_FORWARDED_HOST | False |
CMS_TEMPLATE_INHERITANCE | True |
HAYSTACK_DEFAULT_OPERATOR | 'OR' |
IGNORABLE_404_ENDS | ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php') |
FILE_UPLOAD_TEMP_DIR | None |
CMS_TEMPLATES | (('cms/home.html', 'Home Page'), ('cms/home2.html', 'Home Page 2'), ('cms/home3.html', 'Home Page (with translatable title)'), ('cms/global_offices.html', 'Global Offices'), ('cms/media_centre.html', 'Media Centre'), ('cms/subpage_simple.html', 'Standard Subpage'), ('cms/subpage_wider.html', 'Standard Subpage (wider)'), ('cms/subpage_simple_subbody.html', 'Standard Subpage - Sub Body'), ('cms/subpage_simple_noblock.html', 'Standard Subpage - No Block'), ('cms/subpage_simple_noblock_largelogo.html', 'Standard Subpage - No Block / Large Logo'), ('cms/subpage_simple_notitle.html', 'Standard Subpage - No Title'), ('cms/subpage_simple_nointro.html', 'Standard Subpage - No Intro'), ('cms/full_width.html', 'Full Width (Black Background)'), ('cms/full_width_whitebg.html', 'Full Width (White Background)'), ('cms/iic_about_page.html', 'About IIC Partners'), ('INHERIT', <django.utils.functional.__proxy__ object at 0x2dbdd8c>)) |
CMS_CACHE_PREFIX | 'iic_menu_cnintl:' |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
CMS_LANGUAGES | (('en', 'English'),) |
LANGUAGE_COOKIE_NAME | 'django_language' |
CMS_USE_TINYMCE | True |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'django.utils.log.dictConfig' |
SESSION_COOKIE_AGE | 1209600 |
FILEBROWSER_IMAGE_MAXBLOCK | 1048576 |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
CMS_REDIRECTS | False |
TEMPLATE_DEBUG | True |
CSRF_COOKIE_NAME | 'csrftoken' |
TEST_DATABASE_COLLATION | None |
FORCE_SCRIPT_NAME | None |
CACHE_BACKEND | 'johnny.backends.memcached://127.0.0.1:11211' |
FILEBROWSER_PATH_FILEBROWSER_MEDIA | '/static/filebrowser/' |
SOCIALACCOUNT_QUERY_EMAIL | True |
SESSION_COOKIE_SECURE | False |
CMS_SOFTROOT | True |
SITE_ROOT | '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded' |
CMS_LANGUAGE_FALLBACK | True |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
CMS_CONTENT_CACHE_DURATION | 60 |
SESSION_FILE_PATH | None |
CMS_APPHOOKS | () |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | ['localeurl', 'mothertongue', 'rosetta', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'grappelli.dashboard', 'grappelli', 'django.contrib.admin', 'django.contrib.admindocs', 'django.contrib.comments', 'django.contrib.markup', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'south', 'tinymce', 'filebrowser', 'django_extensions', 'uni_form', 'django_static', 'johnny', 'tagging', 'tagging_autocomplete', 'smart_selects', 'pagination', 'haystack', 'emailconfirmation', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.twitter', 'allauth.openid', 'allauth.facebook', 'apps.common', 'apps.core', 'apps.profile', 'apps.iic', 'apps.practicegroup', 'apps.office', 'apps.insight', 'apps.blog', 'apps.mediacentre', 'cms', 'mptt', 'menus', 'cms.plugins.text', 'cms.plugins.picture', 'cms.plugins.link', 'cms.plugins.file', 'cms.plugins.snippet', 'cms.plugins.googlemap', 'cms.plugins.inherit', 'cms_search', 'apps.cmsplugin_contact', 'sekizai'] |
DJANGO_STATIC_SAVE_PREFIX | '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/media/cache-forever' |
LANGUAGES_BIDI | ('he', 'ar', 'fa') |
USE_L10N | True |
DATABASE_ENGINE | '' |
STATIC_ROOT | '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/static' |
DATABASE_NAME | '' |
COMMENTS_FIRST_FEW | 0 |
PREPEND_WWW | False |
GRAPPELLI_ADMIN_TITLE | "IIC Partners' Branded Website Administration" |
SESSION_COOKIE_HTTPONLY | False |
DATABASE_PORT | '' |
CMS_PAGE_MEDIA_PATH | 'uploads/cms_media/' |
DEBUG_PROPAGATE_EXCEPTIONS | False |
CONTACT_EMAIL | 'support@iic.com' |
FILEBROWSER_EXTENSIONS | {'Code': ['.html', '.py', '.js', '.css'], 'Document': ['.pdf', '.doc', '.rtf', '.txt', '.xls', '.csv'], 'Folder': [''], 'Image': ['.jpg', '.jpeg', '.gif', '.png', '.tif', '.tiff'], 'Sound': ['.mp3', '.mp4', '.wav', '.aiff', '.midi', '.m4p'], 'Video': ['.mov', '.wmv', '.mpeg', '.mpg', '.avi', '.rm', '.swf'], 'file': ['Folder', 'Image', 'Document'], 'image': ['Image']} |
LOG_FILENAME | '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/../iic_branded/configs/production/logging.conf' |
MONTH_DAY_FORMAT | 'F j' |
LOCALEURL_USE_ACCEPT_LANGUAGE | True |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
OPENID_ENABLED | False |
SESSION_SAVE_EVERY_REQUEST | False |
GOOGLE_ANALYTICS_CODE | 'UA-XXXXX-X' |
EMAIL_CONFIRMATION_DAYS | 99 |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
TIME_FORMAT | 'P' |
HAYSTACK_SITECONF | 'configs.common.search_sites' |
FACEBOOK_ENABLED | True |
TEST_DATABASE_CHARSET | None |
DATE_INPUT_FORMATS | ('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y') |
TWITTER_ENABLED | True |
IIC_API_DOMAIN | 'http://old.iicpartners.com' |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend') |
EMAIL_HOST_PASSWORD | '********************' |
GRAPPELLI_ADMIN_URL | '/admin' |
SHARETHIS_PUBLISHER_KEY | 'f3129d97-8846-4ead-a850-726b9901d0f1' |
AUTH_PROFILE_MODULE | 'profile.UserProfile' |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CMS_PLUGIN_CONTEXT_PROCESSORS | () |
ADMIN_MEDIA_PREFIX | '/static/grappelli/' |
CMS_URL_OVERWRITE | False |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
COMMENTS_SKETCHY_USERS_GROUP | None |
LOGIN_REDIRECT_URL | '/accounts/dashboard/' |
SOCIALACCOUNT_AVATAR_SUPPORT | False |
CMS_CACHE_DURATIONS | {'content': 60, 'menus': 3600, 'permissions': 3600} |
DECIMAL_SEPARATOR | '.' |
CMS_SEO_FIELDS | True |
CACHE_MIDDLEWARE_KEY_PREFIX | 'iic_branded_cnintl:' |
LOCALE_PATHS | () |
JOHNNY_MIDDLEWARE_KEY_PREFIX | 'jc_iic_branded_cnintl' |
TEMPLATE_STRING_IF_INVALID | '' |
DISALLOWED_USER_AGENTS | () |
FILEBROWSER_MAX_UPLOAD_SIZE | 10485760 |
CMS_HIDE_UNTRANSLATED | True |
LOGOUT_URL | '/accounts/logout/' |
DEFAULT_PROFILE_IMAGE | '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/media/uploads/iic_defaults/profile_portrait_default.png' |
DJANGO_STATIC_USE_SYMLINK | True |
TEMPLATE_DIRS | ('/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/templates',) |
EMAIL_MANAGER | ['ben@rawjam.co.uk'] |
HAYSTACK_WHOOSH_POST_LIMIT | 268435456 |
CMS_PUBLIC_FOR | 'all' |
FIXTURE_DIRS | () |
EMAIL_HOST | 'mail.cnintl.com' |
DATE_FORMAT | 'N j, Y' |
SOCIALACCOUNT_AUTO_SIGNUP | True |
MEDIA_ROOT | '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/media' |
DJANGO_STATIC_MEDIA_URL_ALWAYS | True |
ADMINS | ('ben@rawjam.co.uk',) |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'cni@cnintl.com' |
VER_NO | 0.90000000000000002 |
STATICFILES_DIRS | () |
MEDIA_URL | '/media/' |
DATETIME_FORMAT | 'N j, Y, P' |
IGNORABLE_404_STARTS | ('/cgi-bin/', '/_vti_bin', '/_vti_inf') |
CMS_PAGE_CHOICES_CACHE_KEY | 'CMS:page_choices' |
TWITTER_TIMEOUT | 300 |
HAYSTACK_SEARCH_RESULTS_PER_PAGE | 20 |
CMS_TITLE_CHARACTER | '+' |
SITE_ID | 1 |
CMS_PERMISSION | False |
ALLOWED_INCLUDE_ROOTS | () |
FILEBROWSER_ADMIN_VERSIONS | ['thumb', 'small', 'medium', 'large'] |
USE_THOUSAND_SEPARATOR | False |
LOGGING | {'disable_existing_loggers': False, 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} |
SHORT_DATE_FORMAT | 'm/d/Y' |
HAYSTACK_WHOOSH_STORAGE | 'file' |
DATABASE_USER | '' |
MIDDLEWARE_CLASSES | ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'johnny.middleware.LocalStoreClearMiddleware', 'johnny.middleware.QueryCacheMiddleware', 'pagination.middleware.PaginationMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'threadlocals.middleware.ThreadLocalMiddleware') |
TEST_RUNNER | 'django.test.simple.DjangoTestSuiteRunner' |
ACCOUNT_EMAIL_AUTHENTICATION | True |
TIME_ZONE | 'Europe/London' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
MANAGERS | (('Benjamin Dell', 'ben@rawjam.co.uk'),) |
FILEBROWSER_URL_FILEBROWSER_MEDIA | '/static/filebrowser/' |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
CMS_MEDIA_PATH | 'cms/' |
CMS_FLAT_URLS | False |
DEFAULT_TABLESPACE | '' |
TEMPLATE_CONTEXT_PROCESSORS | ('django.contrib.auth.context_processors.auth', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.request', 'django.contrib.messages.context_processors.messages', 'apps.common.utils.context_processors.app_wide_vars', 'allauth.context_processors.allauth', 'allauth.account.context_processors.account', 'cms.context_processors.media', 'sekizai.context_processors.sekizai', 'apps.core.context_processors.brandedwebsite_context_vars', 'django.core.context_processors.i18n') |
COMMENTS_ALLOW_PROFANITIES | False |
SETTINGS_MODULE | 'iic_branded.configs.production.settings' |
USE_ETAGS | False |
PROJECT_NAME | 'iic' |
PROJECT_SITE_DOMAIN | 'iic.rawjam.co.uk' |
LANGUAGES | (('en', 'English'),) |
CMS_LANGUAGE_CONF | {} |
DEFAULT_INDEX_TABLESPACE | '' |
INTERNAL_IPS | '81.149.235.248' |
STATIC_URL | '/static/' |
ACCOUNT_USERNAME_REQUIRED | False |
EMAIL_PORT | 25 |
CACHE_PREFIX | 'iic_branded_cnintl:' |
DJANGO_STATIC_NAME_PREFIX | 'cache-forever/' |
TAGGING_AUTOCOMPLETE_JS_BASE_URL | '/static/lib' |
CMS_PLACEHOLDER_CONF | {'company_name': {'name': 'Title (Company Name)', 'plugins': 'SimpleTextPlugin'}, 'welcome_to': {'name': 'Title (Welcome To)', 'plugins': 'SimpleTextPlugin'}} |
ACCOUNT_UNIQUE_EMAIL | True |
ABSOLUTE_URL_OVERRIDES | {} |
DATABASE_OPTIONS | {} |
DJANGO_STATIC_MEDIA_URL | '/media/' |
CACHE_MIDDLEWARE_SECONDS | 5400 |
IIC_API_PASSWORD | '********************' |
BANNED_IPS | () |
DATETIME_INPUT_FORMATS | ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M', '%m/%d/%y') |
DATABASE_PASSWORD | '********************' |
COMMENTS_MODERATORS_GROUP | None |
PROFANITIES_LIST | '********************' |
DJANGO_STATIC_MEDIA_ROOTS | ['/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/apps/common/static', '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/static', '/home/rawjam/sites/iic_branded/cnintl/repository/iic_branded/media'] |
CMS_SITE_LANGUAGES | {} |
EMAIL_HOST_USER | 'cni@cnintl.com' |
COMMENTS_BANNED_USERS_GROUP | None |
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 500 page.