title: How to sent POST request to Django from external app
body: <p>I am trying to sent post request from python script which works on Windows machine.</p>
  <p>Here is my views.py Django</p>
  <pre><code>def check(request):
  
      if 'login/password' in request.POST:
          checkdata(request.POST)
      else:
          message = '404'
      return HttpResponse(message)
  </code></pre>
  <p>And here is my post.py</p>
  <pre><code>param_tuples = [('login', 'value1'), ('pass', 'value2')]
  response = requests.post('http://127.0.0.1:8000/check', data=param_tuples)
  </code></pre>
  <p>The problem is that Django reject my request because i dont have csrf token</p>
  <pre><code>Forbidden (CSRF cookie not set.): /check
  </code></pre>
  <p>How can i get csrf token in order to sent request to Django server externally ?</p>