Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to store a int value in django sessions

 def coupoun(request):  
  	final_amount=total_amount+50
    request.session['finalAmount']=final_amount 
# Thats how you can add a value to sessions and use it anywhere in django code
      
Source by www.dcs.gla.ac.uk #
 
PREVIOUS NEXT
Tagged: #store #int #django #sessions
ADD COMMENT
Topic
Name
8+1 =