u'IFramePlugin'
Request Method: | GET |
---|---|
Request URL: | http://www.becca-directory.com/becca/introducing-becca-copy/ |
Django Version: | 1.4.22 |
Exception Type: | KeyError |
Exception Value: | u'IFramePlugin' |
Exception Location: | /usr/local/lib/python2.7/site-packages/cms/plugin_pool.py in get_plugin, line 114 |
Python Executable: | /usr/local/bin/python |
Python Version: | 2.7.18 |
Python Path: | ['/usr/src/app', '/usr/local/bin', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/site-packages/PIL'] |
Server time: | ven, 29 Mar 2024 06:20:51 -0400 |
In template /usr/src/app/becca/templates/article.html
, error at line 33
23 | {% block breadcrumbs %} |
---|---|
24 | {{ block.super }} |
25 | {% endblock %} |
26 | |
27 | {% block contentheader %} |
28 | <div class="module-contentheader"> |
29 | <h1 id="home-title"><span class="title">BECCA</span> {% page_attribute page_title %}</h1> |
30 | </div> |
31 | <div class="pagenote"> |
32 | <div class="pagenote-content placeholder"> |
33 | {% placeholder "chapo" %} |
34 | </div> |
35 | </div> |
36 | {% endblock %} |
37 | |
38 | {% block contentnav %} |
39 | <div class="module" id="content-nav"> |
40 | <div class="module-content"> |
41 | <h2 class="module-header-first">{% trans "Consulter également" %}</h2> |
42 | <ul> |
43 | {% show_menu 1 100 0 100 %} |
/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
for middleware_method in self._view_middleware:
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
try:
response = callback(request, *callback_args, **callback_kwargs)...
except Exception, e:
# If the view raised an exception, run it through exception
# middleware, and if the exception middleware returns a
# response, use that. Otherwise, reraise the exception.
for middleware_method in self._exception_middleware:
response = middleware_method(request, e)
Variable | Value |
---|---|
exceptions | <module 'django.core.exceptions' from '/usr/local/lib/python2.7/site-packages/django/core/exceptions.pyc'> |
e | KeyError(u'IFramePlugin',) |
callback_args | () |
settings | <django.conf.LazySettings object at 0x7f45bd0ba750> |
middleware_method | <bound method ToolbarMiddleware.process_view of <cms.middleware.toolbar.ToolbarMiddleware object at 0x7f45bbc3e190>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f45bd121c10> |
request | "<WSGIRequest\npath:/becca/introducing-becca-copy/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_ACCEPT_ENCODING': 'gzip',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_HOST': 'www.becca-directory.com',\n 'HTTP_USER_AGENT': 'claudebot',\n 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2',\n 'HTTP_X_FORWARDED_PORT': '443',\n 'HTTP_X_FORWARDED_PROTO': 'http',\n 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a',\n 'HTTP_X_REAL_IP': '172.18.0.2',\n 'PATH_INFO': u'/fr/becca/introducing-becca-copy/',\n 'QUERY_STRING': '',\n 'RAW_URI': '/fr/becca/introducing-becca-copy/',\n 'REMOTE_ADDR': '172.21.0.6',\n 'REMOTE_PORT': '34108',\n 'REQUEST_METHOD': 'GET',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': '0.0.0.0',\n 'SERVER_PORT': '8000',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SOFTWARE': 'gunicorn/19.1.1',\n 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>,\n 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>,\n 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>,\n 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
callback | <function details at 0x7f45bb63fa50> |
resolver | <RegexURLResolver becca.urls (None:None) ^/> |
urlresolvers | <module 'django.core.urlresolvers' from '/usr/local/lib/python2.7/site-packages/django/core/urlresolvers.pyc'> |
callback_kwargs | {'slug': u'becca/introducing-becca-copy'} |
response | None |
urlconf | 'becca.urls' |
/usr/local/lib/python2.7/site-packages/cms/views.py
in details
context['current_page'] = page
context['has_change_permissions'] = page.has_change_permission(request)
context['has_view_permissions'] = page.has_view_permission(request)
if not context['has_view_permissions']:
return _handle_no_page(request, slug)
return render_to_response(template_name, context)...
Variable | Value |
---|---|
redirect_url | u'' |
available_languages | [u'en', u'es', u'fr', u'nl'] |
template_name | u'article.html' |
request | "<WSGIRequest\npath:/becca/introducing-becca-copy/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_ACCEPT_ENCODING': 'gzip',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_HOST': 'www.becca-directory.com',\n 'HTTP_USER_AGENT': 'claudebot',\n 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2',\n 'HTTP_X_FORWARDED_PORT': '443',\n 'HTTP_X_FORWARDED_PROTO': 'http',\n 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a',\n 'HTTP_X_REAL_IP': '172.18.0.2',\n 'PATH_INFO': u'/fr/becca/introducing-becca-copy/',\n 'QUERY_STRING': '',\n 'RAW_URI': '/fr/becca/introducing-becca-copy/',\n 'REMOTE_ADDR': '172.21.0.6',\n 'REMOTE_PORT': '34108',\n 'REQUEST_METHOD': 'GET',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': '0.0.0.0',\n 'SERVER_PORT': '8000',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SOFTWARE': 'gunicorn/19.1.1',\n 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>,\n 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>,\n 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>,\n 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
slug | u'becca/introducing-becca-copy' |
current_language | u'fr' |
context | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}] |
page | <Page: A propos de BECCA> |
/usr/local/lib/python2.7/site-packages/django/shortcuts/__init__.py
in render_to_response
def render_to_response(*args, **kwargs):
"""
Returns a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None)}
return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)...
def render(request, *args, **kwargs):
"""
Returns a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
Uses a RequestContext by default.
Variable | Value |
---|---|
httpresponse_kwargs | {'mimetype': None} |
args | (u'article.html', [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}]) |
kwargs | {} |
/usr/local/lib/python2.7/site-packages/django/template/loader.py
in render_to_string
"""
dictionary = dictionary or {}
if isinstance(template_name, (list, tuple)):
t = select_template(template_name)
else:
t = get_template(template_name)
if not context_instance:
return t.render(Context(dictionary))...
# Add the dictionary to the context stack, ensuring it gets removed again
# to keep the context_instance in the same state it started in.
context_instance.update(dictionary)
try:
return t.render(context_instance)
finally:
Variable | Value |
---|---|
template_name | u'article.html' |
t | <django.template.base.Template object at 0x7f45ba476750> |
dictionary | [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}] |
context_instance | None |
/usr/local/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"
if settings.TEMPLATE_DEBUG:
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7f45ba476750> |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
/usr/local/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7f45ba476750> |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
/usr/local/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_unicode(bit))
return mark_safe(u''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
bits | [] |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
/usr/local/lib/python2.7/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception, e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
e | KeyError(u'IFramePlugin',) |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
/usr/local/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 BaseIncludeNode(Node):
def __init__(self, *args, **kwargs):
self.extra_context = kwargs.pop('extra_context', {})
self.isolated_context = kwargs.pop('isolated_context', False)
super(BaseIncludeNode, self).__init__(*args, **kwargs)
Variable | Value |
---|---|
node | <django.template.defaulttags.LoadNode object at 0x7f45b9eb7c90> |
blocks | {u'body_attr': <Block Node: body_attr. Contents: []>, u'body_content': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>, u'breadcrumbs': <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, u'breadcrumbs-sup': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, u'content': <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, u'content-sup': <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, u'contentheader': <Block Node: contentheader. Contents: [<Text Node: ' '>]>, u'contentleft': <Block Node: contentleft. Contents: [<Text Node: ' '>]>, u'contentnav': <Block Node: contentnav. Contents: [<Text Node: ' '>]>, u'extrahead': <Block Node: extrahead. Contents: []>, u'footer': <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, u'main-class': <Block Node: main-class. Contents: []>, u'meta': <Block Node: meta. Contents: [<Text Node: ' <meta name="desc'>, <Tag: page_attribute>, <Text Node: '"> <meta name="ke'>, <Tag: page_attribute>, <Text Node: '"> '>]>, u'select_country': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, u'title': <Block Node: title. Contents: [<Tag: page_attribute>]>} |
block_context | <django.template.loader_tags.BlockContext object at 0x7f45badf5b90> |
n | <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]> |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
compiled_parent | <django.template.base.Template object at 0x7f45ba3db0d0> |
self | <ExtendsNode: extends "base.html"> |
/usr/local/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7f45ba3db0d0> |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
/usr/local/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_unicode(bit))
return mark_safe(u''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Tag: render_block> |
bit | u'images/favicon.ico" type="image/x-icon">\n <link rel="home" title="Accueil" href="/">\n ' |
bits | [u'', u'\n', u'', u'\n', u'', u'\n', u'', u'\n', u'', u'\n', u'', u'\n<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\n<html lang="', u'fr', u'" dir="ltr">\n<head>\n <title>', u'\n A propos de BECCA\n', u'</title>\n ', u'\n \n <meta name="description" content="">\n <meta name="keywords" content="">\n \n', u'\n <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\n <link rel="shortcut icon" href="', u'/static/', u'images/favicon.ico" type="image/x-icon">\n <link rel="home" title="Accueil" href="/">\n '] |
self | [<django.template.defaulttags.LoadNode object at 0x7f45b9eb7c90>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f45ba3db9d0>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f45ba3db8d0>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f45ba3db850>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f45b9ef7750>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f45b9ef71d0>, <Text Node: ' <!DOCTYPE HTML PUBLIC "-'>, <Variable Node: request.LANGUAGE_CODE>, <Text Node: '" dir="ltr"> <head> <'>, <Block Node: title. Contents: [<Tag: page_attribute>]>, <Text Node: '</title> '>, <Block Node: meta. Contents: [<Text Node: ' <meta name="desc'>, <Tag: page_attribute>, <Text Node: '"> <meta name="ke'>, <Tag: page_attribute>, <Text Node: '"> '>]>, <Text Node: ' <meta http-equiv="Co'>, <Variable Node: STATIC_URL>, <Text Node: 'images/favicon.ico" type='>, <Tag: render_block>] |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
/usr/local/lib/python2.7/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception, e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Tag: render_block> |
self | [<django.template.defaulttags.LoadNode object at 0x7f45b9eb7c90>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f45ba3db9d0>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f45ba3db8d0>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f45ba3db850>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f45b9ef7750>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f45b9ef71d0>, <Text Node: ' <!DOCTYPE HTML PUBLIC "-'>, <Variable Node: request.LANGUAGE_CODE>, <Text Node: '" dir="ltr"> <head> <'>, <Block Node: title. Contents: [<Tag: page_attribute>]>, <Text Node: '</title> '>, <Block Node: meta. Contents: [<Text Node: ' <meta name="desc'>, <Tag: page_attribute>, <Text Node: '"> <meta name="ke'>, <Tag: page_attribute>, <Text Node: '"> '>]>, <Text Node: ' <meta http-equiv="Co'>, <Variable Node: STATIC_URL>, <Text Node: 'images/favicon.ico" type='>, <Tag: render_block>] |
e | KeyError(u'IFramePlugin',) |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
/usr/local/lib/python2.7/site-packages/classytags/core.py
in render
"""
INTERNAL method to prepare rendering
Usually you should not override this method, but rather use render_tag.
"""
items = self.kwargs.items()
kwargs = dict([(key, value.resolve(context)) for key, value in items])
kwargs.update(self.blocks)
return self.render_tag(context, **kwargs)...
def render_tag(self, context, **kwargs):
"""
The method you should override in your custom tags
"""
raise NotImplementedError
Variable | Value |
---|---|
key | 'postprocessor' |
items | [('name', <classytags.values.StringValue object at 0x7f45b9eb7490>), ('postprocessor', <TemplateConstant: None>)] |
self | <Tag: render_block> |
value | <TemplateConstant: None> |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
kwargs | {'name': u'css', 'nodelist': [<Text Node: ' <script type="text/j'>, <Tag: render_block>], 'postprocessor': None} |
/usr/local/lib/python2.7/site-packages/sekizai/templatetags/sekizai_tags.py
in render_tag
Argument('postprocessor', required=False, default=None, resolve=False),
parser_class=SekizaiParser,
)
def render_tag(self, context, name, postprocessor, nodelist):
if not validate_context(context):
return nodelist.render(context)
rendered_contents = nodelist.render(context)...
varname = get_varname()
data = context[varname][name].render()
if postprocessor:
func = import_processor(postprocessor)
data = func(context, data, name)
return '%s\n%s' % (data, rendered_contents)
Variable | Value |
---|---|
self | <Tag: render_block> |
nodelist | [<Text Node: ' <script type="text/j'>, <Tag: render_block>] |
name | u'css' |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
postprocessor | None |
/usr/local/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_unicode(bit))
return mark_safe(u''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Tag: render_block> |
bit | u'\n <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>\n ' |
bits | [u'\n <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>\n '] |
self | [<Text Node: ' <script type="text/j'>, <Tag: render_block>] |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
/usr/local/lib/python2.7/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception, e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Tag: render_block> |
self | [<Text Node: ' <script type="text/j'>, <Tag: render_block>] |
e | KeyError(u'IFramePlugin',) |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
/usr/local/lib/python2.7/site-packages/classytags/core.py
in render
"""
INTERNAL method to prepare rendering
Usually you should not override this method, but rather use render_tag.
"""
items = self.kwargs.items()
kwargs = dict([(key, value.resolve(context)) for key, value in items])
kwargs.update(self.blocks)
return self.render_tag(context, **kwargs)...
def render_tag(self, context, **kwargs):
"""
The method you should override in your custom tags
"""
raise NotImplementedError
Variable | Value |
---|---|
key | 'postprocessor' |
items | [('name', <classytags.values.StringValue object at 0x7f45b9eb71d0>), ('postprocessor', <TemplateConstant: None>)] |
self | <Tag: render_block> |
value | <TemplateConstant: None> |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
kwargs | {'name': u'js', 'nodelist': [<Text Node: ' <link rel="styleshee'>, <Variable Node: STATIC_URL>, <Text Node: 'css/common.css" type="tex'>, <Variable Node: STATIC_URL>, <Text Node: 'css/header.css" type="tex'>, <Variable Node: STATIC_URL>, <Text Node: 'css/main.css" type="text/'>, <Variable Node: STATIC_URL>, <Text Node: 'css/footer.css" type="tex'>, <Variable Node: STATIC_URL>, <Text Node: 'alert-ie6.css" type="text'>, <Variable Node: STATIC_URL>, <Text Node: 'alert-nojs.css" type="tex'>, <django.template.defaulttags.URLNode object at 0x7f45badf5790>, <Text Node: '"></script> <script t'>, <Variable Node: STATIC_URL>, <Text Node: 'js/becca.js"></script> '>, <Block Node: extrahead. Contents: []>, <Text Node: ' <script type="text/j'>, <Variable Node: STATIC_URL>, <Text Node: 'js/jquery.cycle.all.js"><'>, <Block Node: body_attr. Contents: []>, <Text Node: '>'>, <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>, <Text Node: ' </body> </html> '>], 'postprocessor': None} |
/usr/local/lib/python2.7/site-packages/sekizai/templatetags/sekizai_tags.py
in render_tag
Argument('postprocessor', required=False, default=None, resolve=False),
parser_class=SekizaiParser,
)
def render_tag(self, context, name, postprocessor, nodelist):
if not validate_context(context):
return nodelist.render(context)
rendered_contents = nodelist.render(context)...
varname = get_varname()
data = context[varname][name].render()
if postprocessor:
func = import_processor(postprocessor)
data = func(context, data, name)
return '%s\n%s' % (data, rendered_contents)
Variable | Value |
---|---|
self | <Tag: render_block> |
nodelist | [<Text Node: ' <link rel="styleshee'>, <Variable Node: STATIC_URL>, <Text Node: 'css/common.css" type="tex'>, <Variable Node: STATIC_URL>, <Text Node: 'css/header.css" type="tex'>, <Variable Node: STATIC_URL>, <Text Node: 'css/main.css" type="text/'>, <Variable Node: STATIC_URL>, <Text Node: 'css/footer.css" type="tex'>, <Variable Node: STATIC_URL>, <Text Node: 'alert-ie6.css" type="text'>, <Variable Node: STATIC_URL>, <Text Node: 'alert-nojs.css" type="tex'>, <django.template.defaulttags.URLNode object at 0x7f45badf5790>, <Text Node: '"></script> <script t'>, <Variable Node: STATIC_URL>, <Text Node: 'js/becca.js"></script> '>, <Block Node: extrahead. Contents: []>, <Text Node: ' <script type="text/j'>, <Variable Node: STATIC_URL>, <Text Node: 'js/jquery.cycle.all.js"><'>, <Block Node: body_attr. Contents: []>, <Text Node: '>'>, <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>, <Text Node: ' </body> </html> '>] |
name | u'js' |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
postprocessor | None |
/usr/local/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_unicode(bit))
return mark_safe(u''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]> |
bit | u'>' |
bits | [u'\n <link rel="stylesheet" href="', u'/static/', u'css/common.css" type="text/css" media="all" charset="utf-8">\n <link rel="stylesheet" href="', u'/static/', u'css/header.css" type="text/css" media="all" charset="utf-8">\n <link rel="stylesheet" href="', u'/static/', u'css/main.css" type="text/css" media="all" charset="utf-8">\n <link rel="stylesheet" href="', u'/static/', u'css/footer.css" type="text/css" media="all" charset="utf-8">\n <link rel="stylesheet" href="', u'/static/', u'alert-ie6.css" type="text/css">\n <link rel="stylesheet" href="', u'/static/', u'alert-nojs.css" type="text/css">\n <script type="text/javascript" src="', u'/trad/jsi18n/', u'"></script>\n <script type="text/javascript" src="', u'/static/', u'js/becca.js"></script>\n ', u'\n<script type="text/javascript" src="/static/js/thickbox/thickbox-compressed.js"></script>\n<link rel="stylesheet" href="/static/js/thickbox/thickbox.css" type="text/css" media="screen" />\n', u'\n <script type="text/javascript" src="', u'/static/', u'js/jquery.cycle.all.js"></script>\n</head>\n\n<body ', u'\nclass = "article_col_right fixe"\n', u'>'] |
self | [<Text Node: ' <link rel="styleshee'>, <Variable Node: STATIC_URL>, <Text Node: 'css/common.css" type="tex'>, <Variable Node: STATIC_URL>, <Text Node: 'css/header.css" type="tex'>, <Variable Node: STATIC_URL>, <Text Node: 'css/main.css" type="text/'>, <Variable Node: STATIC_URL>, <Text Node: 'css/footer.css" type="tex'>, <Variable Node: STATIC_URL>, <Text Node: 'alert-ie6.css" type="text'>, <Variable Node: STATIC_URL>, <Text Node: 'alert-nojs.css" type="tex'>, <django.template.defaulttags.URLNode object at 0x7f45badf5790>, <Text Node: '"></script> <script t'>, <Variable Node: STATIC_URL>, <Text Node: 'js/becca.js"></script> '>, <Block Node: extrahead. Contents: []>, <Text Node: ' <script type="text/j'>, <Variable Node: STATIC_URL>, <Text Node: 'js/jquery.cycle.all.js"><'>, <Block Node: body_attr. Contents: []>, <Text Node: '>'>, <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>, <Text Node: ' </body> </html> '>] |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
/usr/local/lib/python2.7/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception, e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]> |
self | [<Text Node: ' <link rel="styleshee'>, <Variable Node: STATIC_URL>, <Text Node: 'css/common.css" type="tex'>, <Variable Node: STATIC_URL>, <Text Node: 'css/header.css" type="tex'>, <Variable Node: STATIC_URL>, <Text Node: 'css/main.css" type="text/'>, <Variable Node: STATIC_URL>, <Text Node: 'css/footer.css" type="tex'>, <Variable Node: STATIC_URL>, <Text Node: 'alert-ie6.css" type="text'>, <Variable Node: STATIC_URL>, <Text Node: 'alert-nojs.css" type="tex'>, <django.template.defaulttags.URLNode object at 0x7f45badf5790>, <Text Node: '"></script> <script t'>, <Variable Node: STATIC_URL>, <Text Node: 'js/becca.js"></script> '>, <Block Node: extrahead. Contents: []>, <Text Node: ' <script type="text/j'>, <Variable Node: STATIC_URL>, <Text Node: 'js/jquery.cycle.all.js"><'>, <Block Node: body_attr. Contents: []>, <Text Node: '>'>, <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>, <Text Node: ' </body> </html> '>] |
e | KeyError(u'IFramePlugin',) |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
/usr/local/lib/python2.7/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = BlockNode(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
context.pop()
return result
def super(self):
Variable | Value |
---|---|
push | <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f45badf5b90> |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
block | <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]> |
self | <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]> |
/usr/local/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_unicode(bit))
return mark_safe(u''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Block Node: contentheader. Contents: [<Text Node: ' '>]> |
bit | u'\n </div>\n</div>\n</div>\n<!-- /breadcrumbs -->\n\n<!-- main -->\n<div id="main">\n <!--contentheader-->\n <div id="contentheader">\n ' |
bits | [u'\n', u'', u'\n\n', u'\n', u'\n<!--[if lt IE 9]>\n\n<div id="alert-ie6">Vous voyez ce message car votre\nnavigateur est obsol\xe8te et peut pr\xe9senter des failles de s\xe9curit\xe9.\nJe vous invite \xe0 le <a href="http://windows.microsoft.com/fr-FR/internet-explorer/downloads/ie" target="_blank" rel="nofollow">mettre \xe0 jour</a>\nou en t\xe9l\xe9charger un parmis ceux propos\xe9s ci-dessous :\n\n <ul class="navigateur">\n <li><a href="http://www.mozilla-europe.org/fr/" target="_blank" rel="nofollow">Firefox</a></li>\n <li><a href="http://www.google.com/chrome/" target="_blank" rel="nofollow">Chrome</a></li>\n <li><a href="http://www.opera.com/browser/download/" target="_blank" rel="nofollow">Opera</a></li>\n </ul>\n</div>\n<![endif]-->\n', u'\n\n', u'\n', u'\n<noscript>\n<div id="alert-nojs">\n <strong>Le javascript semble \xeatre d\xe9sactiv\xe9</strong> -\n Pour profiter pleinement de toutes les fonctionnalit\xe9s\n propos\xe9es par notre plateforme, vous devez activer le javascript.\n</div>\n</noscript>\n', u'\n\n<!--header-->\n<div id="header">\n <div class="container clearfix">\n <h1 id="globaltitle"><a class="logo" href="/">\n <img src="', u'/static/', u'images/homepagelogo.jpg" alt="BECCA - Caribbean Cabotage" height="40" />\n </a></h1>\n\n <div id="userlinks">\n <p>\n ', u'', u'\n ', u'\n\n\n<span id="lang">Choisissez votre langue:\n\n<a href="/fr/becca/introducing-becca-copy/"\nclass=" current lang fr">\nfr</a>\n\n<a href="/en/becca/introducing-becca-copy/"\nclass=" lang en">\nen</a>\n\n<a href="/es/becca/introducing-becca-copy/"\nclass=" lang es">\nes</a>\n\n</span>\n', u'\n </p>\n </div>\n </div>\n\n<div id="globalnav">\n <div class="container">\n <h2>', u'Navigation', u':</h2>\n <ul>\n ', u'\n\n<li class="sibling">\n<a id="gn-6" class="head-navitem" rel="nofollow" onclick="toggle_nav(\'6\'); return false;" href="#">Modules</a>\n\n <ul id="ul-6" class="submenu dropdown">\n \n\n<li class="">\n\t<a href="/search/">Recherche</a>\n\t\n</li>\n\n<li class="">\n\t<a href="/directory/operators/">Annuaire</a>\n\t\n</li>\n\n<li class="">\n\t<a href="/map/">G\xe9olocalisation</a>\n\t\n</li>\n\n\n </ul>\n \n</li>\n\n<li class="sibling">\n<a id="gn-21" class="head-navitem" rel="nofollow" onclick="toggle_nav(\'21\'); return false;" href="#">Annuaire</a>\n\n <ul id="ul-21" class="submenu dropdown">\n \n\n<li class="">\n\t<a href="/directory/operators/a/name/">Op\xe9rateur par nom</a>\n\t\n</li>\n\n<li class="">\n\t<a href="/directory/operators/a/country/">Op\xe9rateur par pays</a>\n\t\n</li>\n\n<li class="">\n\t<a href="/directory/operators/type/">Op\xe9rateur par type</a>\n\t\n</li>\n\n\n </ul>\n \n</li>\n\n<li class="sibling">\n<a id="gn-24" class="head-navitem" rel="nofollow" onclick="toggle_nav(\'24\'); return false;" href="#">Recherche</a>\n\n <ul id="ul-24" class="submenu dropdown">\n \n\n<li class="">\n\t<a href="/search/">Par port</a>\n\t\n</li>\n\n<li class="">\n\t<a href="/search/?f_type=f_countryNew">Par pays</a>\n\t\n</li>\n\n\n </ul>\n \n</li>\n\n<li class="sibling">\n<a id="gn-11" class="head-navitem" rel="nofollow" onclick="toggle_nav(\'11\'); return false;" href="#">\xc0 propos</a>\n\n <ul id="ul-11" class="submenu dropdown">\n \n\n<li class="">\n\t<a href="/a-propos/a-propos-de-becca/">La bourse de fret</a>\n\t\n</li>\n\n<li class="">\n\t<a href="/a-propos/qui-sommes-nous/">Qui sommes nous ?</a>\n\t\n</li>\n\n<li class="">\n\t<a href="/a-propos/le-systeme-de-credits/">Le syst\xe8me de cr\xe9dits</a>\n\t\n</li>\n\n<li class="">\n\t<a href="/a-propos/nos-partenaires/">Nos partenaires</a>\n\t\n</li>\n\n<li class="">\n\t<a href="/a-propos/demonstration-de-becca/">Comment \xe7a marche ?</a>\n\t\n</li>\n\n<li class="">\n\t<a href="/a-propos/technologie-becca/">Technologie</a>\n\t\n</li>\n\n<li class="">\n\t<a href="/a-propos/a-propos-de-becca-copy/">A propos de BECCA</a>\n\t\n</li>\n\n\n </ul>\n \n</li>\n\n\n', u'\n </ul>\n\n ', u'\n \n<form action="/fr/country/infos/" id="globalcountry" method=\'get\'>\n <p>\n <label for="searchinput">Choisissez votre pays:</label>\n <span class="inputwrap">\n <select name="pays" id="searchinput" class="placeholder">\n \n <option value="30"\n \n >Anguilla</option>\n \n <option value="3"\n \n >Antigua & Barbuda</option>\n \n <option value="63"\n \n >Argentina</option>\n \n <option value="14"\n \n >Aruba</option>\n \n <option value="15"\n \n >Bahamas</option>\n \n <option value="4"\n \n >Barbados</option>\n \n <option value="16"\n \n >Belize</option>\n \n <option value="37"\n \n >Brazil</option>\n \n <option value="17"\n \n >Cayman Islands</option>\n \n <option value="59"\n \n >Chile</option>\n \n <option value="46"\n \n >Colombia</option>\n \n <option value="51"\n \n >Costa Rica</option>\n \n <option value="55"\n \n >Cuba</option>\n \n <option value="73"\n \n >Cura\xe7ao</option>\n \n <option value="5"\n \n >Dominica</option>\n \n <option value="18"\n \n >Dominican Republic</option>\n \n <option value="66"\n \n >Ecuador</option>\n \n <option value="88"\n \n >El Salvador</option>\n \n <option value="7"\n \n >French Guiana</option>\n \n <option value="19"\n \n >Grenada</option>\n \n <option value="8"\n \n >Guadeloupe</option>\n \n <option value="33"\n \n >Guatemala</option>\n \n <option value="20"\n \n >Guyana</option>\n \n <option value="21"\n \n >Haiti</option>\n \n <option value="34"\n \n >Honduras</option>\n \n <option value="9"\n \n >Jamaica</option>\n \n <option value="11"\n \n >Martinique</option>\n \n <option value="41"\n \n >Mexico</option>\n \n <option value="2"\n \n >Montserrat</option>\n \n <option value="22"\n \n >Netherlands Antilles</option>\n \n <option value="89"\n \n >Nicaragua</option>\n \n <option value="23"\n \n >Panama</option>\n \n <option value="60"\n \n >Peru</option>\n \n <option value="24"\n \n >Puerto Rico</option>\n \n <option value="72"\n \n >St Barthelemy</option>\n \n <option value="62"\n \n >St Eustatius</option>\n \n <option value="1"\n \n >St Kitts & Nevis</option>\n \n <option value="10"\n \n >St Lucia</option>\n \n <option value="85"\n \n >St Maarten</option>\n \n <option value="71"\n \n >St Martin</option>\n \n <option value="25"\n \n >St Vincent & the Grenadines</option>\n \n <option value="13"\n \n >Suriname</option>\n \n <option value="12"\n \n >Trinidad & Tobago</option>\n \n <option value="47"\n \n >Turks and Caicos Islands</option>\n \n <option value="36"\n \n >United States</option>\n \n <option value="27"\n \n >Venezuela</option>\n \n <option value="6"\n \n >Virgin Islands BR</option>\n \n <option value="26"\n \n >Virgin Islands US</option>\n \n </select>\n <button class="searchbutton" type="submit" name="change_country">Go</button>\n </span>\n </p>\n</form>\n\n ', u'\n </div>\n</div>\n\n</div>\n<!--/header-->\n\n<!-- breadcrumbs -->\n<div id="breadcrumbs">\n<div class="breadcrumbs-content">\n <div class="container">\n ', u'\n \n \n <p>Vous \xeates ici :</p>\n <ul>\n \n<li>Accueil</li>\n\n </ul>\n \n\n ', u'\n </div>\n</div>\n</div>\n<!-- /breadcrumbs -->\n\n<!-- main -->\n<div id="main">\n <!--contentheader-->\n <div id="contentheader">\n '] |
self | [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>] |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
/usr/local/lib/python2.7/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception, e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Block Node: contentheader. Contents: [<Text Node: ' '>]> |
self | [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>] |
e | KeyError(u'IFramePlugin',) |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
/usr/local/lib/python2.7/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = BlockNode(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
context.pop()
return result
def super(self):
Variable | Value |
---|---|
push | <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f45badf5b90> |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
block | <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]> |
self | <Block Node: contentheader. Contents: [<Text Node: ' '>]> |
/usr/local/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_unicode(bit))
return mark_safe(u''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Tag: placeholder> |
bit | u'</h1>\n</div>\n<div class="pagenote">\n <div class="pagenote-content placeholder">\n ' |
bits | [u'\n<div class="module-contentheader">\n <h1 id="home-title"><span class="title">BECCA</span> ', u'A propos de BECCA', u'</h1>\n</div>\n<div class="pagenote">\n <div class="pagenote-content placeholder">\n '] |
self | [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>] |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
/usr/local/lib/python2.7/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception, e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Tag: placeholder> |
self | [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>] |
e | KeyError(u'IFramePlugin',) |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
/usr/local/lib/python2.7/site-packages/classytags/core.py
in render
"""
INTERNAL method to prepare rendering
Usually you should not override this method, but rather use render_tag.
"""
items = self.kwargs.items()
kwargs = dict([(key, value.resolve(context)) for key, value in items])
kwargs.update(self.blocks)
return self.render_tag(context, **kwargs)...
def render_tag(self, context, **kwargs):
"""
The method you should override in your custom tags
"""
raise NotImplementedError
Variable | Value |
---|---|
key | 'extra_bits' |
items | [('name', <classytags.values.StringValue object at 0x7f45ba3db350>), ('extra_bits', <TemplateConstant: []>)] |
self | <Tag: placeholder> |
value | <TemplateConstant: []> |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
kwargs | {'extra_bits': [], 'name': u'chapo'} |
/usr/local/lib/python2.7/site-packages/cms/templatetags/cms_tags.py
in render_tag
page = request.current_page
if not page or page == 'dummy':
if nodelist:
return nodelist.render(context)
return ''
content = get_placeholder_content(context, request, page, name, inherit)...
if not content and nodelist:
return nodelist.render(context)
return content
def get_name(self):
return self.kwargs['name'].var.value.strip('"').strip("'")
Variable | Value |
---|---|
nodelist | None |
name | u'chapo' |
self | <Tag: placeholder> |
request | "<WSGIRequest\npath:/becca/introducing-becca-copy/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_ACCEPT_ENCODING': 'gzip',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_HOST': 'www.becca-directory.com',\n 'HTTP_USER_AGENT': 'claudebot',\n 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2',\n 'HTTP_X_FORWARDED_PORT': '443',\n 'HTTP_X_FORWARDED_PROTO': 'http',\n 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a',\n 'HTTP_X_REAL_IP': '172.18.0.2',\n 'PATH_INFO': u'/fr/becca/introducing-becca-copy/',\n 'QUERY_STRING': '',\n 'RAW_URI': '/fr/becca/introducing-becca-copy/',\n 'REMOTE_ADDR': '172.21.0.6',\n 'REMOTE_PORT': '34108',\n 'REQUEST_METHOD': 'GET',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': '0.0.0.0',\n 'SERVER_PORT': '8000',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SOFTWARE': 'gunicorn/19.1.1',\n 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>,\n 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>,\n 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>,\n 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
inherit | False |
width | None |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
page | <Page: A propos de BECCA> |
extra_bits | [] |
/usr/local/lib/python2.7/site-packages/cms/templatetags/cms_tags.py
in get_placeholder_content
pages = [current_page]
# don't display inherited plugins in edit mode, so that the user doesn't
# mistakenly edit/delete them. This is a fix for issue #1303. See the discussion
# there for possible enhancements
if inherit and not edit_mode:
pages = chain([current_page], current_page.get_cached_ancestors(ascending=True))
for page in pages:
placeholder = _get_placeholder(current_page, page, context, name)...
if placeholder is None:
continue
if not get_plugins(request, placeholder):
continue
content = render_placeholder(placeholder, context, name)
if content:
Variable | Value |
---|---|
name | u'chapo' |
current_page | <Page: A propos de BECCA> |
request | "<WSGIRequest\npath:/becca/introducing-becca-copy/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_ACCEPT_ENCODING': 'gzip',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_HOST': 'www.becca-directory.com',\n 'HTTP_USER_AGENT': 'claudebot',\n 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2',\n 'HTTP_X_FORWARDED_PORT': '443',\n 'HTTP_X_FORWARDED_PROTO': 'http',\n 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a',\n 'HTTP_X_REAL_IP': '172.18.0.2',\n 'PATH_INFO': u'/fr/becca/introducing-becca-copy/',\n 'QUERY_STRING': '',\n 'RAW_URI': '/fr/becca/introducing-becca-copy/',\n 'REMOTE_ADDR': '172.21.0.6',\n 'REMOTE_PORT': '34108',\n 'REQUEST_METHOD': 'GET',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': '0.0.0.0',\n 'SERVER_PORT': '8000',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SOFTWARE': 'gunicorn/19.1.1',\n 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>,\n 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>,\n 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>,\n 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
inherit | False |
pages | [<Page: A propos de BECCA>] |
edit_mode | False |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
page | <Page: A propos de BECCA> |
/usr/local/lib/python2.7/site-packages/cms/templatetags/cms_tags.py
in _get_placeholder
from cms.utils.plugins import get_placeholders
placeholder_cache = getattr(current_page, '_tmp_placeholders_cache', {})
if page.pk in placeholder_cache:
return placeholder_cache[page.pk].get(name, None)
placeholder_cache[page.pk] = {}
slots = get_placeholders(page.get_template())
placeholders = page.placeholders.filter(slot__in=slots)
assign_plugins(context['request'], placeholders, get_language())...
for placeholder in placeholders:
placeholder_cache[page.pk][placeholder.slot] = placeholder
placeholder.page = page
current_page._tmp_placeholders_cache = placeholder_cache
return placeholder_cache[page.pk].get(name, None)
Variable | Value |
---|---|
name | u'chapo' |
current_page | <Page: A propos de BECCA> |
page | <Page: A propos de BECCA> |
get_placeholders | <function get_placeholders at 0x7f45bb856dd0> |
context | [[{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x7f45ba4763d0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f45ba476410>, 'user': <django.utils.functional.SimpleLazyObject object at 0x7f45ba476b90>}, {}, {'LANGUAGES': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'fr'}, {'MEDIA_URL': '/media/'}, {'STATIC_URL': '/static/'}, {'TIME_ZONE': 'AST'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f45ba4766d0>}, {'request': <WSGIRequest path:/becca/introducing-becca-copy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.becca-directory.com', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2', 'HTTP_X_FORWARDED_PORT': '443', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a', 'HTTP_X_REAL_IP': '172.18.0.2', 'PATH_INFO': u'/fr/becca/introducing-becca-copy/', 'QUERY_STRING': '', 'RAW_URI': '/fr/becca/introducing-becca-copy/', 'REMOTE_ADDR': '172.21.0.6', 'REMOTE_PORT': '34108', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/19.1.1', 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>, 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>, 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>}, {'CMS_MEDIA_URL': '/media/cms/'}, {'SEKIZAI_CONTENT_HOLDER': {}}, {'lang': u'fr', 'GGMAP_KEY': 'ABQIAAAAgNWN9yFMLRQ8ig3myoQeTxTfEd2Juibdqb4tOBnnVDlrabEq9xSmviRSkie3TxGyMVRy9cJ4GQ69Cw', 'current_page': <Page: A propos de BECCA>, 'has_view_permissions': True, 'DEFAULT_SITE': <Site: example.com>, 'has_change_permissions': False}], {'block': <Block Node: body_content. Contents: [<Text Node: ' '>, <Tag: cms_toolbar>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5810>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45badf5f10>, <Text Node: ' <!--header--> <div id="'>, <Variable Node: STATIC_URL>, <Text Node: 'images/homepagelogo.jpg" '>, <IfNode>, <Text Node: ' '>, <Tag: language_chooser>, <Text Node: ' </p> '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4d10>, <Text Node: ':</h2> <ul> '>, <Tag: show_menu>, <Text Node: ' </ul> '>, <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div'>, <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> </div> </div>'>, <Block Node: contentheader. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f45ba3f7950>, <Text Node: ' </div> <!--/cont'>, <Block Node: main-class. Contents: []>, <Text Node: '> '>, <Block Node: content-sup. Contents: [<Text Node: ' '>, <Block Node: content. Contents: [<Text Node: ' <div id="content'>, <Block Node: contentnav. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: contentleft. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>, <Text Node: ' </div> <div clas'>, <Block Node: footer. Contents: [<Text Node: ' <div class="nav-'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '/">'>, <django.templatetags.i18n.TranslateNode object at 0x7f45ba3f7cd0>, <Text Node: '</a> '>, <Tag: show_menu_below_id>, <Text Node: ' </div> '>, <Tag: show_placeholder_by_id>, <Text Node: ' '>, <Tag: show_placeholder_by_id>, <Text Node: ' </div> '>, <django.template.defaulttags.CommentNode object at 0x7f45b9eb7950>, <Text Node: ' <p class="legal'>, <beccacountry.templatetags.beccacountry_tag.CurrentTimeNode object at 0x7f45b9eb7850>, <Text Node: ' BECCA. '>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9eb7790>, <Text Node: '. <a href="http://www.ipe'>, <Variable Node: STATIC_URL>, <Text Node: 'images/ipeos_project.gif"'>]>, <Text Node: ' </div></div> <!-'>, <Text Node: ' '>, <Text Node: ' '>, <google_analytics.templatetags.analytics.AnalyticsNode object at 0x7f45b9eb7d50>, <Text Node: ' '>]>}, {'languages': [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')], 'current_language': 'fr', 'template': u'beccacms/language_chooser.html'}, {'to_level': 1, 'extra_active': 100, 'namespace': None, 'from_level': 0, 'template': u'beccacms/menu_header.html', 'extra_inactive': 100, 'children': [<Navigation Node: Modules>, <Navigation Node: Annuaire>, <Navigation Node: Recherche>, <Navigation Node: À propos>]}, {'block': <Block Node: select_country. Contents: [<Text Node: ' '>, <django.template.base.InclusionNode object at 0x7f45ba3f7250>, <Text Node: ' '>]>}, {'block': <Block Node: breadcrumbs-sup. Contents: [<Text Node: ' '>, <Block Node: breadcrumbs. Contents: [<Text Node: ' <p>'>, <django.templatetags.i18n.TranslateNode object at 0x7f45b9df4f50>, <Text Node: ' :</p> <ul> '>, <Tag: show_breadcrumb>, <Text Node: ' </ul> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: contentheader. Contents: [<Text Node: ' <div class="module-conte'>, <Tag: page_attribute>, <Text Node: '</h1> </div> <div class="'>, <Tag: placeholder>, <Text Node: ' </div> </div> '>]>}] |
placeholders | [<Placeholder: content>, <Placeholder: document>, <Placeholder: portfolio>, <Placeholder: contentnav>, <Placeholder: chapo>] |
slots | [u'content', u'document', u'portfolio', u'contentnav', u'chapo'] |
placeholder_cache | {37: {}} |
/usr/local/lib/python2.7/site-packages/cms/plugins/utils.py
in assign_plugins
placeholders = list(placeholders)
if not placeholders:
return
lang = lang or get_language_from_request(request)
# get all plugins for the given placeholders
qs = get_cmsplugin_queryset(request).filter(placeholder__in=placeholders, language=lang, parent__isnull=True).order_by('placeholder', 'position')
plugin_list = downcast_plugins(qs)...
# split the plugins up by placeholder
groups = dict((key, list(plugins)) for key, plugins in groupby(plugin_list, operator.attrgetter('placeholder_id')))
for placeholder in placeholders:
setattr(placeholder, '_%s_plugins_cache' % lang, list(groups.get(placeholder.pk, [])))
Variable | Value |
---|---|
lang | 'fr' |
qs | [<CMSPlugin: 285>, <CMSPlugin: 291>, <CMSPlugin: 294>, <CMSPlugin: 295>, <CMSPlugin: 296>, <CMSPlugin: 297>, <CMSPlugin: 298>, <CMSPlugin: 281>] |
request | "<WSGIRequest\npath:/becca/introducing-becca-copy/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CSRF_COOKIE': 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_ACCEPT_ENCODING': 'gzip',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_HOST': 'www.becca-directory.com',\n 'HTTP_USER_AGENT': 'claudebot',\n 'HTTP_X_FORWARDED_FOR': '54.147.30.127, 172.18.0.2',\n 'HTTP_X_FORWARDED_PORT': '443',\n 'HTTP_X_FORWARDED_PROTO': 'http',\n 'HTTP_X_FORWARDED_SERVER': '352f1d8e520a',\n 'HTTP_X_REAL_IP': '172.18.0.2',\n 'PATH_INFO': u'/fr/becca/introducing-becca-copy/',\n 'QUERY_STRING': '',\n 'RAW_URI': '/fr/becca/introducing-becca-copy/',\n 'REMOTE_ADDR': '172.21.0.6',\n 'REMOTE_PORT': '34108',\n 'REQUEST_METHOD': 'GET',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': '0.0.0.0',\n 'SERVER_PORT': '8000',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SOFTWARE': 'gunicorn/19.1.1',\n 'gunicorn.socket': <socket._socketobject object at 0x7f45ba42b0c0>,\n 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0>,\n 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>,\n 'wsgi.input': <gunicorn.http.body.Body object at 0x7f45b9ed0850>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
placeholders | [<Placeholder: content>, <Placeholder: document>, <Placeholder: portfolio>, <Placeholder: contentnav>, <Placeholder: chapo>] |
/usr/local/lib/python2.7/site-packages/cms/plugins/utils.py
in downcast_plugins
plugin_types_map = defaultdict(list)
plugin_lookup = {}
# make a map of plugin types, needed later for downcasting
for plugin in queryset:
plugin_types_map[plugin.plugin_type].append(plugin.pk)
for plugin_type, pks in plugin_types_map.iteritems():
cls = plugin_pool.get_plugin(plugin_type)...
# get all the plugins of type cls.model
plugin_qs = cls.model.objects.filter(pk__in=pks)
if select_placeholder:
plugin_qs = plugin_qs.select_related('placeholder')
# put them in a map so we can replace the base CMSPlugins with their
Variable | Value |
---|---|
pks | [296] |
plugin | <CMSPlugin: 281> |
queryset | [<CMSPlugin: 285>, <CMSPlugin: 291>, <CMSPlugin: 294>, <CMSPlugin: 295>, <CMSPlugin: 296>, <CMSPlugin: 297>, <CMSPlugin: 298>, <CMSPlugin: 281>] |
select_placeholder | False |
plugin_types_map | defaultdict(<type 'list'>, {u'PicturePlugin': [297, 298], u'IFramePlugin': [296], u'TextPlugin': [285, 294, 281], u'YouTubePlugin': [291, 295]}) |
instance | <Picture: débarquement produits> |
plugin_lookup | {297: <Picture: barge>, 298: <Picture: débarquement produits>} |
plugin_qs | [<Picture: barge>, <Picture: débarquement produits>] |
cls | <class 'cms.plugins.picture.cms_plugins.PicturePlugin'> |
plugin_type | u'IFramePlugin' |
/usr/local/lib/python2.7/site-packages/cms/plugin_pool.py
in get_plugin
return final
def get_plugin(self, name):
"""
Retrieve a plugin from the cache.
"""
self.discover_plugins()
return self.plugins[name]...
plugin_pool = PluginPool()
Variable | Value |
---|---|
self | <cms.plugin_pool.PluginPool object at 0x7f45bc146150> |
name | u'IFramePlugin' |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_X_FORWARDED_SERVER | '352f1d8e520a' |
SERVER_SOFTWARE | 'gunicorn/19.1.1' |
SCRIPT_NAME | u'' |
HTTP_X_FORWARDED_PORT | '443' |
PATH_INFO | u'/fr/becca/introducing-becca-copy/' |
SERVER_PROTOCOL | 'HTTP/1.0' |
QUERY_STRING | '' |
HTTP_X_REAL_IP | '172.18.0.2' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_CONNECTION | 'close' |
REMOTE_PORT | '34108' |
SERVER_NAME | '0.0.0.0' |
REMOTE_ADDR | '172.21.0.6' |
wsgi.url_scheme | 'http' |
SERVER_PORT | '8000' |
HTTP_X_FORWARDED_PROTO | 'http' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f45b9ed0850> |
HTTP_HOST | 'www.becca-directory.com' |
wsgi.multithread | False |
HTTP_ACCEPT | '*/*' |
wsgi.version | (1, 0) |
RAW_URI | '/fr/becca/introducing-becca-copy/' |
wsgi.run_once | False |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f45ba5987d0> |
wsgi.multiprocess | True |
gunicorn.socket | <socket._socketobject object at 0x7f45ba42b0c0> |
REQUEST_METHOD | 'GET' |
HTTP_X_FORWARDED_FOR | '54.147.30.127, 172.18.0.2' |
wsgi.file_wrapper | '' |
CSRF_COOKIE | 'EpEns26PA7nsg7nfCvSIWmwbkVsS2OBx' |
HTTP_ACCEPT_ENCODING | 'gzip' |
becca.settings
Setting | Value |
---|---|
USE_L10N | True |
MIDDLEWARE_CLASSES | ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'cms.middleware.multilingual.MultilingualURLMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware') |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'fr' |
ROOT_URLCONF | 'becca.urls' |
MANAGERS | (('Gardian IPEOS', 'guardian@ipeos.com'),) |
BASE_DIR | '/usr/src/app' |
DEFAULT_CHARSET | 'utf-8' |
CMS_MEDIA_ROOT | '/usr/src/app/media/cms/' |
STATIC_ROOT | '/usr/src/app/static' |
CMS_SHOW_START_DATE | False |
CMS_SITE_CHOICES_CACHE_KEY | u'********************' |
CMS_MODERATOR | False |
ALLOWED_HOSTS | ['web', '.becca-directory.com', '92.243.24.228'] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
RECAPTCHA_PRIVATE_KEY | u'********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SEND_BROKEN_LINK_EMAILS | False |
CMS_TEMPLATE_INHERITANCE_MAGIC | 'INHERIT' |
URL_VALIDATOR_USER_AGENT | 'Django/1.4.22 (https://www.djangoproject.com)' |
GGMAP_KEY | u'********************' |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
CMS_MEDIA_URL | '/media/cms/' |
CMS_SHOW_END_DATE | False |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
ADMIN_FOR | () |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M') |
DATABASES | {'default': {'ENGINE': 'django.db.backends.mysql', 'HOST': 'db', 'NAME': 'becca_directory', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'UTC', 'USER': 'becca_directory'}} |
RECAPTCHA_PUBLIC_KEY | u'********************' |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
TEMPLATE_CONTEXT_PROCESSORS | ('django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'django.core.context_processors.request', 'cms.context_processors.media', 'sekizai.context_processors.sekizai', 'becca.context_processors.template_var') |
DEFAULT_CONTENT_TYPE | 'text/html' |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | [] |
CMS_PLUGIN_PROCESSORS | () |
CMS_MENU_TITLE_OVERWRITE | False |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
PASSWORD_HASHERS | u'********************' |
CMS_FRONTEND_LANGUAGES | ['fr', 'en', 'es'] |
SERVER_EMAIL | 'root@localhost' |
SESSION_COOKIE_PATH | '/' |
CMS_TEMPLATE_INHERITANCE | True |
CMS_TEMPLATES | (('index.html', 'sommaire'), ('article.html', 'article'), ('404.html', 'rubrique'), ('INHERIT', <django.utils.functional.__proxy__ object at 0x7f45bc392e50>)) |
CMS_CACHE_PREFIX | 'cms-' |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
CMS_LANGUAGES | [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')] |
LANGUAGE_COOKIE_NAME | 'django_language' |
FILE_UPLOAD_TEMP_DIR | None |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'django.utils.log.dictConfig' |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
CMS_REDIRECTS | True |
WSGI_APPLICATION | 'becca.wsgi.application' |
TEMPLATE_DEBUG | True |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
SESSION_COOKIE_SECURE | False |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
COMMERCIALS | (('CEIBA techs', 'contact@becca-exchange.com'),) |
CMS_SOFTROOT | False |
CMS_LANGUAGE_FALLBACK | True |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
SESSION_FILE_PATH | None |
CMS_APPHOOKS | () |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.admindocs', 'django.contrib.sitemaps', 'becca', 'crispy_forms', 'mailer', 'south', 'sorl.thumbnail', 'endless_pagination', 'captcha', 'autocomplete', 'google_analytics', 'cms', 'mptt', 'menus', 'sekizai', 'cms.plugins.googlemap', 'cms.plugins.link', 'cms.plugins.text', 'cms.plugins.picture', 'cms.plugins.file', 'cmsplugin_youtube', 'cmsplugin_iframe', 'lexicon', 'directory', 'cabotage', 'beccacountry', 'beccasearch', 'beccaport', 'beccaoperator', 'beccaservice', 'beccaforms', 'publicite') |
LANGUAGES_BIDI | ('he', 'ar', 'fa') |
COMMENTS_ALLOW_PROFANITIES | False |
STATICFILES_DIRS | () |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
SESSION_COOKIE_HTTPONLY | True |
CMS_PAGE_MEDIA_PATH | 'cms_page_media/' |
DEBUG_PROPAGATE_EXCEPTIONS | False |
MONTH_DAY_FORMAT | 'F j' |
LOGIN_URL | '/accounts/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_SAVE_EVERY_REQUEST | False |
PLACEHOLDER_FRONTEND_EDITING | True |
TIME_FORMAT | 'P' |
NUMBER_GROUPING | 0 |
DATE_INPUT_FORMATS | ('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y') |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
EMAIL_HOST_PASSWORD | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CMS_PLUGIN_CONTEXT_PROCESSORS | () |
CMS_URL_OVERWRITE | True |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
CMS_CACHE_DURATIONS | {'content': 60, 'menus': 3600, 'permissions': 3600} |
DECIMAL_SEPARATOR | '.' |
CMS_SEO_FIELDS | True |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
LOCALE_PATHS | ('/usr/src/app/../locale',) |
AUTOCOMPLETE_MEDIA_PREFIX | '/media/autocomplete/' |
TEMPLATE_STRING_IF_INVALID | '' |
DISALLOWED_USER_AGENTS | () |
CMS_HIDE_UNTRANSLATED | True |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
CMS_PUBLIC_FOR | 'all' |
FIXTURE_DIRS | () |
EMAIL_HOST | 'mail.ipeos.net' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '/usr/src/app/media' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | (('Gardian IPEOS', 'guardian@ipeos.com'),) |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'contact@becca-exchange.com' |
MEDIA_URL | '/media/' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | () |
CMS_PAGE_CHOICES_CACHE_KEY | u'********************' |
CMS_TITLE_CHARACTER | '+' |
SITE_ID | 1 |
CMS_PERMISSION | False |
ALLOWED_INCLUDE_ROOTS | () |
LOGGING | {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} |
SHORT_DATE_FORMAT | 'm/d/Y' |
SECRET_KEY | u'********************' |
TEST_RUNNER | 'django.test.simple.DjangoTestSuiteRunner' |
IGNORABLE_404_URLS | () |
TIME_ZONE | 'America/Guadeloupe' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
CMS_MEDIA_PATH | 'cms/' |
CMS_FLAT_URLS | False |
DEFAULT_TABLESPACE | '' |
CRISPY_TEMPLATE_PACK | 'uni_form' |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'becca.settings' |
USE_ETAGS | False |
LANGUAGES | [('fr', 'French'), ('en', 'English'), ('es', 'Spanish')] |
GOOGLE_ANALYTICS_MODEL | True |
DEFAULT_INDEX_TABLESPACE | '' |
INTERNAL_IPS | () |
STATIC_URL | '/static/' |
EMAIL_PORT | 25 |
USE_TZ | True |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
RECAPTCHA_USE_SSL | True |
CMS_PLACEHOLDER_CONF | {'chapo': {'name': 'chapo', 'plugins': ['TextPlugin', 'LinkPlugin'], 'text_only_plugins': ['LinkPlugin']}, 'content': {'name': 'contenu principal', 'plugins': ['TextPlugin', 'PicturePlugin', 'FilePlugin', 'LinkPlugin', 'YouTubePlugin', 'IFramePlugin']}, 'contentnav': {'limits': {'GoogleMapPlugin': 1, 'TextPlugin': 2}, 'name': 'menu de navigation', 'plugins': ['TextPlugin', 'GoogleMapPlugin', 'LinkPlugin']}, 'document': {'name': 'documents a telecharger', 'plugins': ['FilePlugin']}, 'intro': {'name': 'slogan', 'plugins': ['TextPlugin']}, 'partenaires': {'name': 'partenaires', 'plugins': ['PicturePlugin']}, 'partenaires_euro': {'name': 'partenaires Europe', 'plugins': ['PicturePlugin']}, 'portfolio': {'name': 'portfolio', 'plugins': ['PicturePlugin']}} |
ABSOLUTE_URL_OVERRIDES | {} |
CACHE_MIDDLEWARE_SECONDS | 600 |
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') |
CMS_LANGUAGE_CONF | {'en': ['fr'], 'es': ['fr']} |
CMS_SITE_LANGUAGES | {} |
EMAIL_HOST_USER | 'contact@becca-exchange.com' |
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.