Django.fun

Django, How to call Python script outside of views.py or without reloading page [duplicate]

Here is basically what I have been trying to accomplish all day...

  • use input element to pass argument to my python script
  • run python script to pull data from another website (get request)
  • update sql with data
  • output data in elements on same html page

I've had some success just using views.py, but I would rather not refresh the page or route to a new page. Maybe there is a way using views.py without causing that to occur? Any solution/example of how to do this would be greatly appreciated!