We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59edac0 commit 14246dbCopy full SHA for 14246db
src/app.py
@@ -1,17 +1,18 @@
1
-from flask import Flask,render_template
+from flask import Flask, render_template
2
import socket
3
4
app = Flask(__name__)
5
6
+
7
@app.route("/")
8
def index():
9
try:
10
host_name = socket.gethostname()
11
host_ip = socket.gethostbyname(host_name)
- return render_template('index.html', hostname=host_name, ip=host_ip)
12
+ return render_template("index.html", hostname=host_name, ip=host_ip)
13
except:
- return render_template('error.html')
14
+ return render_template("error.html")
15
16
17
if __name__ == "__main__":
- app.run(host='0.0.0.0', port=8080)
18
+ app.run(host="0.0.0.0", port=8080)
0 commit comments