Hi,
I would like to implement a web app using reactjs and django. I have a 
python script which does some sort of optimization and stores the final 
output in a list and returns it. Right now everything is static in the 
python script and I would like to make it dynamic so that i can get a user 
input (from a web browser) and with that, run the python script internally, 
and pass back the data to the django models, which will update the values 
in the API. 
so far, I know how to: 
build a REST API with django, 
get user input using reactjs, 
make post and get request to get data from the API or update the API data 
from user input, 
However, I do not know how to access the models values in my python script, 
run the python script with django, and update the API with so that it 
contains the output in order for me to be able fetch the output with react.

I am not sure if im doing this the easiest way, as it sounds so 
complicated, but I am open to suggestions on better ways of doing this.
Thank you,

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/394fd1d7-a2e2-4c59-ba9f-ba35d7eba9cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to