1
XPoint
8y

Hi
maybe a stupid question :) I have two Django apps, I need one of them to use the functions of the other one without importing them. as if I am requesting them using API, is there a way I can get an instance of a function and use it, I don't want to do the following:

response = requests.get('HTTP://URL/example/', data)
data = response.json()
I want instead to do something like this

function = requests.get('HTTP://URL/example/')
and execute the function as follows

data = function()
thanks

Comments
Add Comment