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

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