Re: Ho can I reverse urls inside urls.py?

2013-10-09 Thread DJ-Tom
Hi Tom, works like a charm - THX! Cheers Thomas Am Dienstag, 8. Oktober 2013 17:49:18 UTC+2 schrieb Tom Evans: > > > Use reverse_lazy > > https://docs.djangoproject.com/en/1.5/ref/urlresolvers/#reverse-lazy > > > Cheers > > Tom > -- You received this message because you are subscribed to

Re: Ho can I reverse urls inside urls.py?

2013-10-08 Thread Bill Freeman
The problem is that reverse works by querying the structure that is defined by importing the urls modules. A possible cheap trick is to create your dictionary in a module global, passing that to the url call, in which case you could later import the module and patch the "post_reset_redirect' item

Re: Ho can I reverse urls inside urls.py?

2013-10-08 Thread Tom Evans
On Tue, Oct 8, 2013 at 4:11 PM, DJ-Tom wrote: > Based on this article I implemented a password reset function. > > Unfortunately, currently this only works on the development server because > the base URLs for the post_reset_redirect are different on the production > server.

Ho can I reverse urls inside urls.py?

2013-10-08 Thread DJ-Tom
Based on this articleI implemented a password reset function. Unfortunately, currently this only works on the development server because the base URLs for the post_reset_redirect are different on the production