title: Django x-www-form-urlencoded request
body: <p>I'm trying to do the following request with django :
  <a href="https://i.stack.imgur.com/1mWfR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1mWfR.png" alt="enter image description here"></a></p>
  
  <p>I tried the following code but it doesn't work :</p>
  
  <pre><code>data = {'username': admin, 
          'password': 123, 
          'grant_type': 'password',
          'client_id': 'xxxx',
          'client_secret': 'xxxx'}
  headers = {'content-type': 'application/x-www-form-urlencoded'}
  r = requests.post(url, data=data, headers=headers)
  </code></pre>
  
  <p>Thanks for your help !</p>