I'm following this guide (Python Quickstart: Replying to SMS and MMS Messages) to try and set up a flask server, but when I try to connect to http://localhost:5000
I get a 404 error. I can ping 127.0.0.1 no problem.
Code:
from flask import Flask, request, redirect
import twilio.twimlapp = 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)
Console output:
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)* Restarting with windowsapi reloader
localhost 404'ing