title: How to send GET request by Django
body: <p>I'm trying to use github oauth. I'n using urllib and urllib2 and have this code:</p>
  
  <pre><code>def github_login(request):
       post_data = [('client_id','****'),('redirect_uri','http://localhost:8000/callback')]
       result = urllib2.urlopen('https://github.com/login/oauth/authorize', urllib.urlencode(post_data))
       content = result.read()
  </code></pre>
  
  <p>And after sending query I have httperror 403. I had already configured allowed_hosts in settings.py</p>