here is my code
@login_required
def gpconnect(request):
if 'code' in request.REQUEST:
# insert google data to db
return render_to_response('social/google.html')
else:
return HttpResponseRedirect(rty)
this is working for few and not for few users.
its going to google in the first call by satisfying login required true.
but the user data is missing when the user come back from google after authorizing our app and raising login_required.
please help me with any idea.