def atlas_signed_in(request): if bitbucket.verify(request): print "getting token" bitbucket.get_auth_token(request) print "got token" return HttpResponseRedirect("/notes") else: return HttpResponse("Please grant access to Bitbucket")
def atlas_signed_in(request): if bitbucket.verify(request): print("getting token") bitbucket.get_auth_token(request) print("got token") return HttpResponseRedirect("/notes?bitbucket_login=1") else: return HttpResponse("Please grant access to Bitbucket, {0}".format(request.GET))