Trying to set up my Pi as a web server with flask. It works only sometimes, and then only for about 30 seconds. When I stop the script, it returns this error:
Unhandled exception in thread started by
sys.exceptbook is missing
lost sys.stderr
from flask import Flask, render_template
app = Flask(name)
@app.route("/")
def hello():
templateData = {
'title':'Hello!
}
return render_template('main.html', **templateData)
if name == "main":
app.run(host='10.0.0.10', port=80, debug=True)
After it stops working the first time, the Pi must be restarted before it will work again. What did I do wrong?