initial commit
This commit is contained in:
24
app.py
Normal file
24
app.py
Normal file
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python3.6
|
||||
import os
|
||||
from flask import Flask
|
||||
from flask import render_template, url_for, send_from_directory, redirect, request, send_file
|
||||
from werkzeug.utils import secure_filename
|
||||
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route("/")
|
||||
def index():
|
||||
return render_template('index.html', headermessage = 'Header', message='message')
|
||||
|
||||
|
||||
@app.route ("/<string:msg>")
|
||||
def make_msg(msg):
|
||||
message = msg
|
||||
return render_template('index.html', message=message, headermessage=message)
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(host='0.0.0.0', port=1024, debug=True)
|
||||
Reference in New Issue
Block a user