#you do not need to add anything def index(request): request.session[0] = 'bar' return HttpResponse(request.session[0])