14 lines
243 B
Python
Executable file
14 lines
243 B
Python
Executable file
#!/bin/python3
|
|
|
|
from flask import Flask, render_template
|
|
import getpass
|
|
|
|
app = Flask(__name__)
|
|
|
|
@app.route("/")
|
|
def index():
|
|
user=getpass.getuser()
|
|
return render_template("index.html", user=user)
|
|
|
|
|
|
app.run(host="127.0.0.1", port=5000)
|