You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
236 B
11 lines
236 B
3 years ago
|
from flask import Flask, render_template
|
||
|
import os
|
||
|
|
||
|
app = Flask(__name__)
|
||
|
|
||
|
@app.route("/")
|
||
|
@app.route("/<name>")
|
||
|
def demo(name=None):
|
||
|
wd = os.popen('pwd').readline()
|
||
|
return render_template('demo.html', name=name, wd=wd)
|