I have a python script with my django models imported to it, it does a little data treatment to the objects and I get some values for example a dictionary called travel and two lists: city and route;
My script runs in a view:
class UpdateObject(UpdateView):
[...]
command = "python script.py"
subprocess.call(command, shell=True)
[...]
I would like to pass the variables with the values that I got with the script to another view
class DetailView(generic.DetailView):
[...]
How can I achieve that?