I want a small web page, that once every x seconds, runs a function.(It will display the result of that function)
import datetime
from bottle import Bottle, run
app = Bottle()
@app.route('/')
def hello():
return datetime.datetime.now()
run(app, host='localhost', port=8080, reloader=True, interval=5)
Right now I've got this. I'm using pythonanywhere for hosting and this won't even run. Error logs state:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/uwsgi'
I'm kind lost on this one...