Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask import Flask, render_template
- app = Flask(__name__)
- import datetime
- # from "Getting Started with BeagleBone, (Richardson 2013)."
- @app.route("/")
- def hello():
- now = datetime.datetime.now()
- timeString = now.strftime("%d-%m-%Y %H:%M")
- templateData = {
- "title": "This is your date and time!",
- "time": timeString
- }
- return render_template("more.html", **templateData)
- if __name__=="__main__":
- app.run(host="0.0.0.0", port=5000, debug=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement