31 lines
679 B
Python
31 lines
679 B
Python
from flask import Flask, render_template
|
|
import app_config
|
|
from serviceFunc import getDays
|
|
|
|
app = Flask(__name__)
|
|
app.config.from_object(app_config)
|
|
|
|
|
|
@app.route('/')
|
|
@app.route('/index.html')
|
|
def index():
|
|
return render_template('index.html')
|
|
|
|
|
|
@app.route('/yespage.html', methods=['GET', 'POST'])
|
|
def yespressed():
|
|
return render_template('yespage.html', days=getDays())
|
|
|
|
|
|
@app.route('/nopage.html', methods=['GET', 'POST'])
|
|
def nopressed():
|
|
return render_template('nopage.html')
|
|
|
|
|
|
@app.route('test', methods=['GET', 'POST'])
|
|
def t():
|
|
return render_template('/test/t1.html')
|
|
|
|
if __name__ == '__main__':
|
|
app.jinja_env.auto_reload = True
|
|
app.run(debug=False, host='0.0.0.0') |