Advertisement
Guest User

mirot

a guest
Dec 31st, 2009
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.16 KB | None | 0 0
  1. Environment:
  2.  
  3. Request Method: POST
  4. Request URL: http://test.bilsin.com/announce/add_comment/
  5. Django Version: 1.1.1
  6. Python Version: 2.5.4
  7. Installed Applications:
  8. ['django.contrib.contenttypes',
  9.  'django.contrib.sessions',
  10.  'django.contrib.sites',
  11.  'django.contrib.admin',
  12.  'django.contrib.humanize',
  13.  'bilsin_regions.auth',
  14.  'bilsin_regions.sitemaps',
  15.  'bilsin_regions.announce',
  16.  'bilsin_regions.group',
  17.  'bilsin_regions.account',
  18.  'mptt']
  19. Installed Middleware:
  20. ('django.middleware.common.CommonMiddleware',
  21.  'django.contrib.sessions.middleware.SessionMiddleware',
  22.  'django.contrib.auth.middleware.AuthenticationMiddleware',
  23.  'django.middleware.locale.LocaleMiddleware',
  24.  'bilsin_regions.middleware.subdomain.GetSubdomainMiddleware')
  25.  
  26.  
  27. Template error:
  28. In template /home/horselogy/svn/xpdev/bilsin/trunk/bilsin_regions/templates/emails/new_comment.html, error at line 1
  29.    Caught an exception while rendering: u'comment.owner'
  30.    1 : {% load i18n %} {% blocktrans %} {{comment.owner}} commented on your announce :
  31.  
  32.  
  33.    2 :
  34.  
  35.  
  36.    3 : "{{comment.comment}}"
  37.  
  38.  
  39.    4 :
  40.  
  41.  
  42.    5 : To see the comment thread, follow the link below:{% endblocktrans %}
  43.  
  44.  
  45.    6 : {% for group in comment.announce.groups.all %}http://{{group.site.domain}}{{comment.announce.get_absolute_url}}{% endfor %}
  46.  
  47.  
  48.    7 :
  49.  
  50.  
  51.    8 :
  52.  
  53. Traceback:
  54. File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/core/handlers/base.py" in get_response
  55.   92.                 response = callback(request, *callback_args, **callback_kwargs)
  56. File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/contrib/auth/decorators.py" in __call__
  57.   78.             return self.view_func(request, *args, **kwargs)
  58. File "/home/horselogy/svn/xpdev/bilsin/trunk/bilsin_regions/../bilsin_regions/announce/views.py" in AddComment
  59.   349.              CommentedMail(new_comment)
  60. File "/home/horselogy/svn/xpdev/bilsin/trunk/bilsin_regions/../bilsin_regions/announce/utils.py" in CommentedMail
  61.   23.   mail_body=template.render(Context({'comment':comment}))
  62. File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/template/__init__.py" in render
  63.   178.         return self.nodelist.render(context)
  64. File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/template/__init__.py" in render
  65.   779.                 bits.append(self.render_node(node, context))
  66. File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/template/debug.py" in render_node
  67.   81.             raise wrapped
  68.  
  69. Exception Type: TemplateSyntaxError at /announce/add_comment/
  70. Exception Value: Caught an exception while rendering: u'comment.owner'
  71.  
  72. Original Traceback (most recent call last):
  73.   File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/template/debug.py", line 71, in render_node
  74.     result = node.render(context)
  75.   File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/templatetags/i18n.py", line 85, in render
  76.     data = dict([(v, _render_value_in_context(context[v], context)) for v in vars])
  77.   File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/template/context.py", line 44, in __getitem__
  78.     raise KeyError(key)
  79. KeyError: u'comment.owner'
  80.  
  81.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement