My problem is the error handling of django in templatetags, not the specific dummy error, which I programmed:
@register.simple_tag def current_time(): 1/0 return unicode(datetime.datetime.now()) What annoys me, that you cannot find the line number of the error, just a message, that somewhere there is an error rendering the current_time tag. +-[ Gergely Kontra <pihent...@gmail.com> ]------------------+ | | | Mobile:(+36 20)356 9656 | | | +- "Olyan lángész vagyok, hogy poroltóval kellene járnom!" -+ On Thu, Nov 26, 2009 at 17:35, Karen Tracey <kmtra...@gmail.com> wrote: > On Thu, Nov 26, 2009 at 9:09 AM, pihentagy <pihent...@gmail.com> wrote: >> >> Isn't it a known thing, that template tags are hard to debug? Did I >> miss something? > > I don't know, but your original message makes it a little too hard to try to > help probably. You say the actual location of the error is missing, but in > order to see what you are seeing people have to download a zip file from > somewhere and go to some trouble to unzip and install and figure out what to > run to recreate the problem, etc. Why not just post the traceback you are > getting, along with whatever snippets of the associated code that are > relevant? You might get better feedback from that. > > Karen > >> >> >> >> On Nov 11, 11:13 am, pihentagy <pihent...@gmail.com> wrote: >> > Hi all! >> > >> > I am not satisfied with the error handling inside custom template >> > tags. >> > To demonstrate it, I cooked a mini useless app, which can be >> > downloaded here: >> > >> > What I miss from the error screen is the actual location of the error. >> > >> > http://cid-a93120a1b42a9e7f.skydrive.live.com/self.aspx/.Public/djang... >> > >> > Or did I do something wrong, that I miss the error message? >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.