Hi,

i tried to construct a redirect but it cannot find my view function.
Here is the relevant code that I tried. The error I get is:
Reverse for 'show_id' with arguments '()' and keyword arguments
'{'s_id': 1}' not found.
Plz help me..
Thx
Sebastian

in views.py
def nametoid(request,name)
       ---get_id
      return HttpResponseRedirect(reverse('show_id', kwargs=
{'s_id':id}))


def show_id(request,s_id):
     #Do stuff based on id

the urls.py
 urlpatterns = patterns('tests.views',
     (r'^show/(?P<s_id>\d+)/$', 'show_id'),
     (r'^show/(\w+)/$', 'nametoid'),
)

-- 
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.

Reply via email to