Re: How to write the reverse function for the following

2010-06-07 Thread Alex Robbins
Clark, The reverse call just uses kwargs to find out which pattern it matches to. If your url regex was r'^register/(?P\w+)/', then you would pass kwarg1 as a kwarg to reverse. You are not trying to find a url with a kwarg in the regex, so you shouldn't be adding that in the reverse call. You just

How to write the reverse function for the following

2010-06-07 Thread Superman
The urlconf: url(r'^register/$', register, { 'backend': 'registration.backends.default.DefaultBackend' }, name='registration_register'), The view: def register(request, backend, success_url=N