Guest User

error sorl-thumbnail

a guest
Dec 7th, 2010
941
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 134.31 KB | None | 0 0
  1. TemplateSyntaxError at /projects/2/test
  2.  
  3. Caught ValueError while rendering: timestamp out of range for platform time_t
  4.  
  5. Request Method: GET
  6. Request URL: http://localhost:8000/projects/2/test
  7. Django Version: 1.2.3
  8. Exception Type: TemplateSyntaxError
  9. Exception Value:
  10.  
  11. Caught ValueError while rendering: timestamp out of range for platform time_t
  12.  
  13. Exception Location: /usr/local/lib/python2.6/dist-packages/django/core/cache/backends/db.py in _base_set, line 83
  14. Python Executable: /usr/bin/python2.6
  15. Python Version: 2.6.6
  16. 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']
  17. Server time: Tue, 7 Dec 2010 11:28:56 -0600
  18. Template error
  19.  
  20. In template /home/samos/workspace/Samos-IT/samosit/templates/projects/project_detail.html, error at line 7
  21. Caught ValueError while rendering: timestamp out of range for platform time_t
  22. 1 {% extends "page.html" %}
  23. 2 {% load thumbnail %}
  24. 3
  25. 4 {% block metatitle %}{{object.metatitle}}{% endblock %}
  26. 5 {% block content %}
  27. 6 <h1 align="center">{{object.title}}</h1>
  28. 7 {% thumbnail object.image "100x100" crop="center" as im %}
  29. 8 <img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}">
  30. 9 {% endthumbnail %}
  31. 10 <img align="left" src="{{ MEDIA_URL }}{{object.image}}" />
  32. 11 <div class="project-content">{{object.content|safe}}</div>
  33. 12 <hr/>
  34. 13
  35. 14 {% endblock %}
  36. 15
  37. 16 {% block sidebar %}
  38. 17 <div class="box">
  39. Traceback Switch to copy-and-paste view
  40.  
  41. * /usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py in get_response
  42. 93. # Apply view middleware
  43. 94. for middleware_method in self._view_middleware:
  44. 95. response = middleware_method(request, callback, callback_args, callback_kwargs)
  45. 96. if response:
  46. 97. return response
  47. 98.
  48. 99. try:
  49. 100. response = callback(request, *callback_args, **callback_kwargs) ...
  50. 101. except Exception, e:
  51. 102. # If the view raised an exception, run it through exception
  52. 103. # middleware, and if the exception middleware returns a
  53. 104. # response, use that. Otherwise, reraise the exception.
  54. 105. for middleware_method in self._exception_middleware:
  55. 106. response = middleware_method(request, e)
  56. ▶ Local vars
  57. Variable Value
  58. callback
  59. <function detail at 0x9589b54>
  60. callback_args
  61. ()
  62. callback_kwargs
  63. {'project_id': u'2', 'slug': u'test'}
  64. e
  65. TemplateSyntaxError(u'Caught ValueError while rendering: timestamp out of range for platform time_t',)
  66. exceptions
  67. <module 'django.core.exceptions' from '/usr/local/lib/python2.6/dist-packages/django/core/exceptions.pyc'>
  68. middleware_method
  69. <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x94ec3ac>>
  70. receivers
  71. [(<function _rollback_on_exception at 0x90a4aac>, None)]
  72. request
  73. <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)}>
  74. resolver
  75. <RegexURLResolver samosit.urls (None:None) ^/>
  76. response
  77. None
  78. self
  79. <django.core.handlers.wsgi.WSGIHandler object at 0x942d30c>
  80. settings
  81. <django.conf.LazySettings object at 0x8f9822c>
  82. urlconf
  83. 'samosit.urls'
  84. urlresolvers
  85. <module 'django.core.urlresolvers' from '/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.pyc'>
  86. * /home/samos/workspace/Samos-IT/samosit/../samosit/projects/views.py in detail
  87. 7. objects = Project.objects.all()
  88. 8. imageurl = "/media/"+project.image
  89. 9. return render_to_response('projects/project_index.html', {'objects' : objects, 'imageurl' : imageurl}, context_instance=RequestContext(request))
  90. 10.
  91. 11. def detail(request, project_id, slug):
  92. 12. project = get_object_or_404(Project, pk=project_id)
  93. 13. imageurl = "/media/"+project.image.url
  94. 14. return render_to_response('projects/project_detail.html', {'object' : project, 'imageurl' : imageurl}, context_instance=RequestContext(request)) ...
  95. ▶ Local vars
  96. Variable Value
  97. imageurl
  98. u'/media//media/upload/projects/IMG005.jpg'
  99. project
  100. <Project: Test>
  101. project_id
  102. u'2'
  103. request
  104. <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)}>
  105. slug
  106. u'test'
  107. * /usr/local/lib/python2.6/dist-packages/django/shortcuts/__init__.py in render_to_response
  108. 13.
  109. 14. def render_to_response(*args, **kwargs):
  110. 15. """
  111. 16. Returns a HttpResponse whose content is filled with the result of calling
  112. 17. django.template.loader.render_to_string() with the passed arguments.
  113. 18. """
  114. 19. httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None)}
  115. 20. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs) ...
  116. 21.
  117. 22. def redirect(to, *args, **kwargs):
  118. 23. """
  119. 24. Returns an HttpResponseRedirect to the apropriate URL for the arguments
  120. 25. passed.
  121. 26.
  122. ▶ Local vars
  123. Variable Value
  124. args
  125. ('projects/project_detail.html', {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>})
  126. httpresponse_kwargs
  127. {'mimetype': None}
  128. kwargs
  129. {'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/> '>]>}]}
  130. * /usr/local/lib/python2.6/dist-packages/django/template/loader.py in render_to_string
  131. 179. t = select_template(template_name)
  132. 180. else:
  133. 181. t = get_template(template_name)
  134. 182. if context_instance:
  135. 183. context_instance.update(dictionary)
  136. 184. else:
  137. 185. context_instance = Context(dictionary)
  138. 186. return t.render(context_instance) ...
  139. 187.
  140. 188. def select_template(template_name_list):
  141. 189. "Given a list of template names, returns the first that can be loaded."
  142. 190. for template_name in template_name_list:
  143. 191. try:
  144. 192. return get_template(template_name)
  145. ▶ Local vars
  146. Variable Value
  147. context_instance
  148. [{}, {'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/> '>]>}]
  149. dictionary
  150. {'imageurl': u'/media//media/upload/projects/IMG005.jpg', 'object': <Project: Test>}
  151. t
  152. <django.template.Template object at 0x958890c>
  153. template_name
  154. 'projects/project_detail.html'
  155. * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in render
  156. 166. def _render(self, context):
  157. 167. return self.nodelist.render(context)
  158. 168.
  159. 169. def render(self, context):
  160. 170. "Display stage -- can be called many times"
  161. 171. context.render_context.push()
  162. 172. try:
  163. 173. return self._render(context) ...
  164. 174. finally:
  165. 175. context.render_context.pop()
  166. 176.
  167. 177. def compile_string(template_string, origin):
  168. 178. "Compiles template_string into NodeList ready for rendering"
  169. 179. if settings.TEMPLATE_DEBUG:
  170. ▶ Local vars
  171. Variable Value
  172. context
  173. [{}, {'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/> '>]>}]
  174. self
  175. <django.template.Template object at 0x958890c>
  176. * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in _render
  177. 160.
  178. 161. def __iter__(self):
  179. 162. for node in self.nodelist:
  180. 163. for subnode in node:
  181. 164. yield subnode
  182. 165.
  183. 166. def _render(self, context):
  184. 167. return self.nodelist.render(context) ...
  185. 168.
  186. 169. def render(self, context):
  187. 170. "Display stage -- can be called many times"
  188. 171. context.render_context.push()
  189. 172. try:
  190. 173. return self._render(context)
  191. ▶ Local vars
  192. Variable Value
  193. context
  194. [{}, {'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/> '>]>}]
  195. self
  196. <django.template.Template object at 0x958890c>
  197. * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in render
  198. 789. # extend_nodelist().
  199. 790. contains_nontext = False
  200. 791.
  201. 792. def render(self, context):
  202. 793. bits = []
  203. 794. for node in self:
  204. 795. if isinstance(node, Node):
  205. 796. bits.append(self.render_node(node, context)) ...
  206. 797. else:
  207. 798. bits.append(node)
  208. 799. return mark_safe(''.join([force_unicode(b) for b in bits]))
  209. 800.
  210. 801. def get_nodes_by_type(self, nodetype):
  211. 802. "Return a list of all nodes of the given type"
  212. ▶ Local vars
  213. Variable Value
  214. bits
  215. []
  216. context
  217. [{}, {'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/> '>]>}]
  218. node
  219. <ExtendsNode: extends "page.html">
  220. self
  221. [<ExtendsNode: extends "page.html">]
  222. * /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node
  223. 65. def compile_function_error(self, token, e):
  224. 66. if not hasattr(e, 'source'):
  225. 67. e.source = token.source
  226. 68.
  227. 69. class DebugNodeList(NodeList):
  228. 70. def render_node(self, node, context):
  229. 71. try:
  230. 72. result = node.render(context) ...
  231. 73. except TemplateSyntaxError, e:
  232. 74. if not hasattr(e, 'source'):
  233. 75. e.source = node.source
  234. 76. raise
  235. 77. except Exception, e:
  236. 78. from sys import exc_info
  237. ▶ Local vars
  238. Variable Value
  239. context
  240. [{}, {'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/> '>]>}]
  241. e
  242. TemplateSyntaxError(u'Caught ValueError while rendering: timestamp out of range for platform time_t',)
  243. node
  244. <ExtendsNode: extends "page.html">
  245. self
  246. [<ExtendsNode: extends "page.html">]
  247. * /usr/local/lib/python2.6/dist-packages/django/template/loader_tags.py in render
  248. 118. blocks = dict([(n.name, n) for n in
  249. 119. compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
  250. 120. block_context.add_blocks(blocks)
  251. 121. break
  252. 122.
  253. 123. # Call Template._render explicitly so the parser context stays
  254. 124. # the same.
  255. 125. return compiled_parent._render(context) ...
  256. 126.
  257. 127. class ConstantIncludeNode(Node):
  258. 128. def __init__(self, template_path):
  259. 129. try:
  260. 130. t = get_template(template_path)
  261. 131. self.template = t
  262. ▶ Local vars
  263. Variable Value
  264. block_context
  265. <django.template.loader_tags.BlockContext object at 0x959ecac>
  266. compiled_parent
  267. <django.template.Template object at 0x959e6cc>
  268. context
  269. [{}, {'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/> '>]>}]
  270. node
  271. <ExtendsNode: extends "base.html">
  272. self
  273. <ExtendsNode: extends "page.html">
  274. * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in _render
  275. 160.
  276. 161. def __iter__(self):
  277. 162. for node in self.nodelist:
  278. 163. for subnode in node:
  279. 164. yield subnode
  280. 165.
  281. 166. def _render(self, context):
  282. 167. return self.nodelist.render(context) ...
  283. 168.
  284. 169. def render(self, context):
  285. 170. "Display stage -- can be called many times"
  286. 171. context.render_context.push()
  287. 172. try:
  288. 173. return self._render(context)
  289. ▶ Local vars
  290. Variable Value
  291. context
  292. [{}, {'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/> '>]>}]
  293. self
  294. <django.template.Template object at 0x959e6cc>
  295. * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in render
  296. 789. # extend_nodelist().
  297. 790. contains_nontext = False
  298. 791.
  299. 792. def render(self, context):
  300. 793. bits = []
  301. 794. for node in self:
  302. 795. if isinstance(node, Node):
  303. 796. bits.append(self.render_node(node, context)) ...
  304. 797. else:
  305. 798. bits.append(node)
  306. 799. return mark_safe(''.join([force_unicode(b) for b in bits]))
  307. 800.
  308. 801. def get_nodes_by_type(self, nodetype):
  309. 802. "Return a list of all nodes of the given type"
  310. ▶ Local vars
  311. Variable Value
  312. bits
  313. []
  314. context
  315. [{}, {'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/> '>]>}]
  316. node
  317. <ExtendsNode: extends "base.html">
  318. self
  319. [<ExtendsNode: extends "base.html">]
  320. * /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node
  321. 65. def compile_function_error(self, token, e):
  322. 66. if not hasattr(e, 'source'):
  323. 67. e.source = token.source
  324. 68.
  325. 69. class DebugNodeList(NodeList):
  326. 70. def render_node(self, node, context):
  327. 71. try:
  328. 72. result = node.render(context) ...
  329. 73. except TemplateSyntaxError, e:
  330. 74. if not hasattr(e, 'source'):
  331. 75. e.source = node.source
  332. 76. raise
  333. 77. except Exception, e:
  334. 78. from sys import exc_info
  335. ▶ Local vars
  336. Variable Value
  337. context
  338. [{}, {'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/> '>]>}]
  339. e
  340. TemplateSyntaxError(u'Caught ValueError while rendering: timestamp out of range for platform time_t',)
  341. node
  342. <ExtendsNode: extends "base.html">
  343. self
  344. [<ExtendsNode: extends "base.html">]
  345. * /usr/local/lib/python2.6/dist-packages/django/template/loader_tags.py in render
  346. 118. blocks = dict([(n.name, n) for n in
  347. 119. compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
  348. 120. block_context.add_blocks(blocks)
  349. 121. break
  350. 122.
  351. 123. # Call Template._render explicitly so the parser context stays
  352. 124. # the same.
  353. 125. return compiled_parent._render(context) ...
  354. 126.
  355. 127. class ConstantIncludeNode(Node):
  356. 128. def __init__(self, template_path):
  357. 129. try:
  358. 130. t = get_template(template_path)
  359. 131. self.template = t
  360. ▶ Local vars
  361. Variable Value
  362. block_context
  363. <django.template.loader_tags.BlockContext object at 0x959ecac>
  364. blocks
  365. {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'>]>}
  366. compiled_parent
  367. <django.template.Template object at 0x95a818c>
  368. context
  369. [{}, {'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/> '>]>}]
  370. n
  371. <Block Node: beforebody. Contents: [<Text Node: ' '>]>
  372. node
  373. <django.template.defaulttags.LoadNode object at 0x95a89ac>
  374. self
  375. <ExtendsNode: extends "base.html">
  376. * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in _render
  377. 160.
  378. 161. def __iter__(self):
  379. 162. for node in self.nodelist:
  380. 163. for subnode in node:
  381. 164. yield subnode
  382. 165.
  383. 166. def _render(self, context):
  384. 167. return self.nodelist.render(context) ...
  385. 168.
  386. 169. def render(self, context):
  387. 170. "Display stage -- can be called many times"
  388. 171. context.render_context.push()
  389. 172. try:
  390. 173. return self._render(context)
  391. ▶ Local vars
  392. Variable Value
  393. context
  394. [{}, {'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/> '>]>}]
  395. self
  396. <django.template.Template object at 0x95a818c>
  397. * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in render
  398. 789. # extend_nodelist().
  399. 790. contains_nontext = False
  400. 791.
  401. 792. def render(self, context):
  402. 793. bits = []
  403. 794. for node in self:
  404. 795. if isinstance(node, Node):
  405. 796. bits.append(self.render_node(node, context)) ...
  406. 797. else:
  407. 798. bits.append(node)
  408. 799. return mark_safe(''.join([force_unicode(b) for b in bits]))
  409. 800.
  410. 801. def get_nodes_by_type(self, nodetype):
  411. 802. "Return a list of all nodes of the given type"
  412. ▶ Local vars
  413. Variable Value
  414. bits
  415. ['', 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 ']
  416. context
  417. [{}, {'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/> '>]>}]
  418. node
  419. <Block Node: body. Contents: [<Text Node: ' '>]>
  420. self
  421. [<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>'>]
  422. * /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node
  423. 65. def compile_function_error(self, token, e):
  424. 66. if not hasattr(e, 'source'):
  425. 67. e.source = token.source
  426. 68.
  427. 69. class DebugNodeList(NodeList):
  428. 70. def render_node(self, node, context):
  429. 71. try:
  430. 72. result = node.render(context) ...
  431. 73. except TemplateSyntaxError, e:
  432. 74. if not hasattr(e, 'source'):
  433. 75. e.source = node.source
  434. 76. raise
  435. 77. except Exception, e:
  436. 78. from sys import exc_info
  437. ▶ Local vars
  438. Variable Value
  439. context
  440. [{}, {'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/> '>]>}]
  441. e
  442. TemplateSyntaxError(u'Caught ValueError while rendering: timestamp out of range for platform time_t',)
  443. node
  444. <Block Node: body. Contents: [<Text Node: ' '>]>
  445. self
  446. [<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>'>]
  447. * /usr/local/lib/python2.6/dist-packages/django/template/loader_tags.py in render
  448. 55. push = block = block_context.pop(self.name)
  449. 56. if block is None:
  450. 57. block = self
  451. 58. # Create new block so we can store context without thread-safety issues.
  452. 59. block = BlockNode(block.name, block.nodelist)
  453. 60. block.context = context
  454. 61. context['block'] = block
  455. 62. result = block.nodelist.render(context) ...
  456. 63. if push is not None:
  457. 64. block_context.push(self.name, push)
  458. 65. context.pop()
  459. 66. return result
  460. 67.
  461. 68. def super(self):
  462. ▶ Local vars
  463. Variable Value
  464. block
  465. <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: ' '>]>
  466. block_context
  467. <django.template.loader_tags.BlockContext object at 0x959ecac>
  468. context
  469. [{}, {'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/> '>]>}]
  470. push
  471. <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: ' '>]>
  472. self
  473. <Block Node: body. Contents: [<Text Node: ' '>]>
  474. * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in render
  475. 789. # extend_nodelist().
  476. 790. contains_nontext = False
  477. 791.
  478. 792. def render(self, context):
  479. 793. bits = []
  480. 794. for node in self:
  481. 795. if isinstance(node, Node):
  482. 796. bits.append(self.render_node(node, context)) ...
  483. 797. else:
  484. 798. bits.append(node)
  485. 799. return mark_safe(''.join([force_unicode(b) for b in bits]))
  486. 800.
  487. 801. def get_nodes_by_type(self, nodetype):
  488. 802. "Return a list of all nodes of the given type"
  489. ▶ Local vars
  490. Variable Value
  491. bits
  492. [u'\n ']
  493. context
  494. [{}, {'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/> '>]>}]
  495. node
  496. <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> '>]>
  497. self
  498. [<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: ' '>]
  499. * /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node
  500. 65. def compile_function_error(self, token, e):
  501. 66. if not hasattr(e, 'source'):
  502. 67. e.source = token.source
  503. 68.
  504. 69. class DebugNodeList(NodeList):
  505. 70. def render_node(self, node, context):
  506. 71. try:
  507. 72. result = node.render(context) ...
  508. 73. except TemplateSyntaxError, e:
  509. 74. if not hasattr(e, 'source'):
  510. 75. e.source = node.source
  511. 76. raise
  512. 77. except Exception, e:
  513. 78. from sys import exc_info
  514. ▶ Local vars
  515. Variable Value
  516. context
  517. [{}, {'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/> '>]>}]
  518. e
  519. TemplateSyntaxError(u'Caught ValueError while rendering: timestamp out of range for platform time_t',)
  520. node
  521. <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> '>]>
  522. self
  523. [<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: ' '>]
  524. * /usr/local/lib/python2.6/dist-packages/django/template/loader_tags.py in render
  525. 55. push = block = block_context.pop(self.name)
  526. 56. if block is None:
  527. 57. block = self
  528. 58. # Create new block so we can store context without thread-safety issues.
  529. 59. block = BlockNode(block.name, block.nodelist)
  530. 60. block.context = context
  531. 61. context['block'] = block
  532. 62. result = block.nodelist.render(context) ...
  533. 63. if push is not None:
  534. 64. block_context.push(self.name, push)
  535. 65. context.pop()
  536. 66. return result
  537. 67.
  538. 68. def super(self):
  539. ▶ Local vars
  540. Variable Value
  541. block
  542. <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> '>]>
  543. block_context
  544. <django.template.loader_tags.BlockContext object at 0x959ecac>
  545. context
  546. [{}, {'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/> '>]>}]
  547. push
  548. <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> '>]>
  549. self
  550. <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> '>]>
  551. * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in render
  552. 789. # extend_nodelist().
  553. 790. contains_nontext = False
  554. 791.
  555. 792. def render(self, context):
  556. 793. bits = []
  557. 794. for node in self:
  558. 795. if isinstance(node, Node):
  559. 796. bits.append(self.render_node(node, context)) ...
  560. 797. else:
  561. 798. bits.append(node)
  562. 799. return mark_safe(''.join([force_unicode(b) for b in bits]))
  563. 800.
  564. 801. def get_nodes_by_type(self, nodetype):
  565. 802. "Return a list of all nodes of the given type"
  566. ▶ Local vars
  567. Variable Value
  568. bits
  569. [u'\n <div class="span-24">\n <div id="pagecontent" class="span-15 last">\n ']
  570. context
  571. [{}, {'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/> '>]>}]
  572. node
  573. <Block Node: content. Contents: [<Text Node: ' '>]>
  574. self
  575. [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]
  576. * /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node
  577. 65. def compile_function_error(self, token, e):
  578. 66. if not hasattr(e, 'source'):
  579. 67. e.source = token.source
  580. 68.
  581. 69. class DebugNodeList(NodeList):
  582. 70. def render_node(self, node, context):
  583. 71. try:
  584. 72. result = node.render(context) ...
  585. 73. except TemplateSyntaxError, e:
  586. 74. if not hasattr(e, 'source'):
  587. 75. e.source = node.source
  588. 76. raise
  589. 77. except Exception, e:
  590. 78. from sys import exc_info
  591. ▶ Local vars
  592. Variable Value
  593. context
  594. [{}, {'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/> '>]>}]
  595. e
  596. TemplateSyntaxError(u'Caught ValueError while rendering: timestamp out of range for platform time_t',)
  597. node
  598. <Block Node: content. Contents: [<Text Node: ' '>]>
  599. self
  600. [<Text Node: ' <div class="'>, <Block Node: content. Contents: [<Text Node: ' '>]>, <Text Node: ' </div> '>, <Block Node: sidebar. Contents: [<Text Node: ' <div'>]>, <Text Node: ' </div> '>]
  601. * /usr/local/lib/python2.6/dist-packages/django/template/loader_tags.py in render
  602. 55. push = block = block_context.pop(self.name)
  603. 56. if block is None:
  604. 57. block = self
  605. 58. # Create new block so we can store context without thread-safety issues.
  606. 59. block = BlockNode(block.name, block.nodelist)
  607. 60. block.context = context
  608. 61. context['block'] = block
  609. 62. result = block.nodelist.render(context) ...
  610. 63. if push is not None:
  611. 64. block_context.push(self.name, push)
  612. 65. context.pop()
  613. 66. return result
  614. 67.
  615. 68. def super(self):
  616. ▶ Local vars
  617. Variable Value
  618. block
  619. <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/> '>]>
  620. block_context
  621. <django.template.loader_tags.BlockContext object at 0x959ecac>
  622. context
  623. [{}, {'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/> '>]>}]
  624. push
  625. <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/> '>]>
  626. self
  627. <Block Node: content. Contents: [<Text Node: ' '>]>
  628. * /usr/local/lib/python2.6/dist-packages/django/template/__init__.py in render
  629. 789. # extend_nodelist().
  630. 790. contains_nontext = False
  631. 791.
  632. 792. def render(self, context):
  633. 793. bits = []
  634. 794. for node in self:
  635. 795. if isinstance(node, Node):
  636. 796. bits.append(self.render_node(node, context)) ...
  637. 797. else:
  638. 798. bits.append(node)
  639. 799. return mark_safe(''.join([force_unicode(b) for b in bits]))
  640. 800.
  641. 801. def get_nodes_by_type(self, nodetype):
  642. 802. "Return a list of all nodes of the given type"
  643. ▶ Local vars
  644. Variable Value
  645. bits
  646. [u'\n <h1 align="center">', u'Test', u'</h1>\n']
  647. context
  648. [{}, {'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/> '>]>}]
  649. node
  650. <ThumbnailNode>
  651. self
  652. [<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/> '>]
  653. * /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node
  654. 65. def compile_function_error(self, token, e):
  655. 66. if not hasattr(e, 'source'):
  656. 67. e.source = token.source
  657. 68.
  658. 69. class DebugNodeList(NodeList):
  659. 70. def render_node(self, node, context):
  660. 71. try:
  661. 72. result = node.render(context) ...
  662. 73. except TemplateSyntaxError, e:
  663. 74. if not hasattr(e, 'source'):
  664. 75. e.source = node.source
  665. 76. raise
  666. 77. except Exception, e:
  667. 78. from sys import exc_info
  668. ▶ Local vars
  669. Variable Value
  670. context
  671. [{}, {'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/> '>]>}]
  672. e
  673. ValueError('timestamp out of range for platform time_t',)
  674. exc_info
  675. <built-in function exc_info>
  676. node
  677. <ThumbnailNode>
  678. self
  679. [<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/> '>]
  680. wrapped
  681. TemplateSyntaxError(u'Caught ValueError while rendering: timestamp out of range for platform time_t',)
  682. * /usr/local/lib/python2.6/dist-packages/sorl/thumbnail/templatetags/thumbnail.py in render
  683. 38. """
  684. 39. A Node that renders safely
  685. 40. """
  686. 41. nodelist_empty = NodeList()
  687. 42.
  688. 43. def render(self, context):
  689. 44. try:
  690. 45. return self._render(context) ...
  691. 46. except Exception:
  692. 47. if settings.THUMBNAIL_DEBUG:
  693. 48. raise
  694. 49. logger.error('Thumbnail tag failed:', exc_info=sys.exc_info())
  695. 50. return self.nodelist_empty.render(context)
  696. 51.
  697. ▶ Local vars
  698. Variable Value
  699. context
  700. [{}, {'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/> '>]>}]
  701. self
  702. <ThumbnailNode>
  703. * /usr/local/lib/python2.6/dist-packages/sorl/thumbnail/templatetags/thumbnail.py in _render
  704. 90. options.update(value)
  705. 91. else:
  706. 92. options[key] = value
  707. 93. if settings.THUMBNAIL_DUMMY:
  708. 94. thumbnail = DummyImageFile(geometry)
  709. 95. elif file_:
  710. 96. thumbnail = default.backend.get_thumbnail(
  711. 97. file_, geometry, **options ...
  712. 98. )
  713. 99. else:
  714. 100. return self.nodelist_empty.render(context)
  715. 101. context.push()
  716. 102. context[self.as_var] = thumbnail
  717. 103. output = self.nodelist_file.render(context)
  718. ▶ Local vars
  719. Variable Value
  720. context
  721. [{}, {'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/> '>]>}]
  722. expr
  723. <django.template.FilterExpression object at 0x95a286c>
  724. file_
  725. <ImageFieldFile: upload/projects/IMG005.jpg>
  726. geometry
  727. u'100x100'
  728. key
  729. 'crop'
  730. noresolve
  731. {u'False': False, u'None': None, u'True': True}
  732. options
  733. {'crop': u'center'}
  734. self
  735. <ThumbnailNode>
  736. value
  737. u'center'
  738. * /usr/local/lib/python2.6/dist-packages/sorl/thumbnail/base.py in get_thumbnail
  739. 30. secondly it will create it.
  740. 31. """
  741. 32. source = ImageFile(file_)
  742. 33. for key, value in self.default_options.iteritems():
  743. 34. options.setdefault(key, value)
  744. 35. name = self._get_thumbnail_filename(source, geometry_string, options)
  745. 36. thumbnail = ImageFile(name, default.storage)
  746. 37. cached = default.kvstore.get(thumbnail) ...
  747. 38. if cached:
  748. 39. return cached
  749. 40. if not thumbnail.exists():
  750. 41. # We have to check exists() because the Storage backend does not
  751. 42. # overwrite in some implementations.
  752. 43. source_image = default.engine.get_image(source)
  753. ▶ Local vars
  754. Variable Value
  755. file_
  756. <ImageFieldFile: upload/projects/IMG005.jpg>
  757. geometry_string
  758. u'100x100'
  759. key
  760. 'format'
  761. name
  762. 'cache/72/c7/72c70e8914deaa46fe4275125cb62e57.jpg'
  763. options
  764. {'colorspace': 'RGB', 'crop': u'center', 'format': 'JPEG', 'quality': 95, 'upscale': True}
  765. self
  766. <sorl.thumbnail.base.ThumbnailBackend object at 0x95b1e6c>
  767. source
  768. <sorl.thumbnail.images.ImageFile object at 0x95b1e8c>
  769. thumbnail
  770. <sorl.thumbnail.images.ImageFile object at 0x95b1f6c>
  771. value
  772. 'JPEG'
  773. * /usr/local/lib/python2.6/dist-packages/sorl/thumbnail/kvstores/base.py in get
  774. 18.
  775. 19.
  776. 20. class KVStoreBase(object):
  777. 21. def get(self, image_file):
  778. 22. """
  779. 23. Gets the ``image_file`` from store. Returns ``None`` if not found.
  780. 24. """
  781. 25. return self._get(image_file.key) ...
  782. 26.
  783. 27. def set(self, image_file, source=None):
  784. 28. """
  785. 29. Updates store for the `image_file`. Makes sure the `image_file` has a
  786. 30. size set.
  787. 31. """
  788. ▶ Local vars
  789. Variable Value
  790. image_file
  791. <sorl.thumbnail.images.ImageFile object at 0x95b1f6c>
  792. self
  793. <sorl.thumbnail.kvstores.cached_db_kvstore.KVStore object at 0x95b1f0c>
  794. * /usr/local/lib/python2.6/dist-packages/sorl/thumbnail/kvstores/base.py in _get
  795. 116. all_keys = self._find_keys_raw(settings.THUMBNAIL_KEY_PREFIX)
  796. 117. self._delete_raw(*all_keys)
  797. 118.
  798. 119. def _get(self, key, identity='image'):
  799. 120. """
  800. 121. Deserializing, prefix wrapper for _get_raw
  801. 122. """
  802. 123. value = self._get_raw(add_prefix(key, identity)) ...
  803. 124. if value is None:
  804. 125. return None
  805. 126. if identity == 'image':
  806. 127. return deserialize_image_file(value)
  807. 128. return deserialize(value)
  808. 129.
  809. ▶ Local vars
  810. Variable Value
  811. identity
  812. 'image'
  813. key
  814. 'abac88438ac4cce7636d479de415bd55'
  815. self
  816. <sorl.thumbnail.kvstores.cached_db_kvstore.KVStore object at 0x95b1f0c>
  817. * /usr/local/lib/python2.6/dist-packages/sorl/thumbnail/kvstores/cached_db_kvstore.py in _get_raw
  818. 13. value = cache.get(key)
  819. 14. if value is None:
  820. 15. try:
  821. 16. value = KVStoreModel.objects.get(key=key).value
  822. 17. except KVStoreModel.DoesNotExist:
  823. 18. # we set the cache to prevent further db lookups
  824. 19. value = EMPTY_VALUE
  825. 20. cache.set(key, value, settings.THUMBNAIL_CACHE_TIMEOUT) ...
  826. 21. if value == EMPTY_VALUE:
  827. 22. return None
  828. 23. return value
  829. 24.
  830. 25. def _set_raw(self, key, value):
  831. 26. kv = KVStoreModel.objects.get_or_create(key=key)[0]
  832. ▶ Local vars
  833. Variable Value
  834. key
  835. 'sorl-thumbnail||image||abac88438ac4cce7636d479de415bd55'
  836. self
  837. <sorl.thumbnail.kvstores.cached_db_kvstore.KVStore object at 0x95b1f0c>
  838. value
  839. <class 'sorl.thumbnail.kvstores.cached_db_kvstore.EMPTY_VALUE'>
  840. * /usr/local/lib/python2.6/dist-packages/django/core/cache/backends/db.py in set
  841. 61. cursor.execute("DELETE FROM %s WHERE cache_key = %%s" % table, [key])
  842. 62. transaction.commit_unless_managed(using=db)
  843. 63. return default
  844. 64. value = connections[db].ops.process_clob(row[1])
  845. 65. return pickle.loads(base64.decodestring(value))
  846. 66.
  847. 67. def set(self, key, value, timeout=None):
  848. 68. self._base_set('set', key, value, timeout) ...
  849. 69.
  850. 70. def add(self, key, value, timeout=None):
  851. 71. return self._base_set('add', key, value, timeout)
  852. 72.
  853. 73. def _base_set(self, mode, key, value, timeout=None):
  854. 74. if timeout is None:
  855. ▶ Local vars
  856. Variable Value
  857. key
  858. 'sorl-thumbnail||image||abac88438ac4cce7636d479de415bd55'
  859. self
  860. <django.core.cache.backends.db.CacheClass object at 0x9371e8c>
  861. timeout
  862. 2147483647
  863. value
  864. <class 'sorl.thumbnail.kvstores.cached_db_kvstore.EMPTY_VALUE'>
  865. * /usr/local/lib/python2.6/dist-packages/django/core/cache/backends/db.py in _base_set
  866. 76. db = router.db_for_write(self.cache_model_class)
  867. 77. table = connections[db].ops.quote_name(self._table)
  868. 78. cursor = connections[db].cursor()
  869. 79.
  870. 80. cursor.execute("SELECT COUNT(*) FROM %s" % table)
  871. 81. num = cursor.fetchone()[0]
  872. 82. now = datetime.now().replace(microsecond=0)
  873. 83. exp = datetime.fromtimestamp(time.time() + timeout).replace(microsecond=0) ...
  874. 84. if num > self._max_entries:
  875. 85. self._cull(db, cursor, now)
  876. 86. encoded = base64.encodestring(pickle.dumps(value, 2)).strip()
  877. 87. cursor.execute("SELECT cache_key, expires FROM %s WHERE cache_key = %%s" % table, [key])
  878. 88. try:
  879. 89. result = cursor.fetchone()
  880. ▶ Local vars
  881. Variable Value
  882. cursor
  883. <django.db.backends.util.CursorDebugWrapper object at 0x95b770c>
  884. db
  885. 'default'
  886. key
  887. 'sorl-thumbnail||image||abac88438ac4cce7636d479de415bd55'
  888. mode
  889. 'set'
  890. now
  891. datetime.datetime(2010, 12, 7, 11, 28, 56)
  892. num
  893. 2L
  894. self
  895. <django.core.cache.backends.db.CacheClass object at 0x9371e8c>
  896. table
  897. '"cachetable"'
  898. timeout
  899. 2147483647
  900. value
  901. <class 'sorl.thumbnail.kvstores.cached_db_kvstore.EMPTY_VALUE'>
  902.  
  903. 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
  904.  
  905. Request information
  906. GET
  907.  
  908. No GET data
  909. POST
  910.  
  911. No POST data
  912. FILES
  913.  
  914. No FILES data
  915. COOKIES
  916. Variable Value
  917. csrftoken
  918. '49f12f9182678788827e48848924fc97'
  919. sessionid
  920. 'dbd14575ed9528c6678322b4731622ad'
  921. accessTokenId
  922. '82'
  923. dev_appserver_login
  924. '[email protected]:True:185804764220139124118'
  925. submenuheader
  926. '-1c'
  927. META
  928. Variable Value
  929. CONTENT_LENGTH
  930. ''
  931. CONTENT_TYPE
  932. 'text/plain'
  933. CSRF_COOKIE
  934. '49f12f9182678788827e48848924fc97'
  935. DBUS_SESSION_BUS_ADDRESS
  936. 'unix:abstract=/tmp/dbus-9QEQ35Bdlx,guid=cf5dc4cc597429e1dbfee23e000001d3'
  937. DEFAULTS_PATH
  938. '/usr/share/gconf/gnome.default.path'
  939. DESKTOP_SESSION
  940. 'gnome'
  941. DISPLAY
  942. ':0.0'
  943. DJANGO_SETTINGS_MODULE
  944. 'samosit.settings'
  945. GATEWAY_INTERFACE
  946. 'CGI/1.1'
  947. GDMSESSION
  948. 'gnome'
  949. GDM_KEYBOARD_LAYOUT
  950. 'us'
  951. GDM_LANG
  952. 'en_US.utf8'
  953. GIO_LAUNCHED_DESKTOP_FILE
  954. '/home/samos/Desktop/eclipse.desktop'
  955. GIO_LAUNCHED_DESKTOP_FILE_PID
  956. '4734'
  957. GNOME_DESKTOP_SESSION_ID
  958. 'this-is-deprecated'
  959. GNOME_KEYRING_CONTROL
  960. '/tmp/keyring-6fUUHL'
  961. GNOME_KEYRING_PID
  962. '1456'
  963. GTK_IM_MODULE
  964. 'xim'
  965. GTK_MODULES
  966. 'canberra-gtk-module'
  967. HOME
  968. '/home/samos'
  969. HTTP_ACCEPT
  970. 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
  971. HTTP_ACCEPT_CHARSET
  972. 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
  973. HTTP_ACCEPT_ENCODING
  974. 'gzip,deflate'
  975. HTTP_ACCEPT_LANGUAGE
  976. 'en-us,en;q=0.5'
  977. HTTP_CACHE_CONTROL
  978. 'max-age=0'
  979. HTTP_CONNECTION
  980. 'keep-alive'
  981. HTTP_COOKIE
  982. 'csrftoken=49f12f9182678788827e48848924fc97; sessionid=dbd14575ed9528c6678322b4731622ad; accessTokenId=82; dev_appserver_login="[email protected]:True:185804764220139124118"; submenuheader=-1c'
  983. HTTP_HOST
  984. 'localhost:8000'
  985. HTTP_KEEP_ALIVE
  986. '115'
  987. HTTP_REFERER
  988. 'http://localhost:8000/projects/1/tweetstream'
  989. HTTP_USER_AGENT
  990. 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/10.10 (maverick) Firefox/3.6.12'
  991. LANG
  992. 'en_US.utf8'
  993. LD_LIBRARY_PATH
  994. '/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'
  995. LOGNAME
  996. 'samos'
  997. MANDATORY_PATH
  998. '/usr/share/gconf/gnome.mandatory.path'
  999. MOZILLA_FIVE_HOME
  1000. '/usr/lib/xulrunner-1.9.2.12'
  1001. ORBIT_SOCKETDIR
  1002. '/tmp/orbit-samos'
  1003. PATH
  1004. '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games'
  1005. PATH_INFO
  1006. u'/projects/2/test'
  1007. PWD
  1008. '/home/samos'
  1009. PYDEV_COMPLETER_PYTHONPATH
  1010. '/home/samos/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev_1.6.3.2010100422/PySrc'
  1011. PYDEV_CONSOLE_ENCODING
  1012. 'UTF-8'
  1013. PYTHONIOENCODING
  1014. 'UTF-8'
  1015. PYTHONPATH
  1016. '/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'
  1017. QT_IM_MODULE
  1018. 'xim'
  1019. QUERY_STRING
  1020. ''
  1021. REMOTE_ADDR
  1022. '127.0.0.1'
  1023. REMOTE_HOST
  1024. ''
  1025. REQUEST_METHOD
  1026. 'GET'
  1027. SCRIPT_NAME
  1028. u''
  1029. SERVER_NAME
  1030. 'localhost.localdomain'
  1031. SERVER_PORT
  1032. '8000'
  1033. SERVER_PROTOCOL
  1034. 'HTTP/1.1'
  1035. SERVER_SOFTWARE
  1036. 'WSGIServer/0.1 Python/2.6.6'
  1037. SESSION_MANAGER
  1038. 'local/samos-UbuntuPC:@/tmp/.ICE-unix/1475,unix/samos-UbuntuPC:/tmp/.ICE-unix/1475'
  1039. SHELL
  1040. '/bin/bash'
  1041. SSH_AGENT_PID
  1042. '1515'
  1043. SSH_AUTH_SOCK
  1044. '/tmp/keyring-6fUUHL/ssh'
  1045. TZ
  1046. 'America/Chicago'
  1047. UBUNTU_MENUPROXY
  1048. '0'
  1049. USER
  1050. 'samos'
  1051. USERNAME
  1052. 'samos'
  1053. WINDOWPATH
  1054. '7'
  1055. XAUTHORITY
  1056. '/var/run/gdm/auth-for-samos-CbNDzT/database'
  1057. XDG_CONFIG_DIRS
  1058. '/etc/xdg/xdg-gnome:/etc/xdg'
  1059. XDG_DATA_DIRS
  1060. '/usr/share/gnome:/usr/local/share/:/usr/share/'
  1061. XDG_SESSION_COOKIE
  1062. '39e5f3750786984dfd8cae630000000b-1291735942.592340-313354827'
  1063. XMODIFIERS
  1064. '@im=SCIM'
  1065. wsgi.errors
  1066. <open file '<stderr>', mode 'w' at 0xb77060d0>
  1067. wsgi.file_wrapper
  1068. <class 'django.core.servers.basehttp.FileWrapper'>
  1069. wsgi.input
  1070. <socket._fileobject object at 0x94b016c>
  1071. wsgi.multiprocess
  1072. False
  1073. wsgi.multithread
  1074. True
  1075. wsgi.run_once
  1076. False
  1077. wsgi.url_scheme
  1078. 'http'
  1079. wsgi.version
  1080. (1, 0)
  1081. Settings
  1082. Using settings module samosit.settings
  1083. Setting Value
  1084. ABSOLUTE_URL_OVERRIDES
  1085. {}
  1086. ADMINS
  1087. ()
  1088. ADMIN_FOR
  1089. ()
  1090. ADMIN_MEDIA_PREFIX
  1091. '/media/admin/'
  1092. ALLOWED_INCLUDE_ROOTS
  1093. ()
  1094. APPEND_SLASH
  1095. True
  1096. AUTHENTICATION_BACKENDS
  1097. ('django.contrib.auth.backends.ModelBackend',)
  1098. BANNED_IPS
  1099. ()
  1100. CACHE_BACKEND
  1101. 'db://cachetable'
  1102. CACHE_MIDDLEWARE_KEY_PREFIX
  1103. ''
  1104. CACHE_MIDDLEWARE_SECONDS
  1105. 600
  1106. COMMENTS_ALLOW_PROFANITIES
  1107. False
  1108. COMMENTS_BANNED_USERS_GROUP
  1109. None
  1110. COMMENTS_FIRST_FEW
  1111. 0
  1112. COMMENTS_MODERATORS_GROUP
  1113. None
  1114. COMMENTS_SKETCHY_USERS_GROUP
  1115. None
  1116. CSRF_COOKIE_DOMAIN
  1117. None
  1118. CSRF_COOKIE_NAME
  1119. 'csrftoken'
  1120. CSRF_FAILURE_VIEW
  1121. 'django.views.csrf.csrf_failure'
  1122. DATABASES
  1123. {'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'}}
  1124. DATABASE_ENGINE
  1125. ''
  1126. DATABASE_HOST
  1127. ''
  1128. DATABASE_NAME
  1129. ''
  1130. DATABASE_OPTIONS
  1131. {}
  1132. DATABASE_PASSWORD
  1133. '********************'
  1134. DATABASE_PORT
  1135. ''
  1136. DATABASE_ROUTERS
  1137. []
  1138. DATABASE_USER
  1139. ''
  1140. DATETIME_FORMAT
  1141. 'N j, Y, P'
  1142. DATETIME_INPUT_FORMATS
  1143. ('%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')
  1144. DATE_FORMAT
  1145. 'N j, Y'
  1146. DATE_INPUT_FORMATS
  1147. ('%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')
  1148. DEBUG
  1149. True
  1150. DEBUG_PROPAGATE_EXCEPTIONS
  1151. False
  1152. DECIMAL_SEPARATOR
  1153. '.'
  1154. DEFAULT_CHARSET
  1155. 'utf-8'
  1156. DEFAULT_CONTENT_TYPE
  1157. 'text/html'
  1158. DEFAULT_FILE_STORAGE
  1159. 'django.core.files.storage.FileSystemStorage'
  1160. DEFAULT_FROM_EMAIL
  1161. 'webmaster@localhost'
  1162. DEFAULT_INDEX_TABLESPACE
  1163. ''
  1164. DEFAULT_TABLESPACE
  1165. ''
  1166. DISALLOWED_USER_AGENTS
  1167. ()
  1168. EMAIL_BACKEND
  1169. 'django.core.mail.backends.smtp.EmailBackend'
  1170. EMAIL_HOST
  1171. 'localhost'
  1172. EMAIL_HOST_PASSWORD
  1173. '********************'
  1174. EMAIL_HOST_USER
  1175. ''
  1176. EMAIL_PORT
  1177. 25
  1178. EMAIL_SUBJECT_PREFIX
  1179. '[Django] '
  1180. EMAIL_USE_TLS
  1181. False
  1182. FILE_CHARSET
  1183. 'utf-8'
  1184. FILE_UPLOAD_HANDLERS
  1185. ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
  1186. FILE_UPLOAD_MAX_MEMORY_SIZE
  1187. 2621440
  1188. FILE_UPLOAD_PERMISSIONS
  1189. None
  1190. FILE_UPLOAD_TEMP_DIR
  1191. None
  1192. FIRST_DAY_OF_WEEK
  1193. 0
  1194. FIXTURE_DIRS
  1195. ()
  1196. FORCE_SCRIPT_NAME
  1197. None
  1198. FORMAT_MODULE_PATH
  1199. None
  1200. IGNORABLE_404_ENDS
  1201. ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
  1202. IGNORABLE_404_STARTS
  1203. ('/cgi-bin/', '/_vti_bin', '/_vti_inf')
  1204. INSTALLED_APPS
  1205. ['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']
  1206. INTERNAL_IPS
  1207. ()
  1208. LANGUAGES
  1209. (('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'))
  1210. LANGUAGES_BIDI
  1211. ('he', 'ar', 'fa')
  1212. LANGUAGE_CODE
  1213. 'en-us'
  1214. LANGUAGE_COOKIE_NAME
  1215. 'django_language'
  1216. LOCALE_PATHS
  1217. ()
  1218. LOGIN_REDIRECT_URL
  1219. '/accounts/profile/'
  1220. LOGIN_URL
  1221. '/accounts/login/'
  1222. LOGOUT_URL
  1223. '/accounts/logout/'
  1224. MANAGERS
  1225. ()
  1226. MEDIA_ROOT
  1227. '/home/samos/workspace/Samos-IT/samosit/media/'
  1228. MEDIA_URL
  1229. '/media/'
  1230. MESSAGE_STORAGE
  1231. 'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'
  1232. MIDDLEWARE_CLASSES
  1233. ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')
  1234. MONTH_DAY_FORMAT
  1235. 'F j'
  1236. NUMBER_GROUPING
  1237. 0
  1238. PAGES_ROOT
  1239. 'pages/'
  1240. PASSWORD_RESET_TIMEOUT_DAYS
  1241. '********************'
  1242. PREPEND_WWW
  1243. False
  1244. PROFANITIES_LIST
  1245. '********************'
  1246. PROJECTS_ROOT
  1247. 'projects/'
  1248. ROOT_URLCONF
  1249. 'samosit.urls'
  1250. SECRET_KEY
  1251. '********************'
  1252. SEND_BROKEN_LINK_EMAILS
  1253. False
  1254. SERVER_EMAIL
  1255. 'root@localhost'
  1256. SESSION_COOKIE_AGE
  1257. 1209600
  1258. SESSION_COOKIE_DOMAIN
  1259. None
  1260. SESSION_COOKIE_NAME
  1261. 'sessionid'
  1262. SESSION_COOKIE_PATH
  1263. '/'
  1264. SESSION_COOKIE_SECURE
  1265. False
  1266. SESSION_ENGINE
  1267. 'django.contrib.sessions.backends.db'
  1268. SESSION_EXPIRE_AT_BROWSER_CLOSE
  1269. False
  1270. SESSION_FILE_PATH
  1271. None
  1272. SESSION_SAVE_EVERY_REQUEST
  1273. False
  1274. SETTINGS_MODULE
  1275. 'samosit.settings'
  1276. SHORT_DATETIME_FORMAT
  1277. 'm/d/Y P'
  1278. SHORT_DATE_FORMAT
  1279. 'm/d/Y'
  1280. SITE_ID
  1281. 1
  1282. TEMPLATE_CONTEXT_PROCESSORS
  1283. ('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')
  1284. TEMPLATE_DEBUG
  1285. True
  1286. TEMPLATE_DIRS
  1287. ('/home/samos/workspace/Samos-IT/samosit/templates',)
  1288. TEMPLATE_LOADERS
  1289. ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader')
  1290. TEMPLATE_STRING_IF_INVALID
  1291. ''
  1292. TEST_DATABASE_CHARSET
  1293. None
  1294. TEST_DATABASE_COLLATION
  1295. None
  1296. TEST_DATABASE_NAME
  1297. None
  1298. TEST_RUNNER
  1299. 'django.test.simple.DjangoTestSuiteRunner'
  1300. THOUSAND_SEPARATOR
  1301. ','
  1302. THUMBNAIL_BACKEND
  1303. 'sorl.thumbnail.base.ThumbnailBackend'
  1304. THUMBNAIL_CACHE_TIMEOUT
  1305. 2147483647
  1306. THUMBNAIL_COLORSPACE
  1307. 'RGB'
  1308. THUMBNAIL_DEBUG
  1309. True
  1310. THUMBNAIL_DUMMY
  1311. False
  1312. THUMBNAIL_DUMMY_RATIO
  1313. 1.5
  1314. THUMBNAIL_ENGINE
  1315. 'sorl.thumbnail.engines.pil_engine.Engine'
  1316. THUMBNAIL_FORMAT
  1317. 'JPEG'
  1318. THUMBNAIL_KEY_PREFIX
  1319. 'sorl-thumbnail'
  1320. THUMBNAIL_KVSTORE
  1321. 'sorl.thumbnail.kvstores.cached_db_kvstore.KVStore'
  1322. THUMBNAIL_PREFIX
  1323. 'cache/'
  1324. THUMBNAIL_QUALITY
  1325. 95
  1326. THUMBNAIL_REDIS_DB
  1327. 0
  1328. THUMBNAIL_REDIS_HOST
  1329. 'localhost'
  1330. THUMBNAIL_REDIS_PORT
  1331. 6379
  1332. THUMBNAIL_STORAGE
  1333. 'django.core.files.storage.FileSystemStorage'
  1334. THUMBNAIL_UPSCALE
  1335. True
  1336. TIME_FORMAT
  1337. 'P'
  1338. TIME_INPUT_FORMATS
  1339. ('%H:%M:%S', '%H:%M')
  1340. TIME_ZONE
  1341. 'America/Chicago'
  1342. TRANSACTIONS_MANAGED
  1343. False
  1344. URL_VALIDATOR_USER_AGENT
  1345. 'Django/1.2.3 (http://www.djangoproject.com)'
  1346. USE_ETAGS
  1347. False
  1348. USE_I18N
  1349. True
  1350. USE_L10N
  1351. True
  1352. USE_THOUSAND_SEPARATOR
  1353. False
  1354. YEAR_MONTH_FORMAT
  1355. 'F Y'
  1356.  
  1357. 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