Django urls on json request

Posted by Hulk on Stack Overflow See other posts from Stack Overflow or by Hulk
Published on 2010-05-05T07:24:37Z Indexed on 2010/05/05 7:28 UTC
Read the original article Hit count: 573

When making a django request through json as,

 var info=id + "##" +name+"##"
 $.post("/supervise/activity/" + info ,[] ,
 function Handler(data,arr) 
  {

  } 

In urls.py

  (r'^activity/(?P<info>\d+)/$, 'activity'),

In views,

 def activity(request,info):
     print info

The request does not go through.info is a string.How can this be resolved

Thanks..

© Stack Overflow or respective owner

Related posts about django

Related posts about django-urls