Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TemplateSyntaxError at /projects/2/test
- Caught ValueError while rendering: timestamp out of range for platform time_t
- Request Method: GET
- Request URL: http://localhost:8000/projects/2/test
- Django Version: 1.2.3
- Exception Type: TemplateSyntaxError
- Exception Value:
- Caught ValueError while rendering: timestamp out of range for platform time_t
- Exception Location: /usr/local/lib/python2.6/dist-packages/django/core/cache/backends/db.py in _base_set, line 83
- Python Executable: /usr/bin/python2.6
- Python Version: 2.6.6
- Python Path: ['/home/samos/workspace/Samos-IT/samosit', '/home/samos/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev.debug_1.6.3.2010100422/pysrc', '/usr/local/lib/python2.6/dist-packages/psycopg2-2.3.1-py2.6-linux-i686.egg', '/usr/lib/pymodules/python2.6', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/lib/python2.6', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/plat-linux2', '/usr/local/lib/python2.6/dist-packages', '/usr/local/lib/python2.6/dist-packages/virtualenv-1.5.1-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/yolk-0.4.1-py2.6.egg', '/usr/lib/panda3d', '/usr/share/panda3d']
- Server time: Tue, 7 Dec 2010 11:28:56 -0600
- Template error
- In template /home/samos/workspace/Samos-IT/samosit/templates/projects/project_detail.html, error at line 7
- Caught ValueError while rendering: timestamp out of range for platform time_t
- 1 {% extends "page.html" %}
- 2 {% load thumbnail %}
- 3
- 4 {% block metatitle %}{{object.metatitle}}{% endblock %}
- 5 {% block content %}
- 6 <h1 align="center">{{object.title}}</h1>
- 7 {% thumbnail object.image "100x100" crop="center" as im %}
- 8 <img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}">
- 9 {% endthumbnail %}
- 10 <img align="left" src="{{ MEDIA_URL }}{{object.image}}" />
- 11 <div class="project-content">{{object.content|safe}}</div>
- 12 <hr/>
- 13
- 14 {% endblock %}
- 15
- 16 {% block sidebar %}
- 17 <div class="box">
- Traceback Switch to copy-and-paste view
- * /usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py in get_response
- 93. # Apply view middleware
- 94. for middleware_method in self._view_middleware:
- 95. response = middleware_method(request, callback, callback_args, callback_kwargs)
- 96. if response:
- 97. return response
- 98.
- 99. try:
- 100. response = callback(request, *callback_args, **callback_kwargs) ...
- 101. except Exception, e:
- 102. # If the view raised an exception, run it through exception
- 103. # middleware, and if the exception middleware returns a
- 104. # response, use that. Otherwise, reraise the exception.
- 105. for middleware_method in self._exception_middleware:
- 106. response = middleware_method(request, e)
- ▶ Local vars
- Variable Value
- callback
- <function detail at 0x9589b54>
- callback_args
- ()
- callback_kwargs
- {'project_id': u'2', 'slug': u'test'}
- e
- TemplateSyntaxError(u'Caught ValueError while rendering: timestamp out of range for platform time_t',)
- exceptions
- <module 'django.core.exceptions' from '/usr/local/lib/python2.6/dist-packages/django/core/exceptions.pyc'>
- middleware_method
- <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x94ec3ac>>
- receivers
- [(<function _rollback_on_exception at 0x90a4aac>, None)]
- request
- <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'accessTokenId': '82', 'csrftoken': '49f12f9182678788827e48848924fc97', 'dev_appserver_login': '[email protected]:True:185804764220139124118', 'sessionid': 'dbd14575ed9528c6678322b4731622ad', 'submenuheader': '-1c'}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'text/plain', 'CSRF_COOKIE': '49f12f9182678788827e48848924fc97', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-9QEQ35Bdlx,guid=cf5dc4cc597429e1dbfee23e000001d3', 'DEFAULTS_PATH': '/usr/share/gconf/gnome.default.path', 'DESKTOP_SESSION': 'gnome', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE': 'samosit.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GDMSESSION': 'gnome', 'GDM_KEYBOARD_LAYOUT': 'us', 'GDM_LANG': 'en_US.utf8', 'GIO_LAUNCHED_DESKTOP_FILE': '/home/samos/Desktop/eclipse.desktop', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '4734', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'GNOME_KEYRING_CONTROL': '/tmp/keyring-6fUUHL', 'GNOME_KEYRING_PID': '1456', 'GTK_IM_MODULE': 'xim', 'GTK_MODULES': 'canberra-gtk-module', 'HOME': '/home/samos', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'csrftoken=49f12f9182678788827e48848924fc97; sessionid=dbd14575ed9528c6678322b4731622ad; accessTokenId=82; dev_appserver_login="[email protected]:True:185804764220139124118"; submenuheader=-1c', 'HTTP_HOST': 'localhost:8000', 'HTTP_KEEP_ALIVE': '115', 'HTTP_REFERER': 'http://localhost:8000/projects/1/tweetstream', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/10.10 (maverick) Firefox/3.6.12', 'LANG': 'en_US.utf8', 'LD_LIBRARY_PATH': '/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/xulrunner-1.9.2.12:/usr/lib/xulrunner-1.9.2.12', 'LOGNAME': 'samos', 'MANDATORY_PATH': '/usr/share/gconf/gnome.mandatory.path', 'MOZILLA_FIVE_HOME': '/usr/lib/xulrunner-1.9.2.12', 'ORBIT_SOCKETDIR': '/tmp/orbit-samos', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games', 'PATH_INFO': u'/projects/2/test', 'PWD': '/home/samos', 'PYDEV_COMPLETER_PYTHONPATH': '/home/samos/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev_1.6.3.2010100422/PySrc', 'PYDEV_CONSOLE_ENCODING': 'UTF-8', 'PYTHONIOENCODING': 'UTF-8', 'PYTHONPATH': '/home/samos/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev_1.6.3.2010100422/PySrc/pydev_sitecustomize:/usr/lib/pymodules/python2.6:/usr/lib/pymodules/python2.6/gtk-2.0:/usr/lib/python2.6:/usr/lib/python2.6/dist-packages:/usr/lib/python2.6/dist-packages/PIL:/usr/lib/python2.6/dist-packages/gst-0.10:/usr/lib/python2.6/dist-packages/gtk-2.0:/usr/lib/python2.6/lib-dynload:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/plat-linux2:/usr/local/lib/python2.6/dist-packages:/usr/local/lib/python2.6/dist-packages/virtualenv-1.5.1-py2.6.egg:/usr/local/lib/python2.6/dist-packages/yolk-0.4.1-py2.6.egg:/usr/lib/panda3d', 'QT_IM_MODULE': 'xim', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'localhost.localdomain', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.6.6', 'SESSION_MANAGER': 'local/samos-UbuntuPC:@/tmp/.ICE-unix/1475,unix/samos-UbuntuPC:/tmp/.ICE-unix/1475', 'SHELL': '/bin/bash', 'SSH_AGENT_PID': '1515', 'SSH_AUTH_SOCK': '/tmp/keyring-6fUUHL/ssh', 'TZ': 'America/Chicago', 'UBUNTU_MENUPROXY': '0', 'USER': 'samos', 'USERNAME': 'samos', 'WINDOWPATH': '7', 'XAUTHORITY': '/var/run/gdm/auth-for-samos-CbNDzT/database', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-gnome:/etc/xdg', 'XDG_DATA_DIRS': '/usr/share/gnome:/usr/local/share/:/usr/share/', 'XDG_SESSION_COOKIE': '39e5f3750786984dfd8cae630000000b-1291735942.592340-313354827', 'XMODIFIERS': '@im=SCIM', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb77060d0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x94b016c>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
- resolver
- <RegexURLResolver samosit.urls (None:None) ^/>
- response
- None
- self
- <django.core.handlers.wsgi.WSGIHandler object at 0x942d30c>
- settings
- <django.conf.LazySettings object at 0x8f9822c>
- urlconf
- 'samosit.urls'
- urlresolvers
- <module 'django.core.urlresolvers' from '/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.pyc'>
- * /home/samos/workspace/Samos-IT/samosit/../samosit/projects/views.py in detail
- 7. objects = Project.objects.all()
- 8. imageurl = "/media/"+project.image
- 9. return render_to_response('projects/project_index.html', {'objects' : objects, 'imageurl' : imageurl}, context_instance=RequestContext(request))
- 10.
- 11. def detail(request, project_id, slug):
- 12. project = get_object_or_404(Project, pk=project_id)
- 13. imageurl = "/media/"+project.image.url
- 14. return render_to_response('projects/project_detail.html', {'object' : project, 'imageurl' : imageurl}, context_instance=RequestContext(request)) ...
- ▶ Local vars
- Variable Value
- imageurl
- u'/media//media/upload/projects/IMG005.jpg'
- project
- <Project: Test>
- project_id
- u'2'
- request
- <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{'accessTokenId': '82', 'csrftoken': '49f12f9182678788827e48848924fc97', 'dev_appserver_login': '[email protected]:True:185804764220139124118', 'sessionid': 'dbd14575ed9528c6678322b4731622ad', 'submenuheader': '-1c'}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'text/plain', 'CSRF_COOKIE': '49f12f9182678788827e48848924fc97', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-9QEQ35Bdlx,guid=cf5dc4cc597429e1dbfee23e000001d3', 'DEFAULTS_PATH': '/usr/share/gconf/gnome.default.path', 'DESKTOP_SESSION': 'gnome', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE': 'samosit.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GDMSESSION': 'gnome', 'GDM_KEYBOARD_LAYOUT': 'us', 'GDM_LANG': 'en_US.utf8', 'GIO_LAUNCHED_DESKTOP_FILE': '/home/samos/Desktop/eclipse.desktop', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '4734', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'GNOME_KEYRING_CONTROL': '/tmp/keyring-6fUUHL', 'GNOME_KEYRING_PID': '1456', 'GTK_IM_MODULE': 'xim', 'GTK_MODULES': 'canberra-gtk-module', 'HOME': '/home/samos', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'csrftoken=49f12f9182678788827e48848924fc97; sessionid=dbd14575ed9528c6678322b4731622ad; accessTokenId=82; dev_appserver_login="[email protected]:True:185804764220139124118"; submenuheader=-1c', 'HTTP_HOST': 'localhost:8000', 'HTTP_KEEP_ALIVE': '115', 'HTTP_REFERER': 'http://localhost:8000/projects/1/tweetstream', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/10.10 (maverick) Firefox/3.6.12', 'LANG': 'en_US.utf8', 'LD_LIBRARY_PATH': '/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/xulrunner-1.9.2.12:/usr/lib/xulrunner-1.9.2.12', 'LOGNAME': 'samos', 'MANDATORY_PATH': '/usr/share/gconf/gnome.mandatory.path', 'MOZILLA_FIVE_HOME': '/usr/lib/xulrunner-1.9.2.12', 'ORBIT_SOCKETDIR': '/tmp/orbit-samos', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games', 'PATH_INFO': u'/projects/2/test', 'PWD': '/home/samos', 'PYDEV_COMPLETER_PYTHONPATH': '/home/samos/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev_1.6.3.2010100422/PySrc', 'PYDEV_CONSOLE_ENCODING': 'UTF-8', 'PYTHONIOENCODING': 'UTF-8', 'PYTHONPATH': '/home/samos/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev_1.6.3.2010100422/PySrc/pydev_sitecustomize:/usr/lib/pymodules/python2.6:/usr/lib/pymodules/python2.6/gtk-2.0:/usr/lib/python2.6:/usr/lib/python2.6/dist-packages:/usr/lib/python2.6/dist-packages/PIL:/usr/lib/python2.6/dist-packages/gst-0.10:/usr/lib/python2.6/dist-packages/gtk-2.0:/usr/lib/python2.6/lib-dynload:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/plat-linux2:/usr/local/lib/python2.6/dist-packages:/usr/local/lib/python2.6/dist-packages/virtualenv-1.5.1-py2.6.egg:/usr/local/lib/python2.6/dist-packages/yolk-0.4.1-py2.6.egg:/usr/lib/panda3d', 'QT_IM_MODULE': 'xim', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'localhost.localdomain', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.6.6', 'SESSION_MANAGER': 'local/samos-UbuntuPC:@/tmp/.ICE-unix/1475,unix/samos-UbuntuPC:/tmp/.ICE-unix/1475', 'SHELL': '/bin/bash', 'SSH_AGENT_PID': '1515', 'SSH_AUTH_SOCK': '/tmp/keyring-6fUUHL/ssh', 'TZ': 'America/Chicago', 'UBUNTU_MENUPROXY': '0', 'USER': 'samos', 'USERNAME': 'samos', 'WINDOWPATH': '7', 'XAUTHORITY': '/var/run/gdm/auth-for-samos-CbNDzT/database', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-gnome:/etc/xdg', 'XDG_DATA_DIRS': '/usr/share/gnome:/usr/local/share/:/usr/share/', 'XDG_SESSION_COOKIE': '39e5f3750786984dfd8cae630000000b-1291735942.592340-313354827', 'XMODIFIERS': '@im=SCIM', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb77060d0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x94b016c>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
- slug
- u'test'
- * /usr/local/lib/python2.6/dist-packages/django/shortcuts/__init__.py in render_to_response
- 13.
- 14. def render_to_response(*args, **kwargs):
- 15. """
- 16. Returns a HttpResponse whose content is filled with the result of calling
- 17. django.template.loader.render_to_string() with the passed arguments.
- 18. """
- 19. httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None)}
- 20. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs) ...
- 21.
- 22. def redirect(to, *args, **kwargs):
- 23. """
- 24. Returns an HttpResponseRedirect to the apropriate URL for the arguments
- 25. passed.
- 26.
- ▶ Local vars
- Variable Value
- args
- ('projects/project_detail.html', {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>})
- httpresponse_kwargs
- {'mimetype': None}
- kwargs
- {'context_instance': [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]}
- * /usr/local/lib/python2.6/dist-packages/django/template/loader.py in render_to_string
- 179. t = select_template(template_name)
- 180. else:
- 181. t = get_template(template_name)
- 182. if context_instance:
- 183. context_instance.update(dictionary)
- 184. else:
- 185. context_instance = Context(dictionary)
- 186. return t.render(context_instance) ...
- 187.
- 188. def select_template(template_name_list):
- 189. "Given a list of template names, returns the first that can be loaded."
- 190. for template_name in template_name_list:
- 191. try:
- 192. return get_template(template_name)
- ▶ Local vars
- Variable Value
- context_instance
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- dictionary
- {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}
- t
- <django.template.Template object at 0x958890c>
- template_name
- 'projects/project_detail.html'
- * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in render
- 166. def _render(self, context):
- 167. return self.nodelist.render(context)
- 168.
- 169. def render(self, context):
- 170. "Display stage -- can be called many times"
- 171. context.render_context.push()
- 172. try:
- 173. return self._render(context) ...
- 174. finally:
- 175. context.render_context.pop()
- 176.
- 177. def compile_string(template_string, origin):
- 178. "Compiles template_string into NodeList ready for rendering"
- 179. if settings.TEMPLATE_DEBUG:
- ▶ Local vars
- Variable Value
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- self
- <django.template.Template object at 0x958890c>
- * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in _render
- 160.
- 161. def __iter__(self):
- 162. for node in self.nodelist:
- 163. for subnode in node:
- 164. yield subnode
- 165.
- 166. def _render(self, context):
- 167. return self.nodelist.render(context) ...
- 168.
- 169. def render(self, context):
- 170. "Display stage -- can be called many times"
- 171. context.render_context.push()
- 172. try:
- 173. return self._render(context)
- ▶ Local vars
- Variable Value
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- self
- <django.template.Template object at 0x958890c>
- * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in render
- 789. # extend_nodelist().
- 790. contains_nontext = False
- 791.
- 792. def render(self, context):
- 793. bits = []
- 794. for node in self:
- 795. if isinstance(node, Node):
- 796. bits.append(self.render_node(node, context)) ...
- 797. else:
- 798. bits.append(node)
- 799. return mark_safe(''.join([force_unicode(b) for b in bits]))
- 800.
- 801. def get_nodes_by_type(self, nodetype):
- 802. "Return a list of all nodes of the given type"
- ▶ Local vars
- Variable Value
- bits
- []
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- node
- <ExtendsNode: extends "page.html">
- self
- [<ExtendsNode: extends "page.html">]
- * /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node
- 65. def compile_function_error(self, token, e):
- 66. if not hasattr(e, 'source'):
- 67. e.source = token.source
- 68.
- 69. class DebugNodeList(NodeList):
- 70. def render_node(self, node, context):
- 71. try:
- 72. result = node.render(context) ...
- 73. except TemplateSyntaxError, e:
- 74. if not hasattr(e, 'source'):
- 75. e.source = node.source
- 76. raise
- 77. except Exception, e:
- 78. from sys import exc_info
- ▶ Local vars
- Variable Value
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- e
- TemplateSyntaxError(u'Caught ValueError while rendering: timestamp out of range for platform time_t',)
- node
- <ExtendsNode: extends "page.html">
- self
- [<ExtendsNode: extends "page.html">]
- * /usr/local/lib/python2.6/dist-packages/django/template/loader_tags.py in render
- 118. blocks = dict([(n.name, n) for n in
- 119. compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
- 120. block_context.add_blocks(blocks)
- 121. break
- 122.
- 123. # Call Template._render explicitly so the parser context stays
- 124. # the same.
- 125. return compiled_parent._render(context) ...
- 126.
- 127. class ConstantIncludeNode(Node):
- 128. def __init__(self, template_path):
- 129. try:
- 130. t = get_template(template_path)
- 131. self.template = t
- ▶ Local vars
- Variable Value
- block_context
- <django.template.loader_tags.BlockContext object at 0x959ecac>
- compiled_parent
- <django.template.Template object at 0x959e6cc>
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- node
- <ExtendsNode: extends "base.html">
- self
- <ExtendsNode: extends "page.html">
- * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in _render
- 160.
- 161. def __iter__(self):
- 162. for node in self.nodelist:
- 163. for subnode in node:
- 164. yield subnode
- 165.
- 166. def _render(self, context):
- 167. return self.nodelist.render(context) ...
- 168.
- 169. def render(self, context):
- 170. "Display stage -- can be called many times"
- 171. context.render_context.push()
- 172. try:
- 173. return self._render(context)
- ▶ Local vars
- Variable Value
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- self
- <django.template.Template object at 0x959e6cc>
- * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in render
- 789. # extend_nodelist().
- 790. contains_nontext = False
- 791.
- 792. def render(self, context):
- 793. bits = []
- 794. for node in self:
- 795. if isinstance(node, Node):
- 796. bits.append(self.render_node(node, context)) ...
- 797. else:
- 798. bits.append(node)
- 799. return mark_safe(''.join([force_unicode(b) for b in bits]))
- 800.
- 801. def get_nodes_by_type(self, nodetype):
- 802. "Return a list of all nodes of the given type"
- ▶ Local vars
- Variable Value
- bits
- []
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- node
- <ExtendsNode: extends "base.html">
- self
- [<ExtendsNode: extends "base.html">]
- * /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node
- 65. def compile_function_error(self, token, e):
- 66. if not hasattr(e, 'source'):
- 67. e.source = token.source
- 68.
- 69. class DebugNodeList(NodeList):
- 70. def render_node(self, node, context):
- 71. try:
- 72. result = node.render(context) ...
- 73. except TemplateSyntaxError, e:
- 74. if not hasattr(e, 'source'):
- 75. e.source = node.source
- 76. raise
- 77. except Exception, e:
- 78. from sys import exc_info
- ▶ Local vars
- Variable Value
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- e
- TemplateSyntaxError(u'Caught ValueError while rendering: timestamp out of range for platform time_t',)
- node
- <ExtendsNode: extends "base.html">
- self
- [<ExtendsNode: extends "base.html">]
- * /usr/local/lib/python2.6/dist-packages/django/template/loader_tags.py in render
- 118. blocks = dict([(n.name, n) for n in
- 119. compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
- 120. block_context.add_blocks(blocks)
- 121. break
- 122.
- 123. # Call Template._render explicitly so the parser context stays
- 124. # the same.
- 125. return compiled_parent._render(context) ...
- 126.
- 127. class ConstantIncludeNode(Node):
- 128. def __init__(self, template_path):
- 129. try:
- 130. t = get_template(template_path)
- 131. self.template = t
- ▶ Local vars
- Variable Value
- block_context
- <django.template.loader_tags.BlockContext object at 0x959ecac>
- blocks
- {u'beforebody': <Block Node: beforebody. Contents: [<Text Node: ' '>]>, u'body': <Block Node: body. Contents: [<Text Node: ' '>]>, u'bodyclass': <Block Node: bodyclass. Contents: []>, u'footer': <Block Node: footer. Contents: [<Text Node: ' <div id="footer" c'>]>, u'metatitle': <Block Node: metatitle. Contents: [<Text Node: 'Samos IT'>]>}
- compiled_parent
- <django.template.Template object at 0x95a818c>
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- n
- <Block Node: beforebody. Contents: [<Text Node: ' '>]>
- node
- <django.template.defaulttags.LoadNode object at 0x95a89ac>
- self
- <ExtendsNode: extends "base.html">
- * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in _render
- 160.
- 161. def __iter__(self):
- 162. for node in self.nodelist:
- 163. for subnode in node:
- 164. yield subnode
- 165.
- 166. def _render(self, context):
- 167. return self.nodelist.render(context) ...
- 168.
- 169. def render(self, context):
- 170. "Display stage -- can be called many times"
- 171. context.render_context.push()
- 172. try:
- 173. return self._render(context)
- ▶ Local vars
- Variable Value
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- self
- <django.template.Template object at 0x95a818c>
- * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in render
- 789. # extend_nodelist().
- 790. contains_nontext = False
- 791.
- 792. def render(self, context):
- 793. bits = []
- 794. for node in self:
- 795. if isinstance(node, Node):
- 796. bits.append(self.render_node(node, context)) ...
- 797. else:
- 798. bits.append(node)
- 799. return mark_safe(''.join([force_unicode(b) for b in bits]))
- 800.
- 801. def get_nodes_by_type(self, nodetype):
- 802. "Return a list of all nodes of the given type"
- ▶ Local vars
- Variable Value
- bits
- ['', u'\n<?xml version="1.0" encoding="iso-8859-1"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n <head>\n <title>', u'test', u'</title>\n <!-- Framework CSS -->\n <link rel="stylesheet" href="/media/css/blueprint/screen.css" type="text/css" media="screen, projection" />\n <link rel="stylesheet" href="/media/css/blueprint/print.css" type="text/css" media="print" />\n <!--[if lt IE 8]><link rel="stylesheet" href="../../blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->\n <link rel="stylesheet" href="/media/css/style.css" type="text/css" media="all">\n <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">\n </script>\n </head>\n <body class="', u'page', u'">\n <div class="container">\n <div class="span-24 prepend-2 last" id="topheader">\n <div class="span-4" id="logo">\n <a href="/">\n <img src="/media/img/logo.png"</a>\n </div>\n <div class="prepend-3 span-12" id="topmenu">\n ', u'<ul id="nav">\n <li>\n <a href="/">Home</a>\n </li>\n <li>\n <a href="/pages/1/about">About</a>\n <ul>\n \n </ul>\n </li>\n <li>\n <a href="/projects/">Projects</a>\n <ul>\n \n <li>\n <a href="/projects/1/tweetstream">Tweetstream</a>\n </li>\n \n <li>\n <a href="/projects/2/test">Test</a>\n </li>\n \n </ul>\n </li>\n <li>\n <a href="#">Blog</a>\n </li>\n</ul>', u'\n </div>\n </div>\n ']
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- node
- <Block Node: body. Contents: [<Text Node: ' '>]>
- self
- [<django.template.defaulttags.LoadNode object at 0x95a89ac>, <Text Node: ' <?xml version="1.0" enco'>, <Block Node: metatitle. Contents: [<Text Node: 'Samos IT'>]>, <Text Node: '</title> <!-- Framewo'>, <Block Node: bodyclass. Contents: []>, <Text Node: '"> <div class="contai'>, <django.template.InclusionNode object at 0x95a838c>, <Text Node: ' </div> </d'>, <Block Node: body. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Block Node: footer. Contents: [<Text Node: ' <div id="footer" c'>]>, <Text Node: ' </div> <script t'>, <Block Node: beforebody. Contents: [<Text Node: ' '>]>, <Text Node: ' </body> </html>'>]
- * /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node
- 65. def compile_function_error(self, token, e):
- 66. if not hasattr(e, 'source'):
- 67. e.source = token.source
- 68.
- 69. class DebugNodeList(NodeList):
- 70. def render_node(self, node, context):
- 71. try:
- 72. result = node.render(context) ...
- 73. except TemplateSyntaxError, e:
- 74. if not hasattr(e, 'source'):
- 75. e.source = node.source
- 76. raise
- 77. except Exception, e:
- 78. from sys import exc_info
- ▶ Local vars
- Variable Value
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- e
- TemplateSyntaxError(u'Caught ValueError while rendering: timestamp out of range for platform time_t',)
- node
- <Block Node: body. Contents: [<Text Node: ' '>]>
- self
- [<django.template.defaulttags.LoadNode object at 0x95a89ac>, <Text Node: ' <?xml version="1.0" enco'>, <Block Node: metatitle. Contents: [<Text Node: 'Samos IT'>]>, <Text Node: '</title> <!-- Framewo'>, <Block Node: bodyclass. Contents: []>, <Text Node: '"> <div class="contai'>, <django.template.InclusionNode object at 0x95a838c>, <Text Node: ' </div> </d'>, <Block Node: body. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Block Node: footer. Contents: [<Text Node: ' <div id="footer" c'>]>, <Text Node: ' </div> <script t'>, <Block Node: beforebody. Contents: [<Text Node: ' '>]>, <Text Node: ' </body> </html>'>]
- * /usr/local/lib/python2.6/dist-packages/django/template/loader_tags.py in render
- 55. push = block = block_context.pop(self.name)
- 56. if block is None:
- 57. block = self
- 58. # Create new block so we can store context without thread-safety issues.
- 59. block = BlockNode(block.name, block.nodelist)
- 60. block.context = context
- 61. context['block'] = block
- 62. result = block.nodelist.render(context) ...
- 63. if push is not None:
- 64. block_context.push(self.name, push)
- 65. context.pop()
- 66. return result
- 67.
- 68. def super(self):
- ▶ Local vars
- Variable Value
- block
- <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>
- block_context
- <django.template.loader_tags.BlockContext object at 0x959ecac>
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- push
- <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>
- self
- <Block Node: body. Contents: [<Text Node: ' '>]>
- * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in render
- 789. # extend_nodelist().
- 790. contains_nontext = False
- 791.
- 792. def render(self, context):
- 793. bits = []
- 794. for node in self:
- 795. if isinstance(node, Node):
- 796. bits.append(self.render_node(node, context)) ...
- 797. else:
- 798. bits.append(node)
- 799. return mark_safe(''.join([force_unicode(b) for b in bits]))
- 800.
- 801. def get_nodes_by_type(self, nodetype):
- 802. "Return a list of all nodes of the given type"
- ▶ Local vars
- Variable Value
- bits
- [u'\n ']
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- node
- <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>
- self
- [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]
- * /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node
- 65. def compile_function_error(self, token, e):
- 66. if not hasattr(e, 'source'):
- 67. e.source = token.source
- 68.
- 69. class DebugNodeList(NodeList):
- 70. def render_node(self, node, context):
- 71. try:
- 72. result = node.render(context) ...
- 73. except TemplateSyntaxError, e:
- 74. if not hasattr(e, 'source'):
- 75. e.source = node.source
- 76. raise
- 77. except Exception, e:
- 78. from sys import exc_info
- ▶ Local vars
- Variable Value
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- e
- TemplateSyntaxError(u'Caught ValueError while rendering: timestamp out of range for platform time_t',)
- node
- <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>
- self
- [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]
- * /usr/local/lib/python2.6/dist-packages/django/template/loader_tags.py in render
- 55. push = block = block_context.pop(self.name)
- 56. if block is None:
- 57. block = self
- 58. # Create new block so we can store context without thread-safety issues.
- 59. block = BlockNode(block.name, block.nodelist)
- 60. block.context = context
- 61. context['block'] = block
- 62. result = block.nodelist.render(context) ...
- 63. if push is not None:
- 64. block_context.push(self.name, push)
- 65. context.pop()
- 66. return result
- 67.
- 68. def super(self):
- ▶ Local vars
- Variable Value
- block
- <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>
- block_context
- <django.template.loader_tags.BlockContext object at 0x959ecac>
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- push
- <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>
- self
- <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>
- * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in render
- 789. # extend_nodelist().
- 790. contains_nontext = False
- 791.
- 792. def render(self, context):
- 793. bits = []
- 794. for node in self:
- 795. if isinstance(node, Node):
- 796. bits.append(self.render_node(node, context)) ...
- 797. else:
- 798. bits.append(node)
- 799. return mark_safe(''.join([force_unicode(b) for b in bits]))
- 800.
- 801. def get_nodes_by_type(self, nodetype):
- 802. "Return a list of all nodes of the given type"
- ▶ Local vars
- Variable Value
- bits
- [u'\n <div class="span-24">\n <div id="pagecontent" class="span-15 last">\n ']
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- node
- <Block Node: content. Contents: [<Text Node: ' '>]>
- self
- [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]
- * /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node
- 65. def compile_function_error(self, token, e):
- 66. if not hasattr(e, 'source'):
- 67. e.source = token.source
- 68.
- 69. class DebugNodeList(NodeList):
- 70. def render_node(self, node, context):
- 71. try:
- 72. result = node.render(context) ...
- 73. except TemplateSyntaxError, e:
- 74. if not hasattr(e, 'source'):
- 75. e.source = node.source
- 76. raise
- 77. except Exception, e:
- 78. from sys import exc_info
- ▶ Local vars
- Variable Value
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- e
- TemplateSyntaxError(u'Caught ValueError while rendering: timestamp out of range for platform time_t',)
- node
- <Block Node: content. Contents: [<Text Node: ' '>]>
- self
- [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]
- * /usr/local/lib/python2.6/dist-packages/django/template/loader_tags.py in render
- 55. push = block = block_context.pop(self.name)
- 56. if block is None:
- 57. block = self
- 58. # Create new block so we can store context without thread-safety issues.
- 59. block = BlockNode(block.name, block.nodelist)
- 60. block.context = context
- 61. context['block'] = block
- 62. result = block.nodelist.render(context) ...
- 63. if push is not None:
- 64. block_context.push(self.name, push)
- 65. context.pop()
- 66. return result
- 67.
- 68. def super(self):
- ▶ Local vars
- Variable Value
- block
- <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>
- block_context
- <django.template.loader_tags.BlockContext object at 0x959ecac>
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- push
- <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>
- self
- <Block Node: content. Contents: [<Text Node: ' '>]>
- * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in render
- 789. # extend_nodelist().
- 790. contains_nontext = False
- 791.
- 792. def render(self, context):
- 793. bits = []
- 794. for node in self:
- 795. if isinstance(node, Node):
- 796. bits.append(self.render_node(node, context)) ...
- 797. else:
- 798. bits.append(node)
- 799. return mark_safe(''.join([force_unicode(b) for b in bits]))
- 800.
- 801. def get_nodes_by_type(self, nodetype):
- 802. "Return a list of all nodes of the given type"
- ▶ Local vars
- Variable Value
- bits
- [u'\n <h1 align="center">', u'Test', u'</h1>\n']
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- node
- <ThumbnailNode>
- self
- [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]
- * /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node
- 65. def compile_function_error(self, token, e):
- 66. if not hasattr(e, 'source'):
- 67. e.source = token.source
- 68.
- 69. class DebugNodeList(NodeList):
- 70. def render_node(self, node, context):
- 71. try:
- 72. result = node.render(context) ...
- 73. except TemplateSyntaxError, e:
- 74. if not hasattr(e, 'source'):
- 75. e.source = node.source
- 76. raise
- 77. except Exception, e:
- 78. from sys import exc_info
- ▶ Local vars
- Variable Value
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- e
- ValueError('timestamp out of range for platform time_t',)
- exc_info
- <built-in function exc_info>
- node
- <ThumbnailNode>
- self
- [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]
- wrapped
- TemplateSyntaxError(u'Caught ValueError while rendering: timestamp out of range for platform time_t',)
- * /usr/local/lib/python2.6/dist-packages/sorl/thumbnail/templatetags/thumbnail.py in render
- 38. """
- 39. A Node that renders safely
- 40. """
- 41. nodelist_empty = NodeList()
- 42.
- 43. def render(self, context):
- 44. try:
- 45. return self._render(context) ...
- 46. except Exception:
- 47. if settings.THUMBNAIL_DEBUG:
- 48. raise
- 49. logger.error('Thumbnail tag failed:', exc_info=sys.exc_info())
- 50. return self.nodelist_empty.render(context)
- 51.
- ▶ Local vars
- Variable Value
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- self
- <ThumbnailNode>
- * /usr/local/lib/python2.6/dist-packages/sorl/thumbnail/templatetags/thumbnail.py in _render
- 90. options.update(value)
- 91. else:
- 92. options[key] = value
- 93. if settings.THUMBNAIL_DUMMY:
- 94. thumbnail = DummyImageFile(geometry)
- 95. elif file_:
- 96. thumbnail = default.backend.get_thumbnail(
- 97. file_, geometry, **options ...
- 98. )
- 99. else:
- 100. return self.nodelist_empty.render(context)
- 101. context.push()
- 102. context[self.as_var] = thumbnail
- 103. output = self.nodelist_file.render(context)
- ▶ Local vars
- Variable Value
- context
- [{}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x959880c>}, {}, {'LANGUAGES': (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'en-us'}, {'perms': <django.utils.functional.__proxy__ object at 0x959e4ac>, 'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>, 'user': <django.utils.functional.SimpleLazyObject object at 0x959e3ac>}, {'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x954decc>}, {'MEDIA_URL': '/media/'}, {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}, {'block': <Block Node: body. Contents: [<Text Node: ' '>, <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>]>}, {'block': <Block Node: pagebody. Contents: [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]>}, {'block': <Block Node: content. Contents: [<Text Node: ' <h1 align="center">'>, <Variable Node: object.title>, <Text Node: '</h1> '>, <ThumbnailNode>, <Text Node: ' <img align="left" src='>, <Variable Node: MEDIA_URL>, <Variable Node: object.image>, <Text Node: '" /> <div class="projec'>, <Variable Node: object.content|safe>, <Text Node: '</div> <hr/> '>]>}]
- expr
- <django.template.FilterExpression object at 0x95a286c>
- file_
- <ImageFieldFile: upload/projects/IMG005.jpg>
- geometry
- u'100x100'
- key
- 'crop'
- noresolve
- {u'False': False, u'None': None, u'True': True}
- options
- {'crop': u'center'}
- self
- <ThumbnailNode>
- value
- u'center'
- * /usr/local/lib/python2.6/dist-packages/sorl/thumbnail/base.py in get_thumbnail
- 30. secondly it will create it.
- 31. """
- 32. source = ImageFile(file_)
- 33. for key, value in self.default_options.iteritems():
- 34. options.setdefault(key, value)
- 35. name = self._get_thumbnail_filename(source, geometry_string, options)
- 36. thumbnail = ImageFile(name, default.storage)
- 37. cached = default.kvstore.get(thumbnail) ...
- 38. if cached:
- 39. return cached
- 40. if not thumbnail.exists():
- 41. # We have to check exists() because the Storage backend does not
- 42. # overwrite in some implementations.
- 43. source_image = default.engine.get_image(source)
- ▶ Local vars
- Variable Value
- file_
- <ImageFieldFile: upload/projects/IMG005.jpg>
- geometry_string
- u'100x100'
- key
- 'format'
- name
- 'cache/72/c7/72c70e8914deaa46fe4275125cb62e57.jpg'
- options
- {'colorspace': 'RGB', 'crop': u'center', 'format': 'JPEG', 'quality': 95, 'upscale': True}
- self
- <sorl.thumbnail.base.ThumbnailBackend object at 0x95b1e6c>
- source
- <sorl.thumbnail.images.ImageFile object at 0x95b1e8c>
- thumbnail
- <sorl.thumbnail.images.ImageFile object at 0x95b1f6c>
- value
- 'JPEG'
- * /usr/local/lib/python2.6/dist-packages/sorl/thumbnail/kvstores/base.py in get
- 18.
- 19.
- 20. class KVStoreBase(object):
- 21. def get(self, image_file):
- 22. """
- 23. Gets the ``image_file`` from store. Returns ``None`` if not found.
- 24. """
- 25. return self._get(image_file.key) ...
- 26.
- 27. def set(self, image_file, source=None):
- 28. """
- 29. Updates store for the `image_file`. Makes sure the `image_file` has a
- 30. size set.
- 31. """
- ▶ Local vars
- Variable Value
- image_file
- <sorl.thumbnail.images.ImageFile object at 0x95b1f6c>
- self
- <sorl.thumbnail.kvstores.cached_db_kvstore.KVStore object at 0x95b1f0c>
- * /usr/local/lib/python2.6/dist-packages/sorl/thumbnail/kvstores/base.py in _get
- 116. all_keys = self._find_keys_raw(settings.THUMBNAIL_KEY_PREFIX)
- 117. self._delete_raw(*all_keys)
- 118.
- 119. def _get(self, key, identity='image'):
- 120. """
- 121. Deserializing, prefix wrapper for _get_raw
- 122. """
- 123. value = self._get_raw(add_prefix(key, identity)) ...
- 124. if value is None:
- 125. return None
- 126. if identity == 'image':
- 127. return deserialize_image_file(value)
- 128. return deserialize(value)
- 129.
- ▶ Local vars
- Variable Value
- identity
- 'image'
- key
- 'abac88438ac4cce7636d479de415bd55'
- self
- <sorl.thumbnail.kvstores.cached_db_kvstore.KVStore object at 0x95b1f0c>
- * /usr/local/lib/python2.6/dist-packages/sorl/thumbnail/kvstores/cached_db_kvstore.py in _get_raw
- 13. value = cache.get(key)
- 14. if value is None:
- 15. try:
- 16. value = KVStoreModel.objects.get(key=key).value
- 17. except KVStoreModel.DoesNotExist:
- 18. # we set the cache to prevent further db lookups
- 19. value = EMPTY_VALUE
- 20. cache.set(key, value, settings.THUMBNAIL_CACHE_TIMEOUT) ...
- 21. if value == EMPTY_VALUE:
- 22. return None
- 23. return value
- 24.
- 25. def _set_raw(self, key, value):
- 26. kv = KVStoreModel.objects.get_or_create(key=key)[0]
- ▶ Local vars
- Variable Value
- key
- 'sorl-thumbnail||image||abac88438ac4cce7636d479de415bd55'
- self
- <sorl.thumbnail.kvstores.cached_db_kvstore.KVStore object at 0x95b1f0c>
- value
- <class 'sorl.thumbnail.kvstores.cached_db_kvstore.EMPTY_VALUE'>
- * /usr/local/lib/python2.6/dist-packages/django/core/cache/backends/db.py in set
- 61. cursor.execute("DELETE FROM %s WHERE cache_key = %%s" % table, [key])
- 62. transaction.commit_unless_managed(using=db)
- 63. return default
- 64. value = connections[db].ops.process_clob(row[1])
- 65. return pickle.loads(base64.decodestring(value))
- 66.
- 67. def set(self, key, value, timeout=None):
- 68. self._base_set('set', key, value, timeout) ...
- 69.
- 70. def add(self, key, value, timeout=None):
- 71. return self._base_set('add', key, value, timeout)
- 72.
- 73. def _base_set(self, mode, key, value, timeout=None):
- 74. if timeout is None:
- ▶ Local vars
- Variable Value
- key
- 'sorl-thumbnail||image||abac88438ac4cce7636d479de415bd55'
- self
- <django.core.cache.backends.db.CacheClass object at 0x9371e8c>
- timeout
- 2147483647
- value
- <class 'sorl.thumbnail.kvstores.cached_db_kvstore.EMPTY_VALUE'>
- * /usr/local/lib/python2.6/dist-packages/django/core/cache/backends/db.py in _base_set
- 76. db = router.db_for_write(self.cache_model_class)
- 77. table = connections[db].ops.quote_name(self._table)
- 78. cursor = connections[db].cursor()
- 79.
- 80. cursor.execute("SELECT COUNT(*) FROM %s" % table)
- 81. num = cursor.fetchone()[0]
- 82. now = datetime.now().replace(microsecond=0)
- 83. exp = datetime.fromtimestamp(time.time() + timeout).replace(microsecond=0) ...
- 84. if num > self._max_entries:
- 85. self._cull(db, cursor, now)
- 86. encoded = base64.encodestring(pickle.dumps(value, 2)).strip()
- 87. cursor.execute("SELECT cache_key, expires FROM %s WHERE cache_key = %%s" % table, [key])
- 88. try:
- 89. result = cursor.fetchone()
- ▶ Local vars
- Variable Value
- cursor
- <django.db.backends.util.CursorDebugWrapper object at 0x95b770c>
- db
- 'default'
- key
- 'sorl-thumbnail||image||abac88438ac4cce7636d479de415bd55'
- mode
- 'set'
- now
- datetime.datetime(2010, 12, 7, 11, 28, 56)
- num
- 2L
- self
- <django.core.cache.backends.db.CacheClass object at 0x9371e8c>
- table
- '"cachetable"'
- timeout
- 2147483647
- value
- <class 'sorl.thumbnail.kvstores.cached_db_kvstore.EMPTY_VALUE'>
- Environment: Request Method: GET Request URL: http://localhost:8000/projects/2/test Django Version: 1.2.3 Python Version: 2.6.6 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.admin', 'samosit.pages', 'samosit.projects', 'samosit', 'sorl.thumbnail'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Template error: In template /home/samos/workspace/Samos-IT/samosit/templates/projects/project_detail.html, error at line 7 Caught ValueError while rendering: timestamp out of range for platform time_t 1 : {% extends "page.html" %} 2 : {% load thumbnail %} 3 : 4 : {% block metatitle %}{{object.metatitle}}{% endblock %} 5 : {% block content %} 6 : <h1 align="center">{{object.title}}</h1> 7 : {% thumbnail object.image "100x100" crop="center" as im %} 8 : <img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}"> 9 : {% endthumbnail %} 10 : <img align="left" src="{{ MEDIA_URL }}{{object.image}}" /> 11 : <div class="project-content">{{object.content|safe}}</div> 12 : <hr/> 13 : 14 : {% endblock %} 15 : 16 : {% block sidebar %} 17 : <div class="box"> Traceback: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py" in get_response 100. response = callback(request, *callback_args, **callback_kwargs) File "/home/samos/workspace/Samos-IT/samosit/../samosit/projects/views.py" in detail 14. return render_to_response('projects/project_detail.html', {'object' : project, 'imageurl' : imageurl}, context_instance=RequestContext(request)) File "/usr/local/lib/python2.6/dist-packages/django/shortcuts/__init__.py" in render_to_response 20. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs) File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py" in render_to_string 186. return t.render(context_instance) File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py" in render 173. return self._render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py" in _render 167. return self.nodelist.render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py" in render 796. bits.append(self.render_node(node, context)) File "/usr/local/lib/python2.6/dist-packages/django/template/debug.py" in render_node 72. result = node.render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/loader_tags.py" in render 125. return compiled_parent._render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py" in _render 167. return self.nodelist.render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py" in render 796. bits.append(self.render_node(node, context)) File "/usr/local/lib/python2.6/dist-packages/django/template/debug.py" in render_node 72. result = node.render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/loader_tags.py" in render 125. return compiled_parent._render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py" in _render 167. return self.nodelist.render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py" in render 796. bits.append(self.render_node(node, context)) File "/usr/local/lib/python2.6/dist-packages/django/template/debug.py" in render_node 72. result = node.render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/loader_tags.py" in render 62. result = block.nodelist.render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py" in render 796. bits.append(self.render_node(node, context)) File "/usr/local/lib/python2.6/dist-packages/django/template/debug.py" in render_node 72. result = node.render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/loader_tags.py" in render 62. result = block.nodelist.render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py" in render 796. bits.append(self.render_node(node, context)) File "/usr/local/lib/python2.6/dist-packages/django/template/debug.py" in render_node 72. result = node.render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/loader_tags.py" in render 62. result = block.nodelist.render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py" in render 796. bits.append(self.render_node(node, context)) File "/usr/local/lib/python2.6/dist-packages/django/template/debug.py" in render_node 72. result = node.render(context) File "/usr/local/lib/python2.6/dist-packages/sorl/thumbnail/templatetags/thumbnail.py" in render 45. return self._render(context) File "/usr/local/lib/python2.6/dist-packages/sorl/thumbnail/templatetags/thumbnail.py" in _render 97. file_, geometry, **options File "/usr/local/lib/python2.6/dist-packages/sorl/thumbnail/base.py" in get_thumbnail 37. cached = default.kvstore.get(thumbnail) File "/usr/local/lib/python2.6/dist-packages/sorl/thumbnail/kvstores/base.py" in get 25. return self._get(image_file.key) File "/usr/local/lib/python2.6/dist-packages/sorl/thumbnail/kvstores/base.py" in _get 123. value = self._get_raw(add_prefix(key, identity)) File "/usr/local/lib/python2.6/dist-packages/sorl/thumbnail/kvstores/cached_db_kvstore.py" in _get_raw 20. cache.set(key, value, settings.THUMBNAIL_CACHE_TIMEOUT) File "/usr/local/lib/python2.6/dist-packages/django/core/cache/backends/db.py" in set 68. self._base_set('set', key, value, timeout) File "/usr/local/lib/python2.6/dist-packages/django/core/cache/backends/db.py" in _base_set 83. exp = datetime.fromtimestamp(time.time() + timeout).replace(microsecond=0) Exception Type: TemplateSyntaxError at /projects/2/test Exception Value: Caught ValueError while rendering: timestamp out of range for platform time_t
- Request information
- GET
- No GET data
- POST
- No POST data
- FILES
- No FILES data
- COOKIES
- Variable Value
- csrftoken
- '49f12f9182678788827e48848924fc97'
- sessionid
- 'dbd14575ed9528c6678322b4731622ad'
- accessTokenId
- '82'
- dev_appserver_login
- '[email protected]:True:185804764220139124118'
- submenuheader
- '-1c'
- META
- Variable Value
- CONTENT_LENGTH
- ''
- CONTENT_TYPE
- 'text/plain'
- CSRF_COOKIE
- '49f12f9182678788827e48848924fc97'
- DBUS_SESSION_BUS_ADDRESS
- 'unix:abstract=/tmp/dbus-9QEQ35Bdlx,guid=cf5dc4cc597429e1dbfee23e000001d3'
- DEFAULTS_PATH
- '/usr/share/gconf/gnome.default.path'
- DESKTOP_SESSION
- 'gnome'
- DISPLAY
- ':0.0'
- DJANGO_SETTINGS_MODULE
- 'samosit.settings'
- GATEWAY_INTERFACE
- 'CGI/1.1'
- GDMSESSION
- 'gnome'
- GDM_KEYBOARD_LAYOUT
- 'us'
- GDM_LANG
- 'en_US.utf8'
- GIO_LAUNCHED_DESKTOP_FILE
- '/home/samos/Desktop/eclipse.desktop'
- GIO_LAUNCHED_DESKTOP_FILE_PID
- '4734'
- GNOME_DESKTOP_SESSION_ID
- 'this-is-deprecated'
- GNOME_KEYRING_CONTROL
- '/tmp/keyring-6fUUHL'
- GNOME_KEYRING_PID
- '1456'
- GTK_IM_MODULE
- 'xim'
- GTK_MODULES
- 'canberra-gtk-module'
- HOME
- '/home/samos'
- HTTP_ACCEPT
- 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
- HTTP_ACCEPT_CHARSET
- 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
- HTTP_ACCEPT_ENCODING
- 'gzip,deflate'
- HTTP_ACCEPT_LANGUAGE
- 'en-us,en;q=0.5'
- HTTP_CACHE_CONTROL
- 'max-age=0'
- HTTP_CONNECTION
- 'keep-alive'
- HTTP_COOKIE
- 'csrftoken=49f12f9182678788827e48848924fc97; sessionid=dbd14575ed9528c6678322b4731622ad; accessTokenId=82; dev_appserver_login="[email protected]:True:185804764220139124118"; submenuheader=-1c'
- HTTP_HOST
- 'localhost:8000'
- HTTP_KEEP_ALIVE
- '115'
- HTTP_REFERER
- 'http://localhost:8000/projects/1/tweetstream'
- HTTP_USER_AGENT
- 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/10.10 (maverick) Firefox/3.6.12'
- LANG
- 'en_US.utf8'
- LD_LIBRARY_PATH
- '/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/xulrunner-1.9.2.12:/usr/lib/xulrunner-1.9.2.12'
- LOGNAME
- 'samos'
- MANDATORY_PATH
- '/usr/share/gconf/gnome.mandatory.path'
- MOZILLA_FIVE_HOME
- '/usr/lib/xulrunner-1.9.2.12'
- ORBIT_SOCKETDIR
- '/tmp/orbit-samos'
- PATH
- '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games'
- PATH_INFO
- u'/projects/2/test'
- PWD
- '/home/samos'
- PYDEV_COMPLETER_PYTHONPATH
- '/home/samos/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev_1.6.3.2010100422/PySrc'
- PYDEV_CONSOLE_ENCODING
- 'UTF-8'
- PYTHONIOENCODING
- 'UTF-8'
- PYTHONPATH
- '/home/samos/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev_1.6.3.2010100422/PySrc/pydev_sitecustomize:/usr/lib/pymodules/python2.6:/usr/lib/pymodules/python2.6/gtk-2.0:/usr/lib/python2.6:/usr/lib/python2.6/dist-packages:/usr/lib/python2.6/dist-packages/PIL:/usr/lib/python2.6/dist-packages/gst-0.10:/usr/lib/python2.6/dist-packages/gtk-2.0:/usr/lib/python2.6/lib-dynload:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/plat-linux2:/usr/local/lib/python2.6/dist-packages:/usr/local/lib/python2.6/dist-packages/virtualenv-1.5.1-py2.6.egg:/usr/local/lib/python2.6/dist-packages/yolk-0.4.1-py2.6.egg:/usr/lib/panda3d'
- QT_IM_MODULE
- 'xim'
- QUERY_STRING
- ''
- REMOTE_ADDR
- '127.0.0.1'
- REMOTE_HOST
- ''
- REQUEST_METHOD
- 'GET'
- SCRIPT_NAME
- u''
- SERVER_NAME
- 'localhost.localdomain'
- SERVER_PORT
- '8000'
- SERVER_PROTOCOL
- 'HTTP/1.1'
- SERVER_SOFTWARE
- 'WSGIServer/0.1 Python/2.6.6'
- SESSION_MANAGER
- 'local/samos-UbuntuPC:@/tmp/.ICE-unix/1475,unix/samos-UbuntuPC:/tmp/.ICE-unix/1475'
- SHELL
- '/bin/bash'
- SSH_AGENT_PID
- '1515'
- SSH_AUTH_SOCK
- '/tmp/keyring-6fUUHL/ssh'
- TZ
- 'America/Chicago'
- UBUNTU_MENUPROXY
- '0'
- USER
- 'samos'
- USERNAME
- 'samos'
- WINDOWPATH
- '7'
- XAUTHORITY
- '/var/run/gdm/auth-for-samos-CbNDzT/database'
- XDG_CONFIG_DIRS
- '/etc/xdg/xdg-gnome:/etc/xdg'
- XDG_DATA_DIRS
- '/usr/share/gnome:/usr/local/share/:/usr/share/'
- XDG_SESSION_COOKIE
- '39e5f3750786984dfd8cae630000000b-1291735942.592340-313354827'
- XMODIFIERS
- '@im=SCIM'
- wsgi.errors
- <open file '<stderr>', mode 'w' at 0xb77060d0>
- wsgi.file_wrapper
- <class 'django.core.servers.basehttp.FileWrapper'>
- wsgi.input
- <socket._fileobject object at 0x94b016c>
- wsgi.multiprocess
- False
- wsgi.multithread
- True
- wsgi.run_once
- False
- wsgi.url_scheme
- 'http'
- wsgi.version
- (1, 0)
- Settings
- Using settings module samosit.settings
- Setting Value
- ABSOLUTE_URL_OVERRIDES
- {}
- ADMINS
- ()
- ADMIN_FOR
- ()
- ADMIN_MEDIA_PREFIX
- '/media/admin/'
- ALLOWED_INCLUDE_ROOTS
- ()
- APPEND_SLASH
- True
- AUTHENTICATION_BACKENDS
- ('django.contrib.auth.backends.ModelBackend',)
- BANNED_IPS
- ()
- CACHE_BACKEND
- 'db://cachetable'
- CACHE_MIDDLEWARE_KEY_PREFIX
- ''
- CACHE_MIDDLEWARE_SECONDS
- 600
- COMMENTS_ALLOW_PROFANITIES
- False
- COMMENTS_BANNED_USERS_GROUP
- None
- COMMENTS_FIRST_FEW
- 0
- COMMENTS_MODERATORS_GROUP
- None
- COMMENTS_SKETCHY_USERS_GROUP
- None
- CSRF_COOKIE_DOMAIN
- None
- CSRF_COOKIE_NAME
- 'csrftoken'
- CSRF_FAILURE_VIEW
- 'django.views.csrf.csrf_failure'
- DATABASES
- {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'localhost', 'NAME': 'samosit', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'America/Chicago', 'USER': 'postgres'}}
- DATABASE_ENGINE
- ''
- DATABASE_HOST
- ''
- DATABASE_NAME
- ''
- DATABASE_OPTIONS
- {}
- DATABASE_PASSWORD
- '********************'
- DATABASE_PORT
- ''
- DATABASE_ROUTERS
- []
- DATABASE_USER
- ''
- DATETIME_FORMAT
- 'N j, Y, P'
- DATETIME_INPUT_FORMATS
- ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M', '%m/%d/%y')
- DATE_FORMAT
- 'N j, Y'
- 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')
- DEBUG
- True
- DEBUG_PROPAGATE_EXCEPTIONS
- False
- DECIMAL_SEPARATOR
- '.'
- DEFAULT_CHARSET
- 'utf-8'
- DEFAULT_CONTENT_TYPE
- 'text/html'
- DEFAULT_FILE_STORAGE
- 'django.core.files.storage.FileSystemStorage'
- DEFAULT_FROM_EMAIL
- 'webmaster@localhost'
- DEFAULT_INDEX_TABLESPACE
- ''
- DEFAULT_TABLESPACE
- ''
- DISALLOWED_USER_AGENTS
- ()
- EMAIL_BACKEND
- 'django.core.mail.backends.smtp.EmailBackend'
- EMAIL_HOST
- 'localhost'
- EMAIL_HOST_PASSWORD
- '********************'
- EMAIL_HOST_USER
- ''
- EMAIL_PORT
- 25
- EMAIL_SUBJECT_PREFIX
- '[Django] '
- EMAIL_USE_TLS
- False
- FILE_CHARSET
- 'utf-8'
- FILE_UPLOAD_HANDLERS
- ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
- FILE_UPLOAD_MAX_MEMORY_SIZE
- 2621440
- FILE_UPLOAD_PERMISSIONS
- None
- FILE_UPLOAD_TEMP_DIR
- None
- FIRST_DAY_OF_WEEK
- 0
- FIXTURE_DIRS
- ()
- FORCE_SCRIPT_NAME
- None
- FORMAT_MODULE_PATH
- None
- IGNORABLE_404_ENDS
- ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
- IGNORABLE_404_STARTS
- ('/cgi-bin/', '/_vti_bin', '/_vti_inf')
- INSTALLED_APPS
- ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.admin', 'samosit.pages', 'samosit.projects', 'samosit', 'sorl.thumbnail']
- INTERNAL_IPS
- ()
- LANGUAGES
- (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese'))
- LANGUAGES_BIDI
- ('he', 'ar', 'fa')
- LANGUAGE_CODE
- 'en-us'
- LANGUAGE_COOKIE_NAME
- 'django_language'
- LOCALE_PATHS
- ()
- LOGIN_REDIRECT_URL
- '/accounts/profile/'
- LOGIN_URL
- '/accounts/login/'
- LOGOUT_URL
- '/accounts/logout/'
- MANAGERS
- ()
- MEDIA_ROOT
- '/home/samos/workspace/Samos-IT/samosit/media/'
- MEDIA_URL
- '/media/'
- MESSAGE_STORAGE
- 'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'
- MIDDLEWARE_CLASSES
- ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')
- MONTH_DAY_FORMAT
- 'F j'
- NUMBER_GROUPING
- 0
- PAGES_ROOT
- 'pages/'
- PASSWORD_RESET_TIMEOUT_DAYS
- '********************'
- PREPEND_WWW
- False
- PROFANITIES_LIST
- '********************'
- PROJECTS_ROOT
- 'projects/'
- ROOT_URLCONF
- 'samosit.urls'
- SECRET_KEY
- '********************'
- SEND_BROKEN_LINK_EMAILS
- False
- SERVER_EMAIL
- 'root@localhost'
- SESSION_COOKIE_AGE
- 1209600
- SESSION_COOKIE_DOMAIN
- None
- SESSION_COOKIE_NAME
- 'sessionid'
- SESSION_COOKIE_PATH
- '/'
- SESSION_COOKIE_SECURE
- False
- SESSION_ENGINE
- 'django.contrib.sessions.backends.db'
- SESSION_EXPIRE_AT_BROWSER_CLOSE
- False
- SESSION_FILE_PATH
- None
- SESSION_SAVE_EVERY_REQUEST
- False
- SETTINGS_MODULE
- 'samosit.settings'
- SHORT_DATETIME_FORMAT
- 'm/d/Y P'
- SHORT_DATE_FORMAT
- 'm/d/Y'
- SITE_ID
- 1
- TEMPLATE_CONTEXT_PROCESSORS
- ('django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.core.context_processors.media')
- TEMPLATE_DEBUG
- True
- TEMPLATE_DIRS
- ('/home/samos/workspace/Samos-IT/samosit/templates',)
- TEMPLATE_LOADERS
- ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader')
- TEMPLATE_STRING_IF_INVALID
- ''
- TEST_DATABASE_CHARSET
- None
- TEST_DATABASE_COLLATION
- None
- TEST_DATABASE_NAME
- None
- TEST_RUNNER
- 'django.test.simple.DjangoTestSuiteRunner'
- THOUSAND_SEPARATOR
- ','
- THUMBNAIL_BACKEND
- 'sorl.thumbnail.base.ThumbnailBackend'
- THUMBNAIL_CACHE_TIMEOUT
- 2147483647
- THUMBNAIL_COLORSPACE
- 'RGB'
- THUMBNAIL_DEBUG
- True
- THUMBNAIL_DUMMY
- False
- THUMBNAIL_DUMMY_RATIO
- 1.5
- THUMBNAIL_ENGINE
- 'sorl.thumbnail.engines.pil_engine.Engine'
- THUMBNAIL_FORMAT
- 'JPEG'
- THUMBNAIL_KEY_PREFIX
- 'sorl-thumbnail'
- THUMBNAIL_KVSTORE
- 'sorl.thumbnail.kvstores.cached_db_kvstore.KVStore'
- THUMBNAIL_PREFIX
- 'cache/'
- THUMBNAIL_QUALITY
- 95
- THUMBNAIL_REDIS_DB
- 0
- THUMBNAIL_REDIS_HOST
- 'localhost'
- THUMBNAIL_REDIS_PORT
- 6379
- THUMBNAIL_STORAGE
- 'django.core.files.storage.FileSystemStorage'
- THUMBNAIL_UPSCALE
- True
- TIME_FORMAT
- 'P'
- TIME_INPUT_FORMATS
- ('%H:%M:%S', '%H:%M')
- TIME_ZONE
- 'America/Chicago'
- TRANSACTIONS_MANAGED
- False
- URL_VALIDATOR_USER_AGENT
- 'Django/1.2.3 (http://www.djangoproject.com)'
- USE_ETAGS
- False
- USE_I18N
- True
- USE_L10N
- True
- USE_THOUSAND_SEPARATOR
- False
- YEAR_MONTH_FORMAT
- 'F Y'
- You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.
Add Comment
Please, Sign In to add comment