Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

how to pass arguments host and port in my views.py?

This is the structure of my application

app
--main.py
--views.py
--routes.py

In views.py I connect to the outside API. I run my application like this:

python main.py host_for_outside_api port_for_outside_api

How can I pass these host_for_outside_api and port_for_outside_api into views.py?

Comments