title: Login django User without request
body: <p>I am implementing oauth. I successfully did everything and finally I need to login user using login function. But the problem here is I didn't have any request to provide to login function. So, I made a request by importing requests. But that is not working properly. Can anyone please specify how to make a request so that I can login user perfectly. Is there any way to login user without request ??</p>
  
  <p>If not can anyone make a perfect request for login ?? This is my request to the login function</p>
  
  <pre><code>s = requests.session()
          data = { 'username': user.username, 'password': user.password}
          s.post(url_path,data=data, verify=False)
          login(s, user)
  </code></pre>
  
  <p>verify=false // to prevent SSL error but I am still receiving it </p>
  
  <p>and what about url_path ?? How actually to configure it??</p>