Answers for "django how to get session data from session key"

2

how store list in django session

if not 'saved' in request.session or not request.session['saved']:
		request.session['saved'] = [obj]
	else:
		saved_list = request.session['saved']
		saved_list.append(obj)
		request.session['saved'] = saved_list
Posted by: Guest on September-22-2020

Code answers related to "django how to get session data from session key"

Python Answers by Framework

Browse Popular Code Answers by Language