Fix Python – Configure Flask dev server to be visible across the network

I’m not sure if this is Flask specific, but when I run an app in dev mode (http://localhost:5000), I cannot access it from other machines on the network (with http://[dev-host-ip]:5000). With Rails in dev mode, for example, it works fine. I couldn’t find any docs regarding the Flask dev server configuration. Any idea what should be configured to e….

Fix Python – Get the data received in a Flask request

I want to be able to get the data sent to my Flask app. I’ve tried accessing but it is an empty string. How do you access request data?
from flask import request

@app.route(‘/’, methods=[‘GET’, ‘POST’])
def parse_request():
data = # data is empty
# need posted data here

The answer to this question led me to as….