Question

I'm trying to run this application on a different port(8080). I tried putting the port parameter but it doesn't seem to work.

I'm getting a 404 page, but when i switch port to 5000, I encounter no problem.

from eve import Eve
app = Eve()

@app.route("/hello", methods=['GET'])
def hello():
    return "Hello World!"

if __name__ == '__main__':
    app.run(port=8080, debug=True)
Was it helpful?

Solution

Make sure that SERVER_NAME = None (which is the default) is set in your settings file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top