python - Django How to pass list of values one views function to other views function -


i want pass list of values in views httpresponseredirect. don't want session variables. how can functions follows.

def fun_one(request):         x = [a,b,c,d]     y = [1,2,3,4]     return httpresponseredirect('/fun_two/') def fun_two(request):     .     .     .     print "i want use function 1 values x & y here" 

if must use httpresponseredirect, 1 way pass values parameters -

return httpresponseredirect('/fun_two/?y=1,2,3,4') 

and reading them request.get.get('y') , split(',').


Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -