I am working on a Django project. It includes a functionality in which when admin clicks on a certain button, it runs a Python script and redirect it to some other page after complete process. Before hosting, it was working fine. Now that I hosted it here, the script doesn't run at all. It just redirects to another page without providing any error. Why's that? Also, my script includes chromedriver, in case it has anything to do with it.
Kindly help me.
This might be the error. Why doesn't it recognize it?
Code
out = run([sys.executable, '//home//maisum279//traffic//traffic//trafficapp//traffic.py', "--domain", url, "--threads", '5', "--max-clicks", maximum, "--min-clicks", minimum, "--stay", stay, "--requests", requests])
Server Log
2020-09-21 11:05:02 /usr/local/bin/uwsgi: unrecognized option '--domain'
2020-09-21 11:05:02 getopt_long() error