title: Show "loading..." message while message is executed by Django server
body: <p>I've encountered a minor problem with Django, rendering and Javascript.</p>
  
  <p>In my Django app, I want to show a message like "Loading, please wait", then after a method (SalesforceConnector) returns a result, use that result (success or fail) to render another message accordingly.</p>
  
  <p>I've already understood that the main thing will be to use javascript with ajax or jquery, but how can i wait for the method result exactly ?</p>
  
  <pre><code>from django.shortcuts import render
  from api.SalesforceConnector import SalesforceConnector
  
  def api(request, *args, **kwargs):
      print("Called")
  
      print(request)
  
      ### Show "Loading, please wait.." Message here
  
      sessionId = request.GET["sessionId"]
      routePlanId = request.GET["routePlanId"]
      apiURL = request.GET["apiURL"]
      sfAction = request.GET["action"]
  
      print(sessionId)
  
      salesforceConnector = SalesforceConnector(sessionId, routePlanId, apiURL, sfAction)
  
      ### Show message according to the SalesforceConnector result
  </code></pre>