Hi,
I included the Django-Profiles Module as recommended with
(r'^profiles/', include('profiles.urls')),
in my urls.py and so far it works fine.
Now I'd like to make use of an the implemented kwarg 'success_url'. As
far as I use it within the urls.py it works:
url(r'^create/$', views.create_profile, {'success_url': '/status'},
name='profiles_create_profile'),
But when I call it within the code with the reverse-function like
return HttpResponseRedirect(reverse('profiles_create_profile', kwargs=
{ 'success_url': '/status' }))
it will raise the following exception:
"Reverse for 'profiles_create_profile' with arguments '()' and keyword
arguments '{'success_url': '/status'}' not found."
If I omit the kwargs it works without an error, so
'profiles_create_profile' will be found! Who can give me a hint?
Cheers
Holger
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---