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

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -