'Context' object has no attribute 'template'
Request Method: | GET |
---|---|
Request URL: | https://www.testesdecodigogratis.com/testes/pergunta/m7mb3/ |
Django Version: | 1.7.1 |
Exception Type: | AttributeError |
Exception Value: | 'Context' object has no attribute 'template' |
Exception Location: | /home/tcg/website/lib/python2.7/site-packages/sorl/thumbnail/templatetags/thumbnail.py in render, line 67 |
Python Executable: | /home/tcg/website/bin/uwsgi |
Python Version: | 2.7.5 |
Python Path: | ['.', '/home/tcg/website/tcg', '', '/home/tcg/website/lib64/python27.zip', '/home/tcg/website/lib64/python2.7', '/home/tcg/website/lib64/python2.7/plat-linux2', '/home/tcg/website/lib64/python2.7/lib-tk', '/home/tcg/website/lib64/python2.7/lib-old', '/home/tcg/website/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7', '/usr/lib/python2.7', '/home/tcg/website/lib/python2.7/site-packages'] |
Server time: | Sex, 29 Mar 2024 06:13:20 +0000 |
In template /home/tcg/website/tcg/theme/templates/generic/includes/comment.html
, error at line 20
10 | <img class="ribbon-picture" src="{{ im.url }}"/> |
---|---|
11 | {% empty %} |
12 | <div class="ribbon-picture"><span class="fa fa-user"></span></div> |
13 | {% endthumbnail %} |
14 | <div class="ribbon-text">Instrutor</div> |
15 | <div class="ribbon-edge-topleft"></div> |
16 | <div class="ribbon-edge-topright"></div> |
17 | </div> |
18 | {% else %} |
19 | {% if request.user.is_superuser %}<a href="{% url "utilizadores:perfil" comment.user.username %}" title="{{ comment.user_name }}">{% endif %} |
20 | {% thumbnail comment.user.userprofile.avatar "80x80" crop="center" as im %} |
21 | <img class="media-object comment-picture" alt="{{ comment.user_name }}" src="{{ im.url }}"/> |
22 | {% empty %} |
23 | <div class="media-object comment-picture"><span class="fa fa-user"></span></div> |
24 | {% endthumbnail %} |
25 | {% if request.user.is_superuser %}</a>{% endif %} |
26 | {% endif %} |
27 | </div> |
28 | |
29 | <div class="media-body"> |
30 | <article itemprop="comment" itemscope itemtype="http://schema.org/UserComments"> |
/home/tcg/website/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as 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 |
---|---|
e | AttributeError("'Context' object has no attribute 'template'",) |
callback_args | () |
resolver_match | ResolverMatch(func=<function pergunta_view at 0x7f76317bcf50>, args=(), kwargs={'pergunta_unique_id': u'm7mb3'}, url_name='pergunta', app_name='None', namespace='testes') |
middleware_method | <bound method PageMiddleware.process_view of <mezzanine.pages.middleware.PageMiddleware object at 0x7f76315ebd90>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f7635e38110> |
request | "<WSGIRequest\npath:/testes/pergunta/m7mb3/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '',\n 'CONTENT_TYPE': '',\n u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1',\n 'DOCUMENT_ROOT': '/usr/share/nginx/html',\n 'HTTPS': 'on',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'www.testesdecodigogratis.com',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/testes/pergunta/m7mb3/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '44.222.92.134',\n 'REMOTE_PORT': '39830',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'https',\n 'REQUEST_URI': '/testes/pergunta/m7mb3/',\n u'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'www.testesdecodigogratis.com',\n 'SERVER_PORT': '443',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'uwsgi.node': 'apollo',\n 'uwsgi.version': '2.0.11.1',\n 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>" |
callback | <function pergunta_view at 0x7f76317bcf50> |
wrapped_callback | <function pergunta_view at 0x7f76317bcf50> |
resolver | <RegexURLResolver u'tcg.urls' (None:None) ^/> |
callback_kwargs | {'pergunta_unique_id': u'm7mb3'} |
response | None |
urlconf | u'tcg.urls' |
/home/tcg/website/tcg/testes/views.py
in pergunta_view
material_estudo = get_materialestudo_temas(pergunta.tema_id)
return render(request, 'testes/pergunta.html', {
'categoria_slug': get_categoria_slug(pergunta.tema.categoria),
'categoria': Tema.CATEGORIAS_DICT[pergunta.tema.categoria],
'pergunta': pergunta,
'material_estudo': material_estudo,...
})
def teste_corrigir(request):
teste_id = request.REQUEST.get('teste', None)
answers = request.REQUEST.get('answers', None)
Variable | Value |
---|---|
pergunta | <Pergunta: Pergunta object> |
material_estudo | None |
pergunta_unique_id | u'm7mb3' |
request | "<WSGIRequest\npath:/testes/pergunta/m7mb3/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '',\n 'CONTENT_TYPE': '',\n u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1',\n 'DOCUMENT_ROOT': '/usr/share/nginx/html',\n 'HTTPS': 'on',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'www.testesdecodigogratis.com',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/testes/pergunta/m7mb3/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '44.222.92.134',\n 'REMOTE_PORT': '39830',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'https',\n 'REQUEST_URI': '/testes/pergunta/m7mb3/',\n u'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'www.testesdecodigogratis.com',\n 'SERVER_PORT': '443',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'uwsgi.node': 'apollo',\n 'uwsgi.version': '2.0.11.1',\n 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>" |
/home/tcg/website/lib/python2.7/site-packages/django/shortcuts.py
in render
'set its current_app before calling render()')
else:
current_app = kwargs.pop('current_app', None)
context_instance = RequestContext(request, current_app=current_app)
kwargs['context_instance'] = context_instance
return HttpResponse(loader.render_to_string(*args, **kwargs),...
**httpresponse_kwargs)
def redirect(to, *args, **kwargs):
"""
Returns an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
httpresponse_kwargs | {'content_type': None, 'status': None} |
current_app | None |
args | ('testes/pergunta.html', {'categoria': u'Categoria B', 'categoria_slug': 'b', 'material_estudo': None, 'pergunta': <Pergunta: Pergunta object>}) |
request | "<WSGIRequest\npath:/testes/pergunta/m7mb3/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '',\n 'CONTENT_TYPE': '',\n u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1',\n 'DOCUMENT_ROOT': '/usr/share/nginx/html',\n 'HTTPS': 'on',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'www.testesdecodigogratis.com',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/testes/pergunta/m7mb3/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '44.222.92.134',\n 'REMOTE_PORT': '39830',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'https',\n 'REQUEST_URI': '/testes/pergunta/m7mb3/',\n u'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'www.testesdecodigogratis.com',\n 'SERVER_PORT': '443',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'uwsgi.node': 'apollo',\n 'uwsgi.version': '2.0.11.1',\n 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>" |
context_instance | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
kwargs | {'context_instance': [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}]} |
/home/tcg/website/lib/python2.7/site-packages/django/template/loader.py
in render_to_string
if not context_instance:
return t.render(Context(dictionary))
if not dictionary:
return t.render(context_instance)
# Add the dictionary to the context stack, ensuring it gets removed again
# to keep the context_instance in the same state it started in.
with context_instance.push(dictionary):
return t.render(context_instance)...
def select_template(template_name_list, dirs=None):
"Given a list of template names, returns the first that can be loaded."
if not template_name_list:
raise TemplateDoesNotExist("No template names provided")
Variable | Value |
---|---|
dirs | None |
template_name | 'testes/pergunta.html' |
t | <django.template.base.Template object at 0x7f7630d2d310> |
dictionary | {'categoria': u'Categoria B', 'categoria_slug': 'b', 'material_estudo': None, 'pergunta': <Pergunta: Pergunta object>} |
context_instance | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/base.py
in render
def _render(self, context):
return self.nodelist.render(context)
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)...
finally:
context.render_context.pop()
def compile_string(template_string, origin):
"Compiles template_string into NodeList ready for rendering"
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7f7630d2d310> |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/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 0x7f7630d2d310> |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <ExtendsNode: extends "template_sidebar.html"> |
self | [<ExtendsNode: extends "template_sidebar.html">] |
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/debug.py
in render_node
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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <ExtendsNode: extends "template_sidebar.html"> |
self | [<ExtendsNode: extends "template_sidebar.html">] |
e | AttributeError("'Context' object has no attribute 'template'",) |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/loader_tags.py
in render
blocks = dict((n.name, n) for n in
compiled_parent.nodelist.get_nodes_by_type(BlockNode))
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
return compiled_parent._render(context)...
class IncludeNode(Node):
def __init__(self, template, *args, **kwargs):
self.template = template
self.extra_context = kwargs.pop('extra_context', {})
Variable | Value |
---|---|
node | <ExtendsNode: extends "base.html"> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f7630d2dc90> |
compiled_parent | <django.template.base.Template object at 0x7f7630d4fd10> |
self | <ExtendsNode: extends "template_sidebar.html"> |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/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 0x7f7630d4fd10> |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/debug.py
in render_node
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 as 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 | AttributeError("'Context' object has no attribute 'template'",) |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/loader_tags.py
in render
blocks = dict((n.name, n) for n in
compiled_parent.nodelist.get_nodes_by_type(BlockNode))
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
return compiled_parent._render(context)...
class IncludeNode(Node):
def __init__(self, template, *args, **kwargs):
self.template = template
self.extra_context = kwargs.pop('extra_context', {})
Variable | Value |
---|---|
node | <Variable Node: LANGUAGE_CODE> |
blocks | {u'body_class': <Block Node: body_class. Contents: []>, u'body_id': <Block Node: body_id. Contents: []>, u'extra_head': <Block Node: extra_head. Contents: []>, u'extra_scripts': <Block Node: extra_scripts. Contents: []>, u'header': <Block Node: header. Contents: [<Text Node: ' <header id="'>, <django.template.defaulttags.URLNode object at 0x7f7630d4d290>, <Text Node: '" title="Testes de C?digo'>]>, u'js_globals': <Block Node: js_globals. Contents: []>, u'main': <Block Node: main. Contents: []>, u'meta_description': <Block Node: meta_description. Contents: [<Text Node: 'Testes de C?digo IMTT. Os'>]>, u'meta_image': <Block Node: meta_image. Contents: [<Text Node: 'https://'>, <Variable Node: request.META.HTTP_HOST>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f7630fe6190>]>, u'meta_keywords': <Block Node: meta_keywords. Contents: [<Text Node: 'testes de c?digo imtt, ex'>]>, u'meta_robots': <Block Node: meta_robots. Contents: [<Text Node: 'index,follow'>]>, u'meta_title': <Block Node: meta_title. Contents: []>, u'meta_title_suffix': <Block Node: meta_title_suffix. Contents: [<IfNode>]>} |
block_context | <django.template.loader_tags.BlockContext object at 0x7f7630d2dc90> |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
compiled_parent | <django.template.base.Template object at 0x7f7630cb3890> |
self | <ExtendsNode: extends "base.html"> |
/home/tcg/website/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 0x7f7630cb3890> |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Block Node: main. Contents: []> |
bit | u'\n\n ' |
bits | [u'<!doctype html>\n<html lang="', u'pt', u'"', u'', u'>\n', u'', u'\n <head>\n ', u'', u'\n\n ', u'', u'\n\n ', u'', u'\n\n <meta http-equiv="Content-type" content="text/html; charset=utf-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <title>', u'Neste local posso: | Testes de C\xf3digo Gr\xe1tis', u'</title>\n <meta name="description" content="', u'Pergunta Categoria B, tema Outras manobras: Neste local posso: Mudar de direc\xe7\xe3o \xe0 esquerda.', u'">\n <meta name="keywords" content="', u'testes de codigo imtt, exames de codigo, Categoria B, Outras manobras', u'">\n <meta name="robots" content="', u'index,follow', u'" />\n\n <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">\n <link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">\n <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">\n <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">\n <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">\n <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">\n <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">\n <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">\n <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png">\n <link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">\n <link rel="icon" type="image/png" href="/android-chrome-192x192.png" sizes="192x192">\n <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">\n <link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">\n <link rel="manifest" href="/manifest.json">\n <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#E5544F">\n <meta name="apple-mobile-web-app-title" content="Testes de C\xf3digo Gr\xe1tis">\n <meta name="application-name" content="Testes de C\xf3digo Gr\xe1tis">\n <meta name="msapplication-TileColor" content="#E5544F">\n <meta name="msapplication-TileImage" content="/mstile-144x144.png">\n <meta name="theme-color" content="#E5544F">\n\n ', u'\n <link rel="alternate" type="application/rss+xml" title="RSS" href="/blog/feeds/rss/">\n <link rel="alternate" type="application/atom+xml" title="Atom" href="/blog/feeds/atom/">\n ', u'\n\n <script type="text/javascript">\n Globals = window.Globals || {};\n Globals.ws = \'', u'wss://www.testesdecodigogratis.com/ws/', u"';\n Globals.logged_in = ", u'false', u";\n Globals.image_url_prefix = '", u'/static/images', u"';\n ", u'', u'\n </script>\n\n <link rel="stylesheet" href="', u'/static/css/layout.css', u'?v=', u'08647f6', u'">\n\n <!--[if lt IE 9]>\n <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>\n <script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>\n <![endif]-->\n\n <meta property="og:title" content="', u'Neste local posso: | Testes de C\xf3digo Gr\xe1tis', u'" />\n <meta property="og:type" content="website" />\n <meta property="og:url" content="https://', u'www.testesdecodigogratis.com', u'/testes/pergunta/m7mb3/', u'" />\n <meta property="og:image" content="', u'https://www.testesdecodigogratis.com/media/perguntas/e1fb89b65e8af216bd8a2a854e85d77ee7e1a567ab7cf5e7f3cea3796cda3ba3.jpg', u'" />\n <meta property="og:description" content="', u'Pergunta Categoria B, tema Outras manobras: Neste local posso: Mudar de direc\xe7\xe3o \xe0 esquerda.', u'" />\n <meta property="og:locale" content="pt_PT" />\n <meta property="og:site_name" content="', u'Testes de C\xf3digo Gr\xe1tis', u'" />\n\n <meta name="twitter:card" content="summary">\n <meta name="twitter:site" content="@', u'https://twitter.com/TestesDeCodigo/', u'">\n <meta name="twitter:title" content="', u'Neste local posso: | Testes de C\xf3digo Gr\xe1tis', u'">\n <meta name="twitter:description" content="', u'Pergunta Categoria B, tema Outras manobras: Neste local posso: Mudar de direc\xe7\xe3o \xe0 esquerda.', u'">\n <meta name="twitter:image" content="', u'https://www.testesdecodigogratis.com/media/perguntas/e1fb89b65e8af216bd8a2a854e85d77ee7e1a567ab7cf5e7f3cea3796cda3ba3.jpg', u'">\n\n <meta property="fb:app_id" content="357697657593925" />\n <meta name="msvalidate.01" content="20EA528B233B6D47C4B2204854D2AF74" />\n <link rel="publisher" href="', u'https://plus.google.com/+Testesdecodigogratiscom/', u'"/>\n <meta name="alexaVerifyID" content="X1jKvKX_lo034TbGYDfz1xRZnVU"/>\n <meta name="wot-verification" content="b629fd13639d3290be2b"/>\n\n <script type="application/ld+json">{ "@context": "http://schema.org", "@type": "Organization", "name": "Testes de C\xf3digo Gr\xe1tis", "url": "https://www.testesdecodigogratis.com/", "sameAs": [ "', u'https://facebook.com/TestesDeCodigo/', u'", "', u'https://twitter.com/TestesDeCodigo/', u'", "', u'https://plus.google.com/+Testesdecodigogratiscom/', u'" ] }</script>\n\n <script src="https://cdn.jsdelivr.net/es6-promise-polyfill/1.1.1/promise.min.js"></script>\n\n <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>\n <script>\n (adsbygoogle = window.adsbygoogle || []).push({\n google_ad_client: "ca-pub-2566784795967596",\n enable_page_level_ads: true\n });\n </script>\n\n ', u'', u'\n </head>\n\n <body id="', u'testes', u'" class="', u'', u'">\n ', u"\n <script>\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n })(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n ga('create', 'UA-17387647-1', 'auto');\n ga('send', 'pageview');\n </script>\n ", u'\n\n <div id="fb-root"></div>\n <script>(function(d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id)) return;\n js = d.createElement(s); js.id = id;\n js.src = "//connect.facebook.net/pt_PT/sdk.js#xfbml=1&version=v2.3&appId=357697657593925";\n fjs.parentNode.insertBefore(js, fjs);\n }(document, \'script\', \'facebook-jssdk\'));</script>\n\n <nav class="navbar navbar-inverse navbar-static-top" id="nav" data-spy="affix">\n <div class="container">\n <div class="row">\n <div class="navbar-header">\n <a class="navbar-brand visible-xs-block" title="Testes de C\xf3digo Gr\xe1tis IMTT" href="', u'/', u'">Testes de C\xf3digo Gr\xe1tis IMTT</a>\n <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">\n <span class="fa fa-bars"></span>\n </button>\n </div>\n <div class="collapse navbar-collapse navbar-left">\n <ul class="nav navbar-nav">\n <li><a href="', u'/', u'" title="Testes de C\xf3digo Gr\xe1tis"><span class="fa fa-home"></span> <span class="visible-xs-inline">Primeira P\xe1gina</span></a></li>\n <li><a href="', u'/testes/', u'" title="Testes de c\xf3digo"><span class="fa fa-th-list visible-xs-inline-block"></span> Testes de C\xf3digo</a></li>\n <li><a href="', u'/material-estudo/', u'" title="Biblioteca de material de estudo"><span class="fa fa-book visible-xs-inline-block"></span> Material de Estudo</a></li>\n <li><a href="', u'/escolas-de-conducao/', u'" title="Escolas de Condu\xe7\xe3o"><span class="fa fa-car visible-xs-inline-block"></span> Escolas</a></li>\n <li><a href="', u'/blog/', u'" title="O blog de Testes de C\xf3digo Gr\xe1tis"><span class="fa fa-newspaper-o visible-xs-inline-block"></span> Blog</a></li>\n </ul>\n </div>\n\n <div class="collapse navbar-collapse navbar-right">\n <ul class="nav navbar-nav">\n ', u'\n <li><a href="/conta/login/" rel="nofollow"><span class="fa fa-sign-in visible-xs-inline-block"></span> Login</a></li>\n <li><a href="/conta/signup/" rel="nofollow"><span class="fa fa-user visible-xs-inline-block"></span> Registar</a></li>\n ', u'\n </ul>\n </div>\n </div>\n </div>\n </nav>\n\n ', u'\n <header id="header">\n <div class="container">\n <div class="row">\n <h2 id="page-logo-lettering"><a href="/" title="Testes de C\xf3digo Gr\xe1tis">Testes de C\xf3digo Gr\xe1tis</a></h2>\n\n <div class="banner banner-header">\n <ins class="adsbygoogle"\n style="display:block"\n data-ad-client="ca-pub-2566784795967596"\n data-ad-slot="9242213062"\n data-ad-format="horizontal"></ins>\n <script>\n (adsbygoogle = window.adsbygoogle || []).push({});\n </script>\n </div>\n </div>\n </div>\n </header>\n ', u'\n\n ', u'\n \n ', u'\n\n '] |
self | [<Text Node: '<!doctype html> <html lan'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '"'>, <IfNode>, <Text Node: '> '>, <django.template.defaulttags.LoadNode object at 0x7f7630cb3bd0>, <Text Node: ' <head> '>, <main.templatetags.kwacros.DefineMacroNode object at 0x7f7630fe6e10>, <Text Node: ' '>, <main.templatetags.kwacros.DefineMacroNode object at 0x7f7630fe6b10>, <Text Node: ' '>, <main.templatetags.kwacros.DefineMacroNode object at 0x7f7630fe6c50>, <Text Node: ' <meta http-equi'>, <mezzanine.template.ToEndTagNode object at 0x7f7630fe6bd0>, <Text Node: '</title> <meta na'>, <mezzanine.template.ToEndTagNode object at 0x7f7630fe6e90>, <Text Node: '"> <meta name="ke'>, <mezzanine.template.ToEndTagNode object at 0x7f7630fe6f10>, <Text Node: '"> <meta name="ro'>, <Block Node: meta_robots. Contents: [<Text Node: 'index,follow'>]>, <Text Node: '" /> <link rel="'>, <mezzanine.core.templatetags.mezzanine_tags.IfInstalledNode object at 0x7f76312b1ed0>, <Text Node: ' <script type="t'>, <Variable Node: WEBSOCKET_URI>, <Text Node: ''; Globals.lo'>, <IfNode>, <Text Node: '; Globals.ima'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f76311b11d0>, <Text Node: ''; '>, <Block Node: js_globals. Contents: []>, <Text Node: ' </script> '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f76311b1450>, <Text Node: '?v='>, <Variable Node: BUILD_VERSION>, <Text Node: '"> <!--[if lt IE'>, <mezzanine.template.ToEndTagNode object at 0x7f76311b1c50>, <Text Node: '" /> <meta proper'>, <Variable Node: request.META.HTTP_HOST>, <Variable Node: request.get_full_path>, <Text Node: '" /> <meta proper'>, <mezzanine.template.ToEndTagNode object at 0x7f76311b1e10>, <Text Node: '" /> <meta proper'>, <mezzanine.template.ToEndTagNode object at 0x7f76311b1c10>, <Text Node: '" /> <meta proper'>, <Variable Node: settings.SITE_TITLE>, <Text Node: '" /> <meta name='>, <Variable Node: settings.SOCIAL_LINK_TWITTER>, <Text Node: '"> <meta name="tw'>, <mezzanine.template.ToEndTagNode object at 0x7f76311b1b50>, <Text Node: '"> <meta name="tw'>, <mezzanine.template.ToEndTagNode object at 0x7f76311b1790>, <Text Node: '"> <meta name="tw'>, <mezzanine.template.ToEndTagNode object at 0x7f76311b1910>, <Text Node: '"> <meta propert'>, <Variable Node: settings.SOCIAL_LINK_GOOGLEPLUS>, <Text Node: '"/> <meta name="a'>, <Variable Node: settings.SOCIAL_LINK_FACEBOOK>, <Text Node: '", "'>, <Variable Node: settings.SOCIAL_LINK_TWITTER>, <Text Node: '", "'>, <Variable Node: settings.SOCIAL_LINK_GOOGLEPLUS>, <Text Node: '" ] }</script> <'>, <Block Node: extra_head. Contents: []>, <Text Node: ' </head> <body i'>, <Block Node: body_id. Contents: []>, <Text Node: '" class="'>, <Block Node: body_class. Contents: []>, <Text Node: '"> '>, <IfNode>, <Text Node: ' <div id="fb-roo'>, <django.template.defaulttags.URLNode object at 0x7f7631174550>, <Text Node: '">Testes de C?digo Gr?tis'>, <django.template.defaulttags.URLNode object at 0x7f76311741d0>, <Text Node: '" title="Testes de C?digo'>, <django.template.defaulttags.URLNode object at 0x7f7630fe8250>, <Text Node: '" title="Testes de c?digo'>, <django.template.defaulttags.URLNode object at 0x7f7630fe8f50>, <Text Node: '" title="Biblioteca de ma'>, <django.template.defaulttags.URLNode object at 0x7f7631456690>, <Text Node: '" title="Escolas de Condu'>, <django.template.defaulttags.URLNode object at 0x7f7631456110>, <Text Node: '" title="O blog de Testes'>, <IfNode>, <Text Node: ' '>, <Block Node: header. Contents: [<Text Node: ' <header id="'>, <django.template.defaulttags.URLNode object at 0x7f7630d4d290>, <Text Node: '" title="Testes de C?digo'>]>, <Text Node: ' '>, <mezzanine.template.ToEndTagNode object at 0x7f7630d4d550>, <Text Node: ' '>, <Block Node: main. Contents: []>, <Text Node: ' <footer id="foo'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f7630d4d3d0>, <Text Node: '" /> '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f7630d4ded0>, <Text Node: '" /> '>, <django.template.defaulttags.NowNode object at 0x7f7630d4dc90>, <Text Node: '<br> '>, <Variable Node: settings.SOCIAL_LINK_TWITTER>, <Text Node: '">@testesdecodigo</a> '>, <Variable Node: settings.SOCIAL_LINK_FACEBOOK>, <Text Node: '" target="_blank" rel="no'>, <Variable Node: settings.SOCIAL_LINK_TWITTER>, <Text Node: '" target="_blank" rel="no'>, <django.template.defaulttags.SpacelessNode object at 0x7f7630fe8b90>, <Text Node: ' <div id="outdate'>] |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/debug.py
in render_node
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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Block Node: main. Contents: []> |
self | [<Text Node: '<!doctype html> <html lan'>, <Variable Node: LANGUAGE_CODE>, <Text Node: '"'>, <IfNode>, <Text Node: '> '>, <django.template.defaulttags.LoadNode object at 0x7f7630cb3bd0>, <Text Node: ' <head> '>, <main.templatetags.kwacros.DefineMacroNode object at 0x7f7630fe6e10>, <Text Node: ' '>, <main.templatetags.kwacros.DefineMacroNode object at 0x7f7630fe6b10>, <Text Node: ' '>, <main.templatetags.kwacros.DefineMacroNode object at 0x7f7630fe6c50>, <Text Node: ' <meta http-equi'>, <mezzanine.template.ToEndTagNode object at 0x7f7630fe6bd0>, <Text Node: '</title> <meta na'>, <mezzanine.template.ToEndTagNode object at 0x7f7630fe6e90>, <Text Node: '"> <meta name="ke'>, <mezzanine.template.ToEndTagNode object at 0x7f7630fe6f10>, <Text Node: '"> <meta name="ro'>, <Block Node: meta_robots. Contents: [<Text Node: 'index,follow'>]>, <Text Node: '" /> <link rel="'>, <mezzanine.core.templatetags.mezzanine_tags.IfInstalledNode object at 0x7f76312b1ed0>, <Text Node: ' <script type="t'>, <Variable Node: WEBSOCKET_URI>, <Text Node: ''; Globals.lo'>, <IfNode>, <Text Node: '; Globals.ima'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f76311b11d0>, <Text Node: ''; '>, <Block Node: js_globals. Contents: []>, <Text Node: ' </script> '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f76311b1450>, <Text Node: '?v='>, <Variable Node: BUILD_VERSION>, <Text Node: '"> <!--[if lt IE'>, <mezzanine.template.ToEndTagNode object at 0x7f76311b1c50>, <Text Node: '" /> <meta proper'>, <Variable Node: request.META.HTTP_HOST>, <Variable Node: request.get_full_path>, <Text Node: '" /> <meta proper'>, <mezzanine.template.ToEndTagNode object at 0x7f76311b1e10>, <Text Node: '" /> <meta proper'>, <mezzanine.template.ToEndTagNode object at 0x7f76311b1c10>, <Text Node: '" /> <meta proper'>, <Variable Node: settings.SITE_TITLE>, <Text Node: '" /> <meta name='>, <Variable Node: settings.SOCIAL_LINK_TWITTER>, <Text Node: '"> <meta name="tw'>, <mezzanine.template.ToEndTagNode object at 0x7f76311b1b50>, <Text Node: '"> <meta name="tw'>, <mezzanine.template.ToEndTagNode object at 0x7f76311b1790>, <Text Node: '"> <meta name="tw'>, <mezzanine.template.ToEndTagNode object at 0x7f76311b1910>, <Text Node: '"> <meta propert'>, <Variable Node: settings.SOCIAL_LINK_GOOGLEPLUS>, <Text Node: '"/> <meta name="a'>, <Variable Node: settings.SOCIAL_LINK_FACEBOOK>, <Text Node: '", "'>, <Variable Node: settings.SOCIAL_LINK_TWITTER>, <Text Node: '", "'>, <Variable Node: settings.SOCIAL_LINK_GOOGLEPLUS>, <Text Node: '" ] }</script> <'>, <Block Node: extra_head. Contents: []>, <Text Node: ' </head> <body i'>, <Block Node: body_id. Contents: []>, <Text Node: '" class="'>, <Block Node: body_class. Contents: []>, <Text Node: '"> '>, <IfNode>, <Text Node: ' <div id="fb-roo'>, <django.template.defaulttags.URLNode object at 0x7f7631174550>, <Text Node: '">Testes de C?digo Gr?tis'>, <django.template.defaulttags.URLNode object at 0x7f76311741d0>, <Text Node: '" title="Testes de C?digo'>, <django.template.defaulttags.URLNode object at 0x7f7630fe8250>, <Text Node: '" title="Testes de c?digo'>, <django.template.defaulttags.URLNode object at 0x7f7630fe8f50>, <Text Node: '" title="Biblioteca de ma'>, <django.template.defaulttags.URLNode object at 0x7f7631456690>, <Text Node: '" title="Escolas de Condu'>, <django.template.defaulttags.URLNode object at 0x7f7631456110>, <Text Node: '" title="O blog de Testes'>, <IfNode>, <Text Node: ' '>, <Block Node: header. Contents: [<Text Node: ' <header id="'>, <django.template.defaulttags.URLNode object at 0x7f7630d4d290>, <Text Node: '" title="Testes de C?digo'>]>, <Text Node: ' '>, <mezzanine.template.ToEndTagNode object at 0x7f7630d4d550>, <Text Node: ' '>, <Block Node: main. Contents: []>, <Text Node: ' <footer id="foo'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f7630d4d3d0>, <Text Node: '" /> '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f7630d4ded0>, <Text Node: '" /> '>, <django.template.defaulttags.NowNode object at 0x7f7630d4dc90>, <Text Node: '<br> '>, <Variable Node: settings.SOCIAL_LINK_TWITTER>, <Text Node: '">@testesdecodigo</a> '>, <Variable Node: settings.SOCIAL_LINK_FACEBOOK>, <Text Node: '" target="_blank" rel="no'>, <Variable Node: settings.SOCIAL_LINK_TWITTER>, <Text Node: '" target="_blank" rel="no'>, <django.template.defaulttags.SpacelessNode object at 0x7f7630fe8b90>, <Text Node: ' <div id="outdate'>] |
e | AttributeError("'Context' object has no attribute 'template'",) |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
render_context = self.context.render_context
Variable | Value |
---|---|
push | <Block Node: main. Contents: [<Text Node: ' <div class="containe'>, <Block Node: content. Contents: []>, <Text Node: ' </div> '>, <Block Node: sidebar_banner. Contents: [<Text Node: ' <div'>]>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7f7630cb3910>, <Text Node: ' '>, <Block Node: sidebar. Contents: []>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7f7630cb3b50>, <Text Node: ' </div> '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f7630d2dc90> |
block | <Block Node: main. Contents: [<Text Node: ' <div class="containe'>, <Block Node: content. Contents: []>, <Text Node: ' </div> '>, <Block Node: sidebar_banner. Contents: [<Text Node: ' <div'>]>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7f7630cb3910>, <Text Node: ' '>, <Block Node: sidebar. Contents: []>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7f7630cb3b50>, <Text Node: ' </div> '>]> |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
self | <Block Node: main. Contents: []> |
/home/tcg/website/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Block Node: content. Contents: []> |
bit | u'\n <div class="container container-sidebar">\n <div class="row">\n <div class="col-md-8" id="page-container">\n ' |
bits | [u'\n <div class="container container-sidebar">\n <div class="row">\n <div class="col-md-8" id="page-container">\n '] |
self | [<Text Node: ' <div class="containe'>, <Block Node: content. Contents: []>, <Text Node: ' </div> '>, <Block Node: sidebar_banner. Contents: [<Text Node: ' <div'>]>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7f7630cb3910>, <Text Node: ' '>, <Block Node: sidebar. Contents: []>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7f7630cb3b50>, <Text Node: ' </div> '>] |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/debug.py
in render_node
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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Block Node: content. Contents: []> |
self | [<Text Node: ' <div class="containe'>, <Block Node: content. Contents: []>, <Text Node: ' </div> '>, <Block Node: sidebar_banner. Contents: [<Text Node: ' <div'>]>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7f7630cb3910>, <Text Node: ' '>, <Block Node: sidebar. Contents: []>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7f7630cb3b50>, <Text Node: ' </div> '>] |
e | AttributeError("'Context' object has no attribute 'template'",) |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
render_context = self.context.render_context
Variable | Value |
---|---|
push | <Block Node: content. Contents: [<Text Node: ' <div class="categoria-t'>, <django.template.defaulttags.CommentNode object at 0x7f7630d7a950>, <Text Node: ' <img alt="'>, <Variable Node: categoria>, <Text Node: '" alt="'>, <Variable Node: pergunta.pergunta>, <Text Node: '" src="'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f76315b2150>, <Variable Node: categoria_slug>, <Text Node: '.svg" class="categoria-im'>, <Variable Node: pergunta.tema.titulo>, <Text Node: '</h1> </div> <div id="t'>, <Variable Node: pergunta.pergunta>, <Text Node: '" src="'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f76312cb250>, <Text Node: '"> </div> <div c'>, <Variable Node: pergunta.pergunta>, <Text Node: '</h2> </div> </div'>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </div> <'>, <IfNode>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7f7630cb32d0>, <Text Node: ' '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f7630d2dc90> |
block | <Block Node: content. Contents: [<Text Node: ' <div class="categoria-t'>, <django.template.defaulttags.CommentNode object at 0x7f7630d7a950>, <Text Node: ' <img alt="'>, <Variable Node: categoria>, <Text Node: '" alt="'>, <Variable Node: pergunta.pergunta>, <Text Node: '" src="'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f76315b2150>, <Variable Node: categoria_slug>, <Text Node: '.svg" class="categoria-im'>, <Variable Node: pergunta.tema.titulo>, <Text Node: '</h1> </div> <div id="t'>, <Variable Node: pergunta.pergunta>, <Text Node: '" src="'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f76312cb250>, <Text Node: '"> </div> <div c'>, <Variable Node: pergunta.pergunta>, <Text Node: '</h2> </div> </div'>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </div> <'>, <IfNode>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7f7630cb32d0>, <Text Node: ' '>]> |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
self | <Block Node: content. Contents: []> |
/home/tcg/website/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <django.template.loader_tags.IncludeNode object at 0x7f7630cb32d0> |
bit | u'\n\n\t' |
bits | [u'\n\t<div class="categoria-title">\n\t\t', u'', u'\n\t\t<img alt="', u'Categoria B', u'" alt="', u'Neste local posso:', u'" src="', u'/static/images/cat-', u'b', u'.svg" class="categoria-image">\n\t\t<h1 class="title"><span>Tema</span> ', u'Outras manobras', u'</h1>\n\t</div>\n\t<div id="teste-gui" class="pergunta finished">\n\t\t<div id="teste-area">\n\t\t\t<div class="clearfix">\n\t\t\t\t<div class="teste-photo-container photo-container">\n\t\t\t\t\t<span class="fa fa-search-plus photo-zoom-icon"></span>\n\t\t\t\t\t<img class="teste-photo photo" alt="', u'Neste local posso:', u'" src="', u'/media/perguntas/e1fb89b65e8af216bd8a2a854e85d77ee7e1a567ab7cf5e7f3cea3796cda3ba3.jpg', u'">\n\t\t\t\t</div>\n\n\t\t\t\t<div class="teste-pergunta-container">\n\t\t\t\t\t<h2 class="teste-pergunta">', u'Neste local posso:', u'</h2>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="teste-respostas-container">\n\t\t\t\t<div class="respostas">\n\t\t\t\t\t', u'\n\t\t\t\t\t\t<div class="teste-respostas-resposta correct">\n\t\t\t\t\t\t\t<div class="teste-respostas-resposta-letter">A</div>\n\t\t\t\t\t\t\t<div class="teste-respostas-resposta-text">Mudar de direc\xe7\xe3o \xe0 esquerda.</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t', u'\n\n\t\t\t\t\t', u'\n\t\t\t\t\t\t<div class="teste-respostas-resposta ">\n\t\t\t\t\t\t\t<div class="teste-respostas-resposta-letter">B</div>\n\t\t\t\t\t\t\t<div class="teste-respostas-resposta-text">Mudar de direc\xe7\xe3o ou inverter o sentido de marcha.</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t', u'\n\n\t\t\t\t\t', u'', u'\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\n\t<div class="banner banner-content mb30">\n\t\t<ins class="adsbygoogle"\n\t\t\tstyle="display:block"\n\t\t\tdata-ad-client="ca-pub-2566784795967596"\n\t\t\tdata-ad-slot="6752857465"\n\t\t\tdata-ad-format="auto"></ins>\n\t\t<script>\n\t\t(adsbygoogle = window.adsbygoogle || []).push({});\n\t\t</script>\n\t</div>\n\n\t', u'', u'\n\n\t'] |
self | [<Text Node: ' <div class="categoria-t'>, <django.template.defaulttags.CommentNode object at 0x7f7630d7a950>, <Text Node: ' <img alt="'>, <Variable Node: categoria>, <Text Node: '" alt="'>, <Variable Node: pergunta.pergunta>, <Text Node: '" src="'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f76315b2150>, <Variable Node: categoria_slug>, <Text Node: '.svg" class="categoria-im'>, <Variable Node: pergunta.tema.titulo>, <Text Node: '</h1> </div> <div id="t'>, <Variable Node: pergunta.pergunta>, <Text Node: '" src="'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f76312cb250>, <Text Node: '"> </div> <div c'>, <Variable Node: pergunta.pergunta>, <Text Node: '</h2> </div> </div'>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </div> <'>, <IfNode>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7f7630cb32d0>, <Text Node: ' '>] |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/debug.py
in render_node
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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <django.template.loader_tags.IncludeNode object at 0x7f7630cb32d0> |
self | [<Text Node: ' <div class="categoria-t'>, <django.template.defaulttags.CommentNode object at 0x7f7630d7a950>, <Text Node: ' <img alt="'>, <Variable Node: categoria>, <Text Node: '" alt="'>, <Variable Node: pergunta.pergunta>, <Text Node: '" src="'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f76315b2150>, <Variable Node: categoria_slug>, <Text Node: '.svg" class="categoria-im'>, <Variable Node: pergunta.tema.titulo>, <Text Node: '</h1> </div> <div id="t'>, <Variable Node: pergunta.pergunta>, <Text Node: '" src="'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7f76312cb250>, <Text Node: '"> </div> <div c'>, <Variable Node: pergunta.pergunta>, <Text Node: '</h2> </div> </div'>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </div> <'>, <IfNode>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7f7630cb32d0>, <Text Node: ' '>] |
e | AttributeError("'Context' object has no attribute 'template'",) |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/loader_tags.py
in render
values = {
name: var.resolve(context)
for name, var in six.iteritems(self.extra_context)
}
if self.isolated_context:
return template.render(context.new(values))
with context.push(**values):
return template.render(context)...
except Exception:
if settings.TEMPLATE_DEBUG:
raise
return ''
Variable | Value |
---|---|
self | <django.template.loader_tags.IncludeNode object at 0x7f7630cb32d0> |
values | {u'pergunta': <Pergunta: Pergunta object>} |
template | <django.template.base.Template object at 0x7f763118b7d0> |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/base.py
in render
def _render(self, context):
return self.nodelist.render(context)
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)...
finally:
context.render_context.pop()
def compile_string(template_string, origin):
"Compiles template_string into NodeList ready for rendering"
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7f763118b7d0> |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/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 0x7f763118b7d0> |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <mezzanine.template.InclusionTagNode object at 0x7f763118bf90> |
bit | u'\n\n' |
bits | [u'', u'\n\n'] |
self | [<django.template.defaulttags.LoadNode object at 0x7f763118b990>, <Text Node: ' '>, <mezzanine.template.InclusionTagNode object at 0x7f763118bf90>, <Text Node: ' '>] |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/debug.py
in render_node
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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <mezzanine.template.InclusionTagNode object at 0x7f763118bf90> |
self | [<django.template.defaulttags.LoadNode object at 0x7f763118b990>, <Text Node: ' '>, <mezzanine.template.InclusionTagNode object at 0x7f763118bf90>, <Text Node: ' '>] |
e | AttributeError("'Context' object has no attribute 'template'",) |
context | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/mezzanine/template/__init__.py
in render
parts = [template.Variable(part).resolve(context)
for part in token.split_contents()[1:]]
if takes_context:
parts.insert(0, context)
result = tag_func(*parts)
autoescape = context.autoescape
context = context_class(result, autoescape=autoescape)
return self.template.render(context)...
return InclusionTagNode()
return self.tag(tag_wrapper)
return tag_decorator
Variable | Value |
---|---|
takes_context | True |
autoescape | True |
name | u'generic/includes/comments.html' |
self | <mezzanine.template.InclusionTagNode object at 0x7f763118bf90> |
request | "<WSGIRequest\npath:/testes/pergunta/m7mb3/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '',\n 'CONTENT_TYPE': '',\n u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1',\n 'DOCUMENT_ROOT': '/usr/share/nginx/html',\n 'HTTPS': 'on',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'www.testesdecodigogratis.com',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/testes/pergunta/m7mb3/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '44.222.92.134',\n 'REMOTE_PORT': '39830',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'https',\n 'REQUEST_URI': '/testes/pergunta/m7mb3/',\n u'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'www.testesdecodigogratis.com',\n 'SERVER_PORT': '443',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'uwsgi.node': 'apollo',\n 'uwsgi.version': '2.0.11.1',\n 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>" |
ts | [u'generic/includes/comments.html'] |
token | <django.template.base.Token object at 0x7f763118b150> |
parts | [[{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], <Pergunta: Pergunta object>] |
t | <django.template.base.Template object at 0x7f763118be90> |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}] |
context_class | <class 'django.template.context.Context'> |
part | u'pergunta' |
tag_func | <function comments_for at 0x7f7631469c08> |
result | [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/base.py
in render
def _render(self, context):
return self.nodelist.render(context)
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)...
finally:
context.render_context.pop()
def compile_string(template_string, origin):
"Compiles template_string into NodeList ready for rendering"
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7f763118be90> |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}] |
/home/tcg/website/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 0x7f763118be90> |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <mezzanine.template.InclusionTagNode object at 0x7f7630cf5610> |
bit | u'</legend></fieldset>\n\n ' |
bits | [u'', u'\n\n<div id="comments">\n <fieldset class="center-title"><legend>', u'Coment\xe1rios', u'</legend></fieldset>\n\n '] |
self | [<django.template.defaulttags.LoadNode object at 0x7f7630cf5750>, <Text Node: ' <div id="comments"> '>, <django.templatetags.i18n.TranslateNode object at 0x7f763118b6d0>, <Text Node: '</legend></fieldset> '>, <mezzanine.template.InclusionTagNode object at 0x7f7630cf5610>, <Text Node: ' <div class="add-com'>, <django.templatetags.i18n.TranslateNode object at 0x7f763118b0d0>, <Text Node: '</h3> '>, <django.template.loader_tags.IncludeNode object at 0x7f7630cf5190>, <Text Node: ' </div> </div> '>] |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/debug.py
in render_node
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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <mezzanine.template.InclusionTagNode object at 0x7f7630cf5610> |
self | [<django.template.defaulttags.LoadNode object at 0x7f7630cf5750>, <Text Node: ' <div id="comments"> '>, <django.templatetags.i18n.TranslateNode object at 0x7f763118b6d0>, <Text Node: '</legend></fieldset> '>, <mezzanine.template.InclusionTagNode object at 0x7f7630cf5610>, <Text Node: ' <div class="add-com'>, <django.templatetags.i18n.TranslateNode object at 0x7f763118b0d0>, <Text Node: '</h3> '>, <django.template.loader_tags.IncludeNode object at 0x7f7630cf5190>, <Text Node: ' </div> </div> '>] |
e | AttributeError("'Context' object has no attribute 'template'",) |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}] |
/home/tcg/website/lib/python2.7/site-packages/mezzanine/template/__init__.py
in render
parts = [template.Variable(part).resolve(context)
for part in token.split_contents()[1:]]
if takes_context:
parts.insert(0, context)
result = tag_func(*parts)
autoescape = context.autoescape
context = context_class(result, autoescape=autoescape)
return self.template.render(context)...
return InclusionTagNode()
return self.tag(tag_wrapper)
return tag_decorator
Variable | Value |
---|---|
takes_context | True |
autoescape | True |
name | u'generic/includes/comment.html' |
self | <mezzanine.template.InclusionTagNode object at 0x7f7630cf5610> |
request | "<WSGIRequest\npath:/testes/pergunta/m7mb3/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '',\n 'CONTENT_TYPE': '',\n u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1',\n 'DOCUMENT_ROOT': '/usr/share/nginx/html',\n 'HTTPS': 'on',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'www.testesdecodigogratis.com',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/testes/pergunta/m7mb3/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '44.222.92.134',\n 'REMOTE_PORT': '39830',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'https',\n 'REQUEST_URI': '/testes/pergunta/m7mb3/',\n u'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'www.testesdecodigogratis.com',\n 'SERVER_PORT': '443',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'uwsgi.node': 'apollo',\n 'uwsgi.version': '2.0.11.1',\n 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>" |
ts | [u'generic/includes/comment.html'] |
token | <django.template.base.Token object at 0x7f763118b810> |
parts | [[{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}], <Pergunta: Pergunta object>] |
t | <django.template.base.Template object at 0x7f7630cf50d0> |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}]] |
context_class | <class 'django.template.context.Context'> |
part | u'object_for_comments' |
tag_func | <function comment_thread at 0x7f7631469cf8> |
result | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}] |
/home/tcg/website/lib/python2.7/site-packages/django/template/base.py
in render
def _render(self, context):
return self.nodelist.render(context)
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)...
finally:
context.render_context.pop()
def compile_string(template_string, origin):
"Compiles template_string into NodeList ready for rendering"
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7f7630cf50d0> |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}]] |
/home/tcg/website/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 0x7f7630cf50d0> |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}]] |
/home/tcg/website/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <For Node: for comment in comments_for_thread, tail_len: 7> |
bit | u'\n\n' |
bits | [u'', u'\n\n'] |
self | [<django.template.defaulttags.LoadNode object at 0x7f7630c8c710>, <Text Node: ' '>, <For Node: for comment in comments_for_thread, tail_len: 7>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>] |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}]] |
/home/tcg/website/lib/python2.7/site-packages/django/template/debug.py
in render_node
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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <For Node: for comment in comments_for_thread, tail_len: 7> |
self | [<django.template.defaulttags.LoadNode object at 0x7f7630c8c710>, <Text Node: ' '>, <For Node: for comment in comments_for_thread, tail_len: 7>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>] |
e | AttributeError("'Context' object has no attribute 'template'",) |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}]] |
/home/tcg/website/lib/python2.7/site-packages/django/template/defaulttags.py
in render
else:
context[self.loopvars[0]] = item
# In TEMPLATE_DEBUG mode provide source of the node which
# actually raised the exception
if settings.TEMPLATE_DEBUG:
for node in self.nodelist_loop:
try:
nodelist.append(node.render(context))...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
else:
for node in self.nodelist_loop:
Variable | Value |
---|---|
node | <IfNode> |
len_values | 2 |
pop_context | False |
e | AttributeError("'Context' object has no attribute 'template'",) |
item | <ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...> |
loop_dict | {u'counter': 1, u'counter0': 0, u'first': True, u'last': False, u'parentloop': {}, u'revcounter': 2, u'revcounter0': 1} |
self | <For Node: for comment in comments_for_thread, tail_len: 7> |
parentloop | {} |
i | 0 |
values | [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>] |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}]] |
nodelist | [u'\n <div id="comment-', u'8156', u'" class="comment media', u'', u'">\n '] |
unpack | False |
/home/tcg/website/lib/python2.7/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class RegroupNode(Node):
def __init__(self, target, expression, var_name):
Variable | Value |
---|---|
self | <IfNode> |
match | True |
nodelist | [<Text Node: ' <div class="'>, <IfNode>, <Text Node: ' </div> '>, <Variable Node: comment.user_name>, <Text Node: '</span></h5> '>, <Variable Node: comment.submit_date|date:"c">, <Text Node: '">'>, <django.templatetags.i18n.BlockTranslateNode object at 0x7f7631210e90>, <Text Node: '</time></div> '>, <IfNode>, <Text Node: ' </articl'>, <mezzanine.template.InclusionTagNode object at 0x7f7630c8cdd0>, <Text Node: ' </div> '>] |
condition | (not (literal <django.template.base.FilterExpression object at 0x7f7630c8c350>)) |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}]] |
/home/tcg/website/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <IfNode> |
bit | u'\n <div class="media-left">\n ' |
bits | [u'\n <div class="media-left">\n '] |
self | [<Text Node: ' <div class="'>, <IfNode>, <Text Node: ' </div> '>, <Variable Node: comment.user_name>, <Text Node: '</span></h5> '>, <Variable Node: comment.submit_date|date:"c">, <Text Node: '">'>, <django.templatetags.i18n.BlockTranslateNode object at 0x7f7631210e90>, <Text Node: '</time></div> '>, <IfNode>, <Text Node: ' </articl'>, <mezzanine.template.InclusionTagNode object at 0x7f7630c8cdd0>, <Text Node: ' </div> '>] |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}]] |
/home/tcg/website/lib/python2.7/site-packages/django/template/debug.py
in render_node
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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <IfNode> |
self | [<Text Node: ' <div class="'>, <IfNode>, <Text Node: ' </div> '>, <Variable Node: comment.user_name>, <Text Node: '</span></h5> '>, <Variable Node: comment.submit_date|date:"c">, <Text Node: '">'>, <django.templatetags.i18n.BlockTranslateNode object at 0x7f7631210e90>, <Text Node: '</time></div> '>, <IfNode>, <Text Node: ' </articl'>, <mezzanine.template.InclusionTagNode object at 0x7f7630c8cdd0>, <Text Node: ' </div> '>] |
e | AttributeError("'Context' object has no attribute 'template'",) |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}]] |
/home/tcg/website/lib/python2.7/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class RegroupNode(Node):
def __init__(self, target, expression, var_name):
Variable | Value |
---|---|
self | <IfNode> |
match | True |
nodelist | [<Text Node: ' '>, <IfNode>, <Text Node: ' '>, <ThumbnailNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>] |
condition | None |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}]] |
/home/tcg/website/lib/python2.7/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <ThumbnailNode> |
bit | u'\n ' |
bits | [u'\n ', u'', u'\n '] |
self | [<Text Node: ' '>, <IfNode>, <Text Node: ' '>, <ThumbnailNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>] |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}]] |
/home/tcg/website/lib/python2.7/site-packages/django/template/debug.py
in render_node
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 as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <ThumbnailNode> |
self | [<Text Node: ' '>, <IfNode>, <Text Node: ' '>, <ThumbnailNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>] |
e | AttributeError("'Context' object has no attribute 'template'",) |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}]] |
/home/tcg/website/lib/python2.7/site-packages/sorl/thumbnail/templatetags/thumbnail.py
in render
return self._render(context)
except Exception:
if sorl_settings.THUMBNAIL_DEBUG:
raise
error_message = 'Thumbnail tag failed'
if context.template.engine.debug:...
try:
error_message_template = (
"Thumbnail tag failed "
"in template {template_name}, error at: "
"{tag_text}"
)
Variable | Value |
---|---|
self | <ThumbnailNode> |
error_message | u'Thumbnail tag failed' |
context | [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, [{'False': False, 'None': None, 'True': True}, {'WS4REDIS_HEARTBEAT': 'null', u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f7631175150>, u'settings': {u'GOOGLE_ANALYTICS_ID': 'UA-17387647-1', u'LOGIN_URL': u'/conta/login/', u'ADMIN_MENU_COLLAPSED': False, u'DEV_SERVER': False, u'LOGOUT_URL': '/accounts/logout/', u'COMMENTS_NUM_LATEST': 5, 'GOOGLE_MAPS_APIKEY': b'AIzaSyCyJRfieOTdKl7yCLGUfTG4fdrScUzuqiA', 'SOCIAL_LINK_FACEBOOK': b'https://facebook.com/TestesDeCodigo/', u'COMMENTS_USE_RATINGS': True, u'SITE_TAGLINE': 'Tirar a carta nunca foi t\xe3o f\xe1cil', 'SOCIAL_LINK_TWITTER': b'https://twitter.com/TestesDeCodigo/', u'USE_MODELTRANSLATION': False, u'BITLY_ACCESS_TOKEN': '3ac3b7ee18f02cee6cb1d60c200bc7581c83dae3', u'GRAPPELLI_INSTALLED': True, u'BLOG_USE_FEATURED_IMAGE': True, u'PAGES_MENU_SHOW_ALL': {u'PAGES_MENU_SHOW_ALL': True}, u'JQUERY_FILENAME': u'jquery-1.7.1.min.js', u'JQUERY_UI_FILENAME': u'jquery-ui-1.9.1.custom.min.js', u'SITE_TITLE': 'Testes de C\xf3digo Gr\xe1tis', u'USE_L10N': False, u'COMMENTS_DISQUS_API_PUBLIC_KEY': '', u'COMMENTS_DISQUS_API_SECRET_KEY': '', u'FORMS_USE_HTML5': False, u'ACCOUNTS_VERIFICATION_REQUIRED': u'', 'SOCIAL_LINK_GOOGLEPLUS': b'https://plus.google.com/+Testesdecodigogratiscom/', u'COMMENTS_DISQUS_SHORTNAME': '', u'ACCOUNTS_APPROVAL_REQUIRED': u'', u'MEZZANINE_ADMIN_PREFIX': u'grappelli/'}, 'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f76313b6290>, u'request': <WSGIRequest path:/testes/pergunta/m7mb3/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'www.testesdecodigogratis.com', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/testes/pergunta/m7mb3/', 'QUERY_STRING': '', 'REMOTE_ADDR': '44.222.92.134', 'REMOTE_PORT': '39830', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/testes/pergunta/m7mb3/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'www.testesdecodigogratis.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'apollo', 'uwsgi.version': '2.0.11.1', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f7630edcd20>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>, 'WEBSOCKET_URI': u'wss://www.testesdecodigogratis.com/ws/', 'messages': <django.contrib.messages.storage.cookie.CookieStorage object at 0x7f7630e13cd0>, u'TIME_ZONE': 'Europe/Lisbon', u'STATIC_URL': u'/static/', u'LANGUAGES': ((u'pt', u'Portuguese'),), 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f7630eaed90>>, u'LANGUAGE_CODE': u'pt', 'BUILD_VERSION': '08647f6', 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'SUCCESS': 25, 'ERROR': 40}, u'LANGUAGE_BIDI': False, u'MEDIA_URL': u'/media/'}], {u'replied_to': 0, u'no_comments': False, u'comments_for_thread': [<ThreadedComment: joana lima: não entendi , tem lá o sinal de proibição de virar...>, <ThreadedComment: Fred Ferreirinho: Mas como é que é possível mudar de direção à esque...>]}]] |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
wsgi.multiprocess | True |
SCRIPT_NAME | u'' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/testes/pergunta/m7mb3/' |
SERVER_PROTOCOL | 'HTTP/1.1' |
QUERY_STRING | '' |
CONTENT_LENGTH | '' |
HTTP_USER_AGENT | 'claudebot' |
SERVER_NAME | 'www.testesdecodigogratis.com' |
REMOTE_ADDR | '44.222.92.134' |
wsgi.url_scheme | 'https' |
SERVER_PORT | '443' |
uwsgi.node | 'apollo' |
DOCUMENT_ROOT | '/usr/share/nginx/html' |
wsgi.input | <uwsgi._Input object at 0x7f7630edcd20> |
HTTP_HOST | 'www.testesdecodigogratis.com' |
HTTPS | 'on' |
wsgi.multithread | False |
REQUEST_URI | '/testes/pergunta/m7mb3/' |
HTTP_ACCEPT | '*/*' |
wsgi.version | (1, 0) |
wsgi.run_once | False |
wsgi.errors | <open file 'wsgi_errors', mode 'w' at 0x7f7632a189c0> |
REMOTE_PORT | '39830' |
REQUEST_SCHEME | 'https' |
uwsgi.version | '2.0.11.1' |
CONTENT_TYPE | '' |
wsgi.file_wrapper | '' |
CSRF_COOKIE | u'RMMEzEcuuourxJ4zc8xOfwh04lJNaXU1' |
tcg.settings
Setting | Value |
---|---|
TESTING | False |
DEBUG_TOOLBAR_PANELS | [u'debug_toolbar.panels.versions.VersionsPanel', u'debug_toolbar.panels.timer.TimerPanel', u'debug_toolbar.panels.settings.SettingsPanel', u'debug_toolbar.panels.headers.HeadersPanel', u'debug_toolbar.panels.request.RequestPanel', u'debug_toolbar.panels.sql.SQLPanel', u'debug_toolbar.panels.staticfiles.StaticFilesPanel', u'debug_toolbar.panels.templates.TemplatesPanel', u'debug_toolbar.panels.cache.CachePanel', u'debug_toolbar.panels.signals.SignalsPanel', u'debug_toolbar.panels.logging.LoggingPanel', u'debug_toolbar.panels.redirects.RedirectsPanel', u'template_timings_panel.panels.TemplateTimings.TemplateTimings', u'template_profiler_panel.panels.template.TemplateProfilerPanel'] |
SERVER_EMAIL | 'root@localhost' |
ACCOUNT_USER_DISPLAY | <function <lambda> at 0x7f7635918578> |
DEV_SERVER | False |
TIME_ZONE | u'Europe/Lisbon' |
ACCOUNT_AUTHENTICATION_METHOD | u'email' |
CSRF_COOKIE_SECURE | True |
SENDGRID_SANDBOX_MODE_IN_DEBUG | False |
LANGUAGE_CODE | u'pt' |
ROOT_URLCONF | u'tcg.urls' |
MANAGERS | () |
TEST_NON_SERIALIZED_APPS | [] |
DEFAULT_CHARSET | 'utf-8' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
ACCOUNT_EMAIL_REQUIRED | True |
USE_THOUSAND_SEPARATOR | False |
STATICSITEMAPS_ROOT_DIR | u'/home/tcg/website/tcg/static' |
ALLOWED_HOSTS | [u'.testesdecodigogratis.com'] |
MESSAGE_STORAGE | u'django.contrib.messages.storage.cookie.CookieStorage' |
WEBSOCKET_URL | u'/ws/' |
EMAIL_SUBJECT_PREFIX | u'' |
SEND_BROKEN_LINK_EMAILS | False |
STATICFILES_FINDERS | (u'django.contrib.staticfiles.finders.FileSystemFinder', u'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
SESSION_CACHE_ALIAS | 'default' |
DASHBOARD_TAGS | ((u'mezzanine_tags.app_list', u'mezzanine_tags.recent_actions'), (u'comment_tags.recent_comments', u'testemunhos_tags.testemunhos_recentes')) |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
PACKAGE_NAME_GRAPPELLI | u'grappelli_safe' |
ADMIN_FOR | () |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') |
ACCOUNT_CONFIRM_EMAIL_ON_GET | True |
DATABASES | {u'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, u'ENGINE': u'django.db.backends.mysql', u'HOST': u'127.0.0.1', u'NAME': u'tcg', 'OPTIONS': {}, u'PASSWORD': u'********************', u'PORT': u'3306', 'TEST': {'CHARSET': None, u'COLLATION': u'utf8_general_ci', 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': 'UTC', u'USER': u'tcg'}} |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
SLUGIFY | u'lib.utils.unicode_slugify' |
FILE_UPLOAD_PERMISSIONS | 420 |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
TEMPLATE_CONTEXT_PROCESSORS | (u'django.contrib.auth.context_processors.auth', u'django.contrib.messages.context_processors.messages', u'django.core.context_processors.debug', u'django.core.context_processors.i18n', u'django.core.context_processors.static', u'django.core.context_processors.media', u'django.core.context_processors.request', u'django.core.context_processors.tz', u'mezzanine.conf.context_processors.settings', u'mezzanine.pages.context_processors.page', u'ws4redis.context_processors.default', u'main.context_processors.project_context') |
DEFAULT_CONTENT_TYPE | 'text/html' |
SOCIALACCOUNT_PROVIDERS | {u'facebook': {u'LOCALE_FUNC': <function <lambda> at 0x7f76359185f0>, u'METHOD': u'oauth2', u'SCOPE': [u'email', u'user_location'], u'VERIFIED_EMAIL': True, u'VERSION': u'v2.2'}} |
RAYGUN_API_ENABLED | u'********************' |
ACCOUNT_EMAIL_VERIFICATION | u'mandatory' |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | [] |
DEFAULT_TABLESPACE | '' |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {u'default': {u'BACKEND': u'django.core.cache.backends.dummy.DummyCache'}} |
SU_REDIRECT_LOGIN | u'/conta/testes/' |
RAYGUN_REPORT_ON_EXCEPTHOOK | True |
SESSION_COOKIE_PATH | '/' |
ACCOUNT_ADAPTER | u'utilizadores.adapter.AccountAdapter' |
SILENCED_SYSTEM_CHECKS | [] |
MIDDLEWARE_CLASSES | (u'django.middleware.common.BrokenLinkEmailsMiddleware', u'htmlmin.middleware.HtmlMinifyMiddleware', u'django.contrib.sessions.middleware.SessionMiddleware', u'django.middleware.locale.LocaleMiddleware', u'django.contrib.auth.middleware.AuthenticationMiddleware', u'django.middleware.common.CommonMiddleware', u'django.middleware.csrf.CsrfViewMiddleware', u'django.contrib.messages.middleware.MessageMiddleware', u'mezzanine.core.request.CurrentRequestMiddleware', u'mezzanine.core.middleware.RedirectFallbackMiddleware', u'mezzanine.core.middleware.TemplateForDeviceMiddleware', u'mezzanine.core.middleware.TemplateForHostMiddleware', u'mezzanine.core.middleware.AdminLoginInterfaceSelectorMiddleware', u'mezzanine.core.middleware.SitePermissionMiddleware', u'mezzanine.pages.middleware.PageMiddleware', u'htmlmin.middleware.MarkRequestMiddleware', u'utilizadores.middleware.SetLastVisitMiddleware') |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
FILE_UPLOAD_TEMP_DIR | None |
ACCOUNT_SIGNUP_FORM_CLASS | u'utilizadores.forms.SignupForm' |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'logging.config.dictConfig' |
TEMPLATE_LOADERS | (u'django.template.loaders.filesystem.Loader', u'django.template.loaders.app_directories.Loader') |
WSGI_APPLICATION | None |
TEMPLATE_DEBUG | True |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
KEEP_COMMENTS_ON_MINIFYING | False |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | True |
PROJECT_DIRNAME | 'tcg' |
USE_SOUTH | True |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
COMMENTS_APP | u'mezzanine.generic' |
INTERNAL_IPS | (u'127.0.0.1',) |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | (u'mezzanine.boot', u'django.contrib.auth', u'django.contrib.contenttypes', u'django.contrib.redirects', u'django.contrib.sessions', u'django.contrib.sites', u'django.contrib.sitemaps', u'django.contrib.humanize', u'rest_framework', u'rest_framework.authtoken', u'ajax_select', u'main', u'testemunhos', u'testes', u'escolas', u'material_estudo', u'api', u'theme', u'mezzanine_blocks', u'sorl.thumbnail', u'django_extensions', u'mptt', u'django_su', u'static_sitemaps', u'adminsortable2', u'ws4redis', u'allauth', u'allauth.account', u'allauth.socialaccount', u'allauth.socialaccount.providers.facebook', u'utilizadores', u'mezzanine.conf', u'mezzanine.core', u'mezzanine.generic', u'mezzanine.blog', u'mezzanine.forms', u'mezzanine.pages', u'filebrowser_safe', u'grappelli_safe', u'django.contrib.admin', u'django.contrib.staticfiles', u'django_comments') |
LANGUAGES | ((u'pt', u'Portuguese'),) |
USE_L10N | False |
COMMENTS_ALLOW_PROFANITIES | False |
STATIC_ROOT | u'/home/tcg/website/tcg/static' |
STATICFILES_DIRS | () |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
LANGUAGE_COOKIE_AGE | None |
RAYGUN_API_KEY | u'********************' |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DISPOSABLE_EMAIL_DOMAINS | u'/home/tcg/website/tcg/disposable-email-domains.txt' |
MEDIA_URL | u'/media/' |
MONTH_DAY_FORMAT | 'F j' |
LOGIN_URL | u'/conta/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
TIME_FORMAT | 'P' |
BUILD_VERSION | '08647f6' |
AUTH_USER_MODEL | 'auth.User' |
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 | (u'mezzanine.core.auth_backends.MezzanineBackend', u'allauth.account.auth_backends.AuthenticationBackend', u'django_su.backends.SuBackend') |
EMAIL_HOST_PASSWORD | u'********************' |
PACKAGE_NAME_FILEBROWSER | u'filebrowser_safe' |
AUTH_PROFILE_MODULE | u'utilizadores.UserProfile' |
LANGUAGE_COOKIE_DOMAIN | None |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
NUMBER_GROUPING | 0 |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SOCIALACCOUNT_EMAIL_REQUIRED | True |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
GRAPPELLI_INSTALLED | True |
ABSOLUTE_URL_OVERRIDES | {} |
PROJECT_ROOT | '/home/tcg/website/tcg' |
ACCOUNT_LOGOUT_ON_GET | True |
DECIMAL_SEPARATOR | '.' |
IGNORABLE_404_URLS | () |
ACCOUNT_FORMS | {u'login': u'utilizadores.forms.CustomLoginForm'} |
LOCALE_PATHS | [u'/home/tcg/website/tcg/locale'] |
TEMPLATE_STRING_IF_INVALID | '' |
SOCIALACCOUNT_QUERY_EMAIL | True |
SESSION_FILE_PATH | None |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
LOGIN_REDIRECT_URL | u'/conta/testes/' |
FIXTURE_DIRS | () |
EMAIL_HOST | 'localhost' |
DATE_FORMAT | 'N j, Y' |
SOCIALACCOUNT_AUTO_SIGNUP | False |
OPTIONAL_APPS | (u'django_extensions', u'filebrowser_safe', u'grappelli_safe') |
MEDIA_ROOT | u'/home/tcg/website/tcg/media' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | () |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | u'Testes de C\xf3digo Gr\xe1tis <geral@testesdecodigogratis.com>' |
REST_FRAMEWORK | {u'DEFAULT_AUTHENTICATION_CLASSES': (u'rest_framework.authentication.BasicAuthentication', u'rest_framework.authentication.SessionAuthentication', u'rest_framework.authentication.TokenAuthentication'), u'DEFAULT_PAGINATION_CLASS': u'rest_framework.pagination.PageNumberPagination', u'PAGE_SIZE': 20} |
EXCLUDE_FROM_MINIFYING | (u'^rating/', u'^gerir/', u'^admin_keywords_submit/', u'^add/', u'^adminsortable2_update/', u'^ajax_select/') |
STATICSITEMAPS_ROOT_SITEMAP | u'main.sitemaps.sitemaps' |
HTML_MINIFY | True |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | (u'/home/tcg/website/tcg/templates',) |
SITE_ID | 1 |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
SENDGRID_API_KEY | u'********************' |
EMAIL_PORT | 25 |
WS4REDIS_CONNECTION | {u'host': u'localhost'} |
LOGGING | {} |
SHORT_DATE_FORMAT | 'm/d/Y' |
TEST_RUNNER | u'django.test.runner.DiscoverRunner' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
SECURE_SSL_REDIRECT | True |
THUMBNAIL_FORMAT | u'PNG' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | u'sendgrid_backend.SendgridBackend' |
BLOG_USE_FEATURED_IMAGE | True |
EMAIL_USE_SSL | False |
SESSION_COOKIE_HTTPONLY | True |
MIGRATION_MODULES | {} |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | u'tcg.settings' |
NEVERCACHE_KEY | u'********************' |
USE_ETAGS | False |
LANGUAGES_BIDI | ('he', 'ar', 'fa', 'ur') |
DEFAULT_INDEX_TABLESPACE | '' |
CSRF_COOKIE_AGE | 31449600 |
STATIC_URL | u'/static/' |
ACCOUNT_USERNAME_REQUIRED | False |
ADMIN_MENU_ORDER | ((u'Content', ((u'Blog', u'blog.BlogPost'), (u'Escolas', u'escolas.Escola'), (u'Mensagens para Escolas', u'escolas.Mensagem'), (u'Testemunhos', u'testemunhos.Testemunho'), (u'Material de Estudo', u'material_estudo.MaterialEstudo'), (u'Coment\xe1rios', u'generic.ThreadedComment'), (u'P\xe1ginas', u'pages.Page'))), (u'Outro Conte\xfado', (u'mezzanine_blocks.Block', u'mezzanine_blocks.RichBlock', u'mezzanine_blocks.ImageBlock', u'blog.BlogCategory', (u'Categorias Material de Estudo', u'material_estudo.Categoria'), (u'Media Library', u'fb_browse'), u'main.Concelho')), (u'Settings', (u'sites.Site', u'redirects.Redirect', u'conf.Setting')), (u'Users', (u'auth.User', u'auth.Group', u'utilizadores.UserProfile', u'account.EmailConfirmation', u'account.EmailAddress', u'socialaccount.SocialApp', u'socialaccount.SocialToken', u'socialaccount.SocialAccount'))) |
USE_TZ | True |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
PASSWORD_HASHERS | u'********************' |
FABRIC | {u'ADMIN_PASS': u'********************', u'DB_PASS': u'********************', u'DOMAINS': [u'.testesdecodigogratis.com'], u'GUNICORN_PORT': 8000, u'HOSTS': [u'.testesdecodigogratis.com'], u'LOCALE': u'pt_PT.UTF-8', u'NEVERCACHE_KEY': u'********************', u'PROJECT_NAME': u'tcg', u'REPO_URL': u'ssh://bitbucket.org:jrfernandes/tcg.git', u'REQUIREMENTS_PATH': u'requirements.txt', u'SECRET_KEY': u'********************', u'SSH_KEY_PATH': u'********************', u'SSH_USER': u'tcg', u'VIRTUALENV_HOME': u'/home/tcg/website'} |
STATICSITEMAPS_URL | u'https://www.testesdecodigogratis.com/static/' |
LANGUAGE_COOKIE_PATH | '/' |
WS4REDIS_ALLOWED_CHANNELS | u'escolas.views.get_allowed_channels' |
CACHE_MIDDLEWARE_SECONDS | 600 |
ACCOUNT_SIGNUP_PASSWORD_VERIFICATION | u'********************' |
CSRF_COOKIE_HTTPONLY | False |
DATETIME_INPUT_FORMATS | ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y') |
APP_VERSION | u'2.1.0' |
EMAIL_HOST_USER | '' |
PROFANITIES_LIST | u'********************' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard 500 page.