title: How to install django cors on server host computer
body: <p>I developed a webapp using Django framework and hosted it on Digital Ocean. The server is supposed to receive a Json from a client written using Ruby rails framework.</p>
  
  <p>The Django app cannot see the Json and so I want use <code>django-cors-headers</code> <a href="https://github.com/ottoyiu/django-cors-headers" rel="nofollow">https://github.com/ottoyiu/django-cors-headers</a> which require me to install <code>django-cors-headers</code>,  but I have already hosted the app (i.e. the server).<br>
  My questions are ( sorry I am newbie)</p>
  
  <ol>
  <li>Is it possible to install <code>django-cors-headers</code> using the <code>pip install django-cors-headers</code>  on the server host computer at Digital Ocean using may be PUTTY or Winscp? If yes, pls how do i do it?</li>
  <li>Did I choose the right solution to my problem? </li>
  </ol>
  
  <p>Below is the code for the server (views.py) and I am using Django 1.9 and python 2.7.6</p>
  
  <pre><code>from django.shortcuts import render
  from django.http import HttpResponse
  from django.http import JsonResponse
  import json
  def qucserver (request):
  if request.method == 'POST':
     print request.body
     jsdata = json.loads(request.body)
     reply = {"data": jsdata}
     return JsonResponse  ( reply )
  else:
      message = 'You submitted an empty form.'
      reply = {"Error": message}
      return JsonResponse (reply)
  </code></pre>
  
  <p>The output is always</p>
  
  <pre><code>  {data: "json = JSON_DATA"}
  </code></pre>