title: Django Template session not updating values
body: <p>I am developing a human vs human chess app in django. The part for pawn promotion is not working. The session values are changing,but not getting updated to django template.</p>
  
  <p>The promote view</p>
  
  <pre><code>def promote(request):
      #Update board with promoted piece
      board = request.session['board']
      target = request.session['promote_target']
      board[target[0]][target[1]] = request.POST['piece']
      request.session['board'] = board
      request.session['promotion'] = False
      request.session['player'] = 1
  
      return render(request,'chess_app/Default.htm')
  </code></pre>
  
  <p>The js Function to call server</p>
  
  <pre><code>function promotion(piece){
          //Function to promote pawns
          //Add a confirm message
          $.ajax({url:"{%url 'promote'%}",data:{'piece':piece},type:'post',success:function(){location.reload()}});
          }
  </code></pre>
  
  <p>Everything works fine, but the session is not getting updated
  It would be great if you can help.</p>