list index out of range
Request Method: | |
---|---|
Request URL: | http://shadow.historyworks.tv |
Django Version: | 1.7 |
Exception Type: | IndexError |
Exception Value: | list index out of range |
Exception Location: | /var/www/djapp/singing/historyworks/base_content/models.py in get_meta_description, line 89 |
Python Executable: | /usr/bin/python |
Python Version: | 2.7.6 |
Python Path: | ['/var/www/Envs/foiresearch/src/django-ajax-selects-master', '/var/www/Envs/foiresearch/src/django-doctohtml', '/var/www/Envs/foiresearch/src/django-jimmypage-master', '/var/www/Envs/foiresearch/src/django-oembed', '/var/www/Envs/foiresearch/src/django-ordered-model', '/var/www/Envs/foiresearch/src/django-proxyfix', '/var/www/Envs/foiresearch/src/django-twync', '/var/www/Envs/foiresearch/src/django-forms-builder', '/var/www/Envs/foiresearch/src/django-staticgenerator', '/var/www/djapp/utils/django-translate', '/var/www/Envs/foiresearch/src/django-sitestructure-django17', '/var/www/Envs/foiresearch/src/django-filebrowser', '/var/www/Envs/foiresearch/src/django-cacheds3-storage', '/var/www/djapp/singing', '/var/www/Envs/foiresearch/lib/python2.7/site-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages'] |
Server time: | Tue, 20 Sep 2016 16:05:58 +0100 |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
% (callback.__module__, view_name))
# If the response supports deferred rendering, apply template
# response middleware and then render the response
if hasattr(response, 'render') and callable(response.render):
for middleware_method in self._template_response_middleware:
response = middleware_method(request, response)
response = response.render()...
except http.Http404 as e:
logger.warning('Not Found: %s', request.path,
extra={
'status_code': 404,
'request': request
Variable | Value |
---|---|
callback_args | () |
resolver_match | ResolverMatch(func=<function default_site_node at 0x81b3c3e4>, args=(), kwargs={'url': u'songs-creative/resources/how-to-use-bluetooth-beacons/using-physical-web/changing-beacon-batteries/'}, url_name='default_view', app_name='None', namespace='') |
middleware_method | <bound method AdminAddUrlsMiddleware.process_template_response of <sitestructure.middleware.AdminAddUrlsMiddleware instance at 0x819e586c>> |
self | <staticgenerator.handlers.DummyHandler object at 0x82c8812c> |
request | "<HttpRequest\npath:,\nGET:{},\nPOST:{},\nCOOKIES:{},\nMETA:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>" |
callback | <function default_site_node at 0x81b3c3e4> |
wrapped_callback | <function default_site_node at 0x81b3c3e4> |
resolver | <RegexURLResolver 'historyworks.urls' (None:None) ^/> |
callback_kwargs | {'url': u'songs-creative/resources/how-to-use-bluetooth-beacons/using-physical-web/changing-beacon-batteries/'} |
response | <django.template.response.TemplateResponse object at 0x81e8d06c> |
urlconf | 'historyworks.urls' |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Returns the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content...
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
self | <django.template.response.TemplateResponse object at 0x81e8d06c> |
retval | <django.template.response.TemplateResponse object at 0x81e8d06c> |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/template/response.py
in rendered_content
This *does not* set the final content of the response. To set the
response content, you must either call render(), or set the
content explicitly using the value of this property.
"""
template = self.resolve_template(self.template_name)
context = self.resolve_context(self.context_data)
content = template.render(context)...
return content
def add_post_render_callback(self, callback):
"""Adds a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
self | <django.template.response.TemplateResponse object at 0x81e8d06c> |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
template | <django.template.base.Template object at 0x8296676c> |
/var/www/Envs/foiresearch/lib/python2.7/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"
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x8296676c> |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/test/utils.py
in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal
that can be intercepted by the test system Client
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)...
def setup_test_environment():
"""Perform any global pre-test setup. This involves:
- Installing the instrumented test renderer
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x8296676c> |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <ExtendsNode: extends 'main.html'> |
self | [<ExtendsNode: extends 'main.html'>] |
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/template/base.py
in render_node
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
return nodes
def render_node(self, node, context):
return node.render(context)...
class TextNode(Node):
def __init__(self, s):
self.s = s
Variable | Value |
---|---|
node | <ExtendsNode: extends 'main.html'> |
self | [<ExtendsNode: extends 'main.html'>] |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
/var/www/Envs/foiresearch/lib/python2.7/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 IncludeNode(Node):
def __init__(self, template, *args, **kwargs):
self.template = template
self.extra_context = kwargs.pop('extra_context', {})
Variable | Value |
---|---|
node | <django.template.defaulttags.LoadNode object at 0x8310996c> |
blocks | {u'banner': <Block Node: banner. Contents: [<Text Node: ' <div class="main-cont'>, <Block Node: banner_title. Contents: [<Variable Node: object.get_display_name>]>, <Text Node: '</h2> '>, <Block Node: banner_content. Contents: []>, <Text Node: ' </div> </div> '>]>, u'banner_content': <Block Node: banner_content. Contents: []>, u'banner_title': <Block Node: banner_title. Contents: [<Variable Node: object.get_display_name>]>, u'breadcrumbs': <Block Node: breadcrumbs. Contents: [<Text Node: ' <div id="breadcrumbs">'>, <For Node: for bc in breadcrumbs, tail_len: 5>, <Text Node: ' '>, <Variable Node: object>, <Text Node: ' </div> </div> '>]>, u'content': <Block Node: content. Contents: [<Text Node: ' '>]>, u'css': <Block Node: css. Contents: [<Text Node: ' <link rel="stylesheet" t'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x8310970c>, <Text Node: '?013" /> '>]>, u'extra_admin_bar_tools': <Block Node: extra_admin_bar_tools. Contents: []>, u'extra_css': <Block Node: extra_css. Contents: [<Text Node: ' '>]>, u'extra_scripts': <Block Node: extra_scripts. Contents: [<Text Node: ' '>]>, u'menu': <Block Node: menu. Contents: [<Text Node: ' '>]>, u'meta': <Block Node: meta. Contents: [<Text Node: ' <meta property="og:site_'>, <Variable Node: site_url>, <Variable Node: object.get_absolute_url>, <Text Node: '" /> <meta property="og:t'>, <filebrowser.templatetags.fb_versions.VersionNode object at 0x83109e6c>, <Text Node: '" /> <meta property="og:t'>, <Variable Node: object.get_link_name>, <Text Node: '" /> <meta name="descript'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta property="og:d'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta http-equiv='Co'>, <IfNode>, <Text Node: ' '>]>, u'title': <Block Node: title. Contents: [<Text Node: ' '>, <IfNode>, <Text Node: ' '>]>, u'use_us': <Block Node: use_us. Contents: [<Text Node: ' '>, <IfEqualNode>, <Text Node: ' '>]>} |
block_context | <django.template.loader_tags.BlockContext object at 0x81bfd36c> |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
compiled_parent | <django.template.base.Template object at 0x83051e0c> |
self | <ExtendsNode: extends 'main.html'> |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/test/utils.py
in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal
that can be intercepted by the test system Client
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)...
def setup_test_environment():
"""Perform any global pre-test setup. This involves:
- Installing the instrumented test renderer
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x83051e0c> |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Block Node: meta. Contents: [<Text Node: ' <meta property="og:site_'>, <Variable Node: site_url>, <Variable Node: object.get_absolute_url>, <Text Node: '" /> <meta property="og:t'>, <filebrowser.templatetags.fb_versions.VersionNode object at 0x83109e6c>, <Text Node: '" /> <meta property="og:t'>, <Variable Node: object.get_link_name>, <Text Node: '" /> <meta name="descript'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta property="og:d'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta http-equiv='Co'>, <IfNode>, <Text Node: ' '>]> |
bit | u'\n</title>\n' |
bits | [u'', u'\n', u'', u'\n', u'', u'\n', u'', u'\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n<head>\n<link href=\'http://fonts.googleapis.com/css?family=PT+Sans\' rel=\'stylesheet\' type=\'text/css\'>\n', u'\n<link rel="stylesheet" type="text/css" href="/static/css/main.css?013" />\n', u'\n\t\t<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>\n', u'\n', u'\n\n\t\t<script src="', u'/static/js/main.js', u'"></script>\n\n<title>\n', u'\n\nChanging Beacon Batteries :: Creating My Cambridge\n\n', u'\n</title>\n'] |
self | [<django.template.defaulttags.LoadNode object at 0x8310996c>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x83109a2c>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x82e0706c>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x82e074cc>, <Text Node: ' <!DOCTYPE html PUBLIC "-'>, <Block Node: css. Contents: [<Text Node: ' <link rel="stylesheet" t'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x8310970c>, <Text Node: '?013" /> '>]>, <Text Node: ' <script src="//ajax.go'>, <Block Node: extra_scripts. Contents: [<Text Node: ' '>]>, <Text Node: ' <script src="'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x82e0786c>, <Text Node: '"></script> <title> '>, <Block Node: title. Contents: [<Text Node: ' '>, <IfNode>, <Text Node: ' '>]>, <Text Node: ' </title> '>, <Block Node: meta. Contents: [<Text Node: ' <meta property="og:site_'>, <Variable Node: site_url>, <Variable Node: object.get_absolute_url>, <Text Node: '" /> <meta property="og:t'>, <filebrowser.templatetags.fb_versions.VersionNode object at 0x83109e6c>, <Text Node: '" /> <meta property="og:t'>, <Variable Node: object.get_link_name>, <Text Node: '" /> <meta name="descript'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta property="og:d'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta http-equiv='Co'>, <IfNode>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: extra_css. Contents: [<Text Node: ' '>]>, <Text Node: ' </head> <body> <scrip'>, <AdminBarNode>, <Text Node: ' <div class="main-cont'>, <Variable Node: STATIC_URL>, <Text Node: '/images/historyworks.png"'>, <For Node: for node in nav_nodes, tail_len: 7>, <Text Node: ' <div class="clearfix'>, <Block Node: banner. Contents: [<Text Node: ' <div class="main-cont'>, <Block Node: banner_title. Contents: [<Variable Node: object.get_display_name>]>, <Text Node: '</h2> '>, <Block Node: banner_content. Contents: []>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> <div id="conten'>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <div id="breadcrumbs">'>, <For Node: for bc in breadcrumbs, tail_len: 5>, <Text Node: ' '>, <Variable Node: object>, <Text Node: ' </div> </div> '>]>, <Text Node: ' <div class="main-conta'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' <div class="clear"> '>, <Block Node: use_us. Contents: [<Text Node: ' '>, <IfEqualNode>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: menu. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> </div> '>] |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/template/base.py
in render_node
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
return nodes
def render_node(self, node, context):
return node.render(context)...
class TextNode(Node):
def __init__(self, s):
self.s = s
Variable | Value |
---|---|
node | <Block Node: meta. Contents: [<Text Node: ' <meta property="og:site_'>, <Variable Node: site_url>, <Variable Node: object.get_absolute_url>, <Text Node: '" /> <meta property="og:t'>, <filebrowser.templatetags.fb_versions.VersionNode object at 0x83109e6c>, <Text Node: '" /> <meta property="og:t'>, <Variable Node: object.get_link_name>, <Text Node: '" /> <meta name="descript'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta property="og:d'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta http-equiv='Co'>, <IfNode>, <Text Node: ' '>]> |
self | [<django.template.defaulttags.LoadNode object at 0x8310996c>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x83109a2c>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x82e0706c>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x82e074cc>, <Text Node: ' <!DOCTYPE html PUBLIC "-'>, <Block Node: css. Contents: [<Text Node: ' <link rel="stylesheet" t'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x8310970c>, <Text Node: '?013" /> '>]>, <Text Node: ' <script src="//ajax.go'>, <Block Node: extra_scripts. Contents: [<Text Node: ' '>]>, <Text Node: ' <script src="'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x82e0786c>, <Text Node: '"></script> <title> '>, <Block Node: title. Contents: [<Text Node: ' '>, <IfNode>, <Text Node: ' '>]>, <Text Node: ' </title> '>, <Block Node: meta. Contents: [<Text Node: ' <meta property="og:site_'>, <Variable Node: site_url>, <Variable Node: object.get_absolute_url>, <Text Node: '" /> <meta property="og:t'>, <filebrowser.templatetags.fb_versions.VersionNode object at 0x83109e6c>, <Text Node: '" /> <meta property="og:t'>, <Variable Node: object.get_link_name>, <Text Node: '" /> <meta name="descript'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta property="og:d'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta http-equiv='Co'>, <IfNode>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: extra_css. Contents: [<Text Node: ' '>]>, <Text Node: ' </head> <body> <scrip'>, <AdminBarNode>, <Text Node: ' <div class="main-cont'>, <Variable Node: STATIC_URL>, <Text Node: '/images/historyworks.png"'>, <For Node: for node in nav_nodes, tail_len: 7>, <Text Node: ' <div class="clearfix'>, <Block Node: banner. Contents: [<Text Node: ' <div class="main-cont'>, <Block Node: banner_title. Contents: [<Variable Node: object.get_display_name>]>, <Text Node: '</h2> '>, <Block Node: banner_content. Contents: []>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> <div id="conten'>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <div id="breadcrumbs">'>, <For Node: for bc in breadcrumbs, tail_len: 5>, <Text Node: ' '>, <Variable Node: object>, <Text Node: ' </div> </div> '>]>, <Text Node: ' <div class="main-conta'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' <div class="clear"> '>, <Block Node: use_us. Contents: [<Text Node: ' '>, <IfEqualNode>, <Text Node: ' '>]>, <Text Node: ' '>, <Block Node: menu. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> </div> '>] |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
render_context = self.context.render_context
Variable | Value |
---|---|
push | <Block Node: meta. Contents: [<Text Node: ' <meta property="og:site_'>, <Variable Node: site_url>, <Variable Node: object.get_absolute_url>, <Text Node: '" /> <meta property="og:t'>, <filebrowser.templatetags.fb_versions.VersionNode object at 0x83109e6c>, <Text Node: '" /> <meta property="og:t'>, <Variable Node: object.get_link_name>, <Text Node: '" /> <meta name="descript'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta property="og:d'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta http-equiv='Co'>, <IfNode>, <Text Node: ' '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x81bfd36c> |
block | <Block Node: meta. Contents: [<Text Node: ' <meta property="og:site_'>, <Variable Node: site_url>, <Variable Node: object.get_absolute_url>, <Text Node: '" /> <meta property="og:t'>, <filebrowser.templatetags.fb_versions.VersionNode object at 0x83109e6c>, <Text Node: '" /> <meta property="og:t'>, <Variable Node: object.get_link_name>, <Text Node: '" /> <meta name="descript'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta property="og:d'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta http-equiv='Co'>, <IfNode>, <Text Node: ' '>]> |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
self | <Block Node: meta. Contents: [<Text Node: ' <meta property="og:site_'>, <Variable Node: site_url>, <Variable Node: object.get_absolute_url>, <Text Node: '" /> <meta property="og:t'>, <filebrowser.templatetags.fb_versions.VersionNode object at 0x83109e6c>, <Text Node: '" /> <meta property="og:t'>, <Variable Node: object.get_link_name>, <Text Node: '" /> <meta name="descript'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta property="og:d'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta http-equiv='Co'>, <IfNode>, <Text Node: ' '>]> |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Variable Node: object.get_meta_description> |
bit | u'" />\n<meta name="description" content="' |
bits | [u'\n<meta property="og:site_name" content="Historyworks"/>\n<meta property="fb:admins" content="505923878"/>\n<meta property="og:url" content="', u'http://singinghistory.ricktaylordesign.co.uk', u'/songs-creative/resources/how-to-use-bluetooth-beacons/using-physical-web/changing-beacon-batteries/', u'" />\n<meta property="og:type" content="article" />\n<meta property="og:image" content="', u'https://historyworks-media-01.s3.amazonaws.com/media/uploads/thumbnails/historywork_bw_meta_thumb.jpg', u'" />\n<meta property="og:title" content="', u'Changing Beacon Batteries', u'" />\n<meta name="description" content="'] |
self | [<Text Node: ' <meta property="og:site_'>, <Variable Node: site_url>, <Variable Node: object.get_absolute_url>, <Text Node: '" /> <meta property="og:t'>, <filebrowser.templatetags.fb_versions.VersionNode object at 0x83109e6c>, <Text Node: '" /> <meta property="og:t'>, <Variable Node: object.get_link_name>, <Text Node: '" /> <meta name="descript'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta property="og:d'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta http-equiv='Co'>, <IfNode>, <Text Node: ' '>] |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/template/base.py
in render_node
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
return nodes
def render_node(self, node, context):
return node.render(context)...
class TextNode(Node):
def __init__(self, s):
self.s = s
Variable | Value |
---|---|
node | <Variable Node: object.get_meta_description> |
self | [<Text Node: ' <meta property="og:site_'>, <Variable Node: site_url>, <Variable Node: object.get_absolute_url>, <Text Node: '" /> <meta property="og:t'>, <filebrowser.templatetags.fb_versions.VersionNode object at 0x83109e6c>, <Text Node: '" /> <meta property="og:t'>, <Variable Node: object.get_link_name>, <Text Node: '" /> <meta name="descript'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta property="og:d'>, <Variable Node: object.get_meta_description>, <Text Node: '" /> <meta http-equiv='Co'>, <IfNode>, <Text Node: ' '>] |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/template/base.py
in render
self.filter_expression = filter_expression
def __repr__(self):
return "<Variable Node: %s>" % self.filter_expression
def render(self, context):
try:
output = self.filter_expression.resolve(context)...
except UnicodeDecodeError:
# Unicode conversion can fail sometimes for reasons out of our
# control (e.g. exception rendering). In that case, we fail
# quietly.
return ''
return render_value_in_context(output, context)
Variable | Value |
---|---|
self | <Variable Node: object.get_meta_description> |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/template/base.py
in resolve
self.filters = filters
self.var = var_obj
def resolve(self, context, ignore_failures=False):
if isinstance(self.var, Variable):
try:
obj = self.var.resolve(context)...
except VariableDoesNotExist:
if ignore_failures:
obj = None
else:
if settings.TEMPLATE_STRING_IF_INVALID:
global invalid_var_format_string
Variable | Value |
---|---|
self | <django.template.base.FilterExpression object at 0x82e0738c> |
ignore_failures | False |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/template/base.py
in resolve
var)
self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR))
def resolve(self, context):
"""Resolve this variable against a given context."""
if self.lookups is not None:
# We're dealing with a variable that needs to be resolved
value = self._resolve_lookup(context)...
else:
# We're dealing with a literal, so it's already been "resolved"
value = self.literal
if self.translate:
if self.message_context:
return pgettext_lazy(self.message_context, value)
Variable | Value |
---|---|
self | <Variable: u'object.get_meta_description'> |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/template/base.py
in _resolve_lookup
if callable(current):
if getattr(current, 'do_not_call_in_templates', False):
pass
elif getattr(current, 'alters_data', False):
current = settings.TEMPLATE_STRING_IF_INVALID
else:
try: # method call (assuming no args required)
current = current()...
except TypeError:
try:
getcallargs(current)
except TypeError: # arguments *were* required
current = settings.TEMPLATE_STRING_IF_INVALID # invalid method call
else:
Variable | Value |
---|---|
current | <bound method ContentNode.get_meta_description of <ContentNode: Changing Beacon Batteries>> |
bit | u'get_meta_description' |
e | IndexError('list index out of range',) |
self | <Variable: u'object.get_meta_description'> |
context | [{'False': False, 'None': None, 'True': True}, {'add_model_url': '/admin/pages/contentnode/add/?parent=742', 'is_auth': False, 'sidebar_parent': <ContentNode: How to Use Bluetooth Beacons>, 'children_url': '/admin/pages/contentnode/?parent__id=742', 'sidebar_children': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'object': <ContentNode: Changing Beacon Batteries>, 'menu_nodes': [], 'current_node': <ContentNode: Changing Beacon Batteries>, 'node_children': [], 'cover_pic': <FileObject: uploads/cover_pics/singinghistory/15967458075_70455b8c1d_z.jpg>, 'node_siblings': [<ContentNode: Configuring Beacons>, <ContentNode: Configuring Beacons>, <ContentNode: Changing Beacon Batteries>], 'add_url': '/admin/pages/contentnode/add/?parent=742', 'breadcrumbs': [<ContentNode: Home>, <ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>, <ContentNode: Using Physical Web>], 'list': None, 'node_name': u'Changing Beacon Batteries', 'theme': <SiteScene: SiteScene object>, 'edit_url': '/admin/pages/contentnode/742/', 'show_sidebar': True, 'category_root': None, 'sections': [], 'section_nodes': [], 'sidebar_ancestors': [<ContentNode: Songs/Creative>, <ContentNode: Resources>, <ContentNode: How to Use Bluetooth Beacons>], 'sidebar_root': <ContentNode: Using Physical Web>}, {'nav_nodes': [<ContentNode: Home>, <ContentNode: About>, <ContentNode: News>, <ContentNode: Histories>, <ContentNode: Songs/Creative>, <ContentNode: Multi-Media>, <ContentNode: Resources>, <ContentNode: Trails>], u'csrf_token': <django.utils.functional.__proxy__ object at 0x81ebcc4c>, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x81e84b4c>, u'request': <HttpRequest path:, GET:{}, POST:{}, COOKIES:{}, META:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>, 'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x82fd0fcc>, 'recent_projects': [<NewsItem: My Cambridge Marketplace at the Cambridge Junction>, <NewsItem: BEACON HISTORY TRAIL LAUNCH AT CAMBRIDGE MUSEUM OF TECHNOLOGY ON RIVERSIDE>, <NewsItem: BIG WEDNESDAY on COLDHAM’S COMMON>, <NewsItem: MAKING MUSIC AND MAGICAL MACHINES>, <NewsItem: HISTORYWORKS PARTICIPATE IN BIG WEEKEND ON PARKER'S PIECE>, <NewsItem: CREATING MY CAMBRIDGE: Creative Writing Workshop with Michael Rosen & Historyworks>, <NewsItem: Big Lunch on Sunday 12th June - Noon to 4pm>, <NewsItem: Creative Workshop With Michael Rosen at Abbey Meadows School>, <NewsItem: SINGING HISTORY CONCERT: THE SOUNDS OF STEAM>, <NewsItem: Family FunDay: Creative & Doing Activities>], u'STATIC_URL': '/static/', 'site_url': 'http://singinghistory.ricktaylordesign.co.uk', u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x81ebcf0c>>, u'LANGUAGE_CODE': u'en-us', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': ''}] |
/var/www/djapp/singing/historyworks/base_content/models.py
in get_meta_description
return thumb
def get_meta_description(self):
desc = self.parent_thumbnail_summary
if desc == "" or not(desc):
if(self.content):
desc = truncatewords(BeautifulStoneSoup(striptags(
self.content), convertEntities=BeautifulStoneSoup.HTML_ENTITIES).contents[0], 40)...
else:
desc = ""
return desc
def get_summary(self, limit=25):
desc = self.parent_thumbnail_summary
Variable | Value |
---|---|
self | <ContentNode: Changing Beacon Batteries> |
desc | u'' |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
SERVER_NAME | u'shadow.historyworks.tv' |
SERVER_PORT | 80 |
historyworks.settings
Setting | Value |
---|---|
FILEBROWSER_VERSIONS | {'admin_bar': {'height': 15, 'opts': 'crop upscale', 'width': ''}, 'banner_cover_pic': {'height': 150, 'opts': 'crop upscale', 'verbose_name': 'Long thin black+white banner pic (3000px)', 'width': 3000}, 'big': {'height': '', 'opts': '', 'verbose_name': 'Big (620px)', 'width': 620}, 'cover_pic': {'height': '', 'opts': 'crop upscale', 'verbose_name': 'Banner image (1000px)', 'width': 1000}, 'fb_thumb': {'height': 60, 'opts': 'crop upscale', 'verbose_name': 'Admin Thumbnail', 'width': 60}, 'front_menu': {'height': 215, 'opts': 'crop upscale', 'verbose_name': 'Front page menu (215px)', 'width': 215}, 'front_news_thumb': {'height': 100, 'opts': 'crop upscale', 'width': 100}, 'inner_thumbnail': {'height': 200, 'opts': 'crop upscale', 'verbose_name': 'Standard inner page thumbnail (200px)', 'width': 200}, 'ipup_thumb': {'height': 140, 'opts': 'crop upscale', 'width': 130}, 'large': {'height': '', 'opts': '', 'verbose_name': 'Big (620px)', 'width': 620}, 'medium': {'height': '', 'opts': '', 'verbose_name': 'Medium (460px)', 'width': 460}, 'meta_thumb': {'height': 200, 'opts': 'crop upscale', 'verbose_name': 'Meta property thumbnail', 'width': 200}, 'news_index': {'height': 200, 'opts': 'crop upscale', 'width': 200}, 'person_detail': {'height': 180, 'opts': 'crop upscale', 'verbose_name': 'Main person pic', 'width': 200}, 'rhs_thumb': {'height': 110, 'opts': 'crop upscale', 'verbose_name': 'RHS menu thumb', 'width': 125}, 'rhs_thumb_small': {'height': 80, 'opts': 'crop upscale', 'verbose_name': 'RHS menu thumb', 'width': 90}, 'small': {'height': '', 'opts': '', 'verbose_name': 'Small (300px)', 'width': 300}, 'thumbnail': {'height': '', 'opts': '', 'verbose_name': 'Thumbnail (140px)', 'width': 140}, 'training_person_thumb': {'height': 70, 'opts': 'crop upscale', 'verbose_name': 'Training person thumbnail (80px)', 'width': 100}} |
USE_L10N | True |
SITE_URL | 'http://singinghistory.ricktaylordesign.co.uk' |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'en-gb' |
ROOT_URLCONF | 'historyworks.urls' |
MANAGERS | () |
TWYNC_NUMBER | 5 |
TEST_NON_SERIALIZED_APPS | [] |
DEFAULT_CHARSET | 'utf-8' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
STATIC_ROOT | '/var/www/djapp/singing/static/' |
USE_THOUSAND_SEPARATOR | False |
ALLOWED_HOSTS | ['historyworks.tv'] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SEND_BROKEN_LINK_EMAILS | False |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
FILEBROWSER_DIRECTORY | 'uploads/' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
AWS_STORAGE_BUCKET_NAME | 'historyworks-media-01' |
ADMIN_FOR | () |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'tenar', 'NAME': 'singinghistory', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'singinghistory'}, 's3_db': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'tenar', 'NAME': 'historyworks', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'historyworks'}} |
FILEBROWSER_ADMIN_THUMBNAIL | 'fb_thumb' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
AWS_PRELOAD_METADATA | True |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DEFAULT_CONTENT_TYPE | 'text/html' |
MAILCHIMP_LIST_ID | '254752842b' |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | ['cachedS3.routers.CachedS3Router'] |
FILEBROWSER_OVERWRITE_EXISTING | False |
SECTION_MODEL | ('pages', 'section') |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
DATABASE_DISTRIBUTION | {'development': {'default': {'ENGINE': 'django.db.backends.mysql', 'HOST': 'tenar', 'NAME': 'singinghistory', 'PASSWORD': u'********************', 'PORT': '', 'USER': 'singinghistory'}, 's3_db': {'ENGINE': 'django.db.backends.mysql', 'HOST': 'tenar', 'NAME': 'historyworks', 'PASSWORD': u'********************', 'PORT': '', 'USER': 'historyworks'}}, 'production': {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'tenar', 'NAME': 'singinghistory', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'singinghistory'}, 's3_db': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'tenar', 'NAME': 'historyworks', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'historyworks'}}} |
ADMIN_SITE_URL | 'http://singinghistory.ricktaylordesign.co.uk' |
SERVER_EMAIL | 'root@localhost' |
SESSION_COOKIE_PATH | '/' |
SILENCED_SYSTEM_CHECKS | [] |
MIDDLEWARE_CLASSES | ('sitestructure.middleware.AdminAddUrlsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'sitestructure.middleware.AdminRedirectMiddleware') |
USE_I18N | True |
SITE_NODE_MODELS | ('training', 'project', 'person', 'newsitem') |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
FILE_UPLOAD_TEMP_DIR | None |
TWYNC_SECRET | u'********************' |
DEFAULT_TABLESPACE | '' |
TWYNC_KEY | u'********************' |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'logging.config.dictConfig' |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'apptemplates.Loader') |
WSGI_APPLICATION | None |
TEMPLATE_DEBUG | False |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
LANGUAGE_COOKIE_DOMAIN | None |
AWS_ACCESS_KEY_ID | u'********************' |
DEFAULT_FILE_STORAGE | 'historyworks.backends.MediaS3BotoStorage' |
INSTALLED_APPS | ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'sitestructure', 'oembed', 'jimmypage', 'grappelli', 'filebrowser', 'django.contrib.admin', 'mptt', 'staticgenerator', 'twync', 'forms_builder.forms', 'storages', 'cachedS3', 'rpc4django', 'historyworks.base_content', 'historyworks.pages') |
LANGUAGES | (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')) |
COMMENTS_ALLOW_PROFANITIES | False |
STATICFILES_DIRS | () |
TWYNC_ACCESS_SECRET | u'********************' |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
LANGUAGE_COOKIE_AGE | None |
SESSION_COOKIE_HTTPONLY | True |
AWS_SECRET_ACCESS_KEY | u'********************' |
DEBUG_PROPAGATE_EXCEPTIONS | False |
CSRF_COOKIE_AGE | 31449600 |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
MONTH_DAY_FORMAT | 'F j' |
AWS_QUERYSTRING_AUTH | False |
LOGIN_URL | '/accounts/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
TIME_FORMAT | 'P' |
AUTH_USER_MODEL | 'auth.User' |
DATE_INPUT_FORMATS | ('%Y-%m-%d', '%d/%m/%Y', '%d/%m/%y', '%m/%d/%Y', '%m/%d/%y', '%d %b %Y', '%d %b, %Y', '%b %d %Y', '%b %d, %Y', '%d %B %Y', '%d %B, %Y', '%B %d %Y', '%B %d, %Y') |
SITE_HANDLE | 'historyworks' |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
EMAIL_HOST_PASSWORD | u'********************' |
CACHEDS3_DATABASE_NAME | 's3_db' |
GRAPPELLI_ADMIN_TITLE | 'Historyworks Admin' |
SESSION_FILE_PATH | None |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
ADMIN_MEDIA_PREFIX | '/static/admin/' |
NUMBER_GROUPING | 0 |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
PAGE_MODEL | ('pages', 'contentnode') |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
TEMPLATE_STRING_IF_INVALID | '' |
DECIMAL_SEPARATOR | '.' |
CACHEDS3_USE_TAG_DIRECTORIES | True |
IGNORABLE_404_URLS | () |
SITE_ID | 1 |
LOCALE_PATHS | () |
CONTENT_NODE_APP | 'pages' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
FIXTURE_DIRS | () |
EMAIL_HOST | 'localhost' |
DATE_FORMAT | 'j F, Y' |
TWYNC_ACCESS | '377345758-VR8l9vzVLMREoGKTufCrpzfg1svyQE5mIjXX5t2z' |
MEDIA_ROOT | '' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | () |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
THOUSAND_SEPARATOR | ',' |
MEDIA_URL | '' |
DATETIME_FORMAT | 'j F, Y, P' |
TEMPLATE_DIRS | ('/var/www/djapp/historyworks/historyworks/templates',) |
MAILCHIMP_API_KEY | u'********************' |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
LOGGING | {'disable_existing_loggers': False, 'handlers': {'null': {'class': 'django.utils.log.NullHandler', 'level': 'DEBUG'}}, 'loggers': {'django.db.backends': {'handlers': ['null'], 'level': 'DEBUG', 'propagate': False}}, 'version': 1} |
SHORT_DATE_FORMAT | 'm/d/Y' |
TWYNC_HANDLE | '@historyworkstv' |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
TWYNC_SHOW_RETWEETS | False |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
TWYNC_SHOW_REPLIES | False |
TIME_ZONE | None |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
WEB_ROOT | '/var/www/sites/singing' |
RUNNING_DEVSERVER | False |
CONTENT_NODE_MODEL | 'contentnode' |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_USE_SSL | False |
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.contrib.messages.context_processors.messages', 'django.core.context_processors.request', 'historyworks.pages.context_processors.structure') |
FILEBROWSER_LIST_PER_PAGE | 10 |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'historyworks.settings' |
USE_ETAGS | False |
LANGUAGES_BIDI | ('he', 'ar', 'fa', 'ur') |
NON_STANDARD_SITE_NODES | ('newsitem',) |
DEFAULT_INDEX_TABLESPACE | '' |
INTERNAL_IPS | () |
STATIC_URL | '/static/' |
PUBLISHABLE_MODEL | ('pages', 'contentnode') |
EMAIL_PORT | 25 |
USE_TZ | False |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
LANGUAGE_COOKIE_PATH | '/' |
MIGRATION_MODULES | {} |
SERIALIZATION_MODULES | {'njson': 'sitestructure.serializers.json'} |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_HTTPONLY | False |
DATETIME_INPUT_FORMATS | ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y') |
FORMS_BUILDER_UPLOAD_ROOT | '/var/www/djapp/roderick/form-uploads/' |
EMAIL_HOST_USER | '' |
PROFANITIES_LIST | u'********************' |
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.