new functions added
This commit is contained in:
parent
ec25774fc2
commit
0739547520
2 changed files with 6 additions and 33 deletions
|
|
@ -1,14 +1,17 @@
|
|||
#!/bin/python3
|
||||
|
||||
from flask import Flask, render_template
|
||||
import datetime
|
||||
import getpass
|
||||
import socket
|
||||
import os
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route("/")
|
||||
def index():
|
||||
user=getpass.getuser()
|
||||
return render_template("index.html", user=user)
|
||||
user = getpass.getuser()
|
||||
time = datetime.datetime.now()
|
||||
os = os.uname()
|
||||
return render_template("index.html", user=user, time=time, os=os)
|
||||
|
||||
app.run(host="127.0.0.1", port=5000)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue