Re: When can you call urlresolvers.reverse()?

2008-09-09 Thread Thomas Guettler
Hi, current reverse() should not be called during import time. AFAIK since this results into recursive imports: http://code.djangoproject.com/ticket/5925 The ticket contains a way around this problem: {{{ # file lazy.py from django.core import urlresolvers class lazy_string(object): def

When can you call urlresolvers.reverse()?

2008-09-09 Thread Gremmie
I ran into a problem this weekend, and I think I sort of understand why it was happening, but I would like some experts to check my reasoning :-). I wanted to add some help_text to a form field that included a link to another page of mine. I had something like this (from memory): class