dinner_vote/start.py

21 lines
470 B
Python

import subprocess, os
from flask import render_template, redirect
import threading
from dinner import *
from session import app
lock = threading.Lock()
@app.route('/')
def index():
return redirect('dinner')
# return render_template('index.html')
@app.route('/favicon.ico')
def favicon():
return send_from_directory(os.path.join(app.root_path, 'static'), 'fd-logo.png')
if __name__ == '__main__':
app.run(host="0.0.0.0", port=80, debug=True, threaded=True)