Hey guys,
I sometimes get errors which occur rarely, so it is very difficult to
reproduce them in a development environment. The traceback always
looks similar to the traceback attached below (which is just an
example).
My question: How can I make the Django error mails show the template
file name and line number where the error occurred? It is really
annoying as I currently see no way to debug this type of errors other
than guessing, which is very difficult, especially when templates are
very complex.
Thanks,
Thomas
File "/home/mysite/django-mysite3/django/template/loader.py", line
173, in render_to_string
return t.render(context_instance)
File "/home/mysite/django-mysite3/django/template/__init__.py", line
184, in render
return self._render(context)
File "/home/mysite/django-mysite3/django/template/__init__.py", line
178, in _render
return self.nodelist.render(context)
File "/home/mysite/django-mysite3/django/template/__init__.py", line
787, in render
bits.append(self.render_node(node, context))
File "/home/mysite/django-mysite3/django/template/__init__.py", line
800, in render_node
return node.render(context)
File "/home/mysite/django-mysite3/django/template/defaulttags.py",
line 384, in render
raise e
NoReverseMatch: Reverse for 'view_user_pictures' with arguments '()'
and keyword arguments '{'username': ''}' not found.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
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.