Hi all I got a strange issue with Django: 0.96.1
During render_to_response() call against this 1-line template: <img src="i" > I get a long error output (see below). Now the funniest. If I delete or change the symbol "i" then I get no error anymore. Namely, if instead of <img src="i" > I put <img src="" > or <img src="a" > then things are OK. I am puzzled. Any comments? best regards -- Valery [18/Sep/2008 23:34:58] "GET / HTTP/1.1" 200 18 [18/Sep/2008 23:34:58] "GET /i HTTP/1.1" 301 0 Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/servers/basehttp.py", line 272, in run self.result = application(self.environ, self.start_response) File "/usr/lib/python2.5/site-packages/django/core/servers/basehttp.py", line 614, in __call__ return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/django/core/handlers/wsgi.py", line 189, in __call__ response = self.get_response(request) File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line 103, in get_response return callback(request, **param_dict) File "/usr/lib/python2.5/site-packages/django/views/defaults.py", line 79, in page_not_found return http.HttpResponseNotFound(t.render(RequestContext(request, {'request_path': request.path}))) File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line 168, in render return self.nodelist.render(context) File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line 705, in render bits.append(self.render_node(node, context)) File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line 723, in render_node result = node.render(context) File "/usr/lib/python2.5/site-packages/django/template/loader_tags.py", line 82, in render return compiled_parent.render(context) File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line 168, in render return self.nodelist.render(context) File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line 705, in render bits.append(self.render_node(node, context)) File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line 723, in render_node result = node.render(context) File "/usr/lib/python2.5/site-packages/django/template/loader_tags.py", line 23, in render result = self.nodelist.render(context) File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line 705, in render bits.append(self.render_node(node, context)) File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line 723, in render_node result = node.render(context) File "/usr/lib/python2.5/site-packages/django/template/loader_tags.py", line 96, in render return self.template.render(context) File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line 168, in render return self.nodelist.render(context) File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line 705, in render bits.append(self.render_node(node, context)) File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line 733, in render_node raise wrapped TemplateSyntaxError: Caught an exception while rendering: 'lng' Original Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line 723, in render_node result = node.render(context) File "/usr/lib/python2.5/site-packages/django/templatetags/i18n.py", line 73, in render result = translation.gettext(singular) % context File "/usr/lib/python2.5/site-packages/django/template/context.py", line 40, in __getitem__ raise KeyError(key) KeyError: 'lng' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---