Answers for "how to store a int value in django sessions"

0

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
Posted by: Guest on April-15-2021

Code answers related to "how to store a int value in django sessions"

Python Answers by Framework

Browse Popular Code Answers by Language