Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by ogirardot.wordpress.com #
 
PREVIOUS NEXT
Tagged: #store #list #django #session
ADD COMMENT
Topic
Name
1+9 =