INNER CODE UNIT · Python

hello

AhmadRafiee/DevOps_Certification · docker/compose-file/awesome-compose/flask-redis/app.py:8

def hello():
    redis.incr('hits')
    counter = str(redis.get('hits'),'utf-8')
    return "This webpage has been viewed "+counter+" time(s)"

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=8000, debug=True)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…