how to store a int value in django sessions

Solutions on MaxInterview for how to store a int value in django sessions by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "how to store a int value in django sessions"
Juline
03 Apr 2016
1 def coupoun(request):  
2  	final_amount=total_amount+50
3    request.session['finalAmount']=final_amount 
4# Thats how you can add a value to sessions and use it anywhere in django code
5      
6
similar questions