python - Where do I start with Django when I have a development server running and have a GET request from API? -


i'm running django development server instance , working linkedin api.

right now, have python script can run open new tab in default web browser , ask user sign in linkedin account, web app open popup window ask credentials.

the python script has django dev server instance redirect uri, following message comes when authenticate:

[19/jul/2013 08:24:33] "get /?code=xxxxxxxxx&state=xxxxxxxxxxxxx http/1.1" 200 1954 

right now, have manually copy code command line before receiving proper oauth access token make api calls.

i want make authentication process automated , in django app integrate front end i'll building. i've read through django.http docs , i'm pretty sure need start making new app , using in views.py file of app.

how extract query using django (or python if can still integrate app) , use properly?

you can read parameters of url request object have access in views.py.

https://docs.djangoproject.com/en/dev/ref/request-response/

def my_view(request):   code = request.get.get('code')   state = request.get.get('state')   # 

Comments