My twilio_receive_msg.py
file bears the following code:
from flask import Flask, request, redirect
import twilio.twiml
app = Flask(__name__)
@app.route("/", methods=['GET', 'POST'])
def hello_monkey():
"""Respond to incoming calls with a simple text message."""
resp = twilio.twiml.Response()
resp.message("Hello, Mobile Monkey")
return str(resp)
if __name__ == "__main__":
app.run(debug=True)
When I run python twilio_receive_msg.py
, the code keeps running like forever and I see the following.
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger pin code: 135-602-230
Also, I am not able to open ' http://127.0.0.1:5000/ '. I paste the link in my browser, a message appears that says waiting for 127.0.0.1....
and this message persists even after a long wait!
My OS is Windows and browser is chrome. I tried Explorer too but got the same message.
Can anybody assist me with this? Why am I not able to open the above link?
经过长时间的搜索,我在Internet Explorer中尝试了localhost而不是127.0.0.1,并且它起作用了。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.