nova-web/app.py

25 lines
417 B
Python
Raw Normal View History

2023-07-21 23:50:17 +02:00
import os
import flask
import logging
from dotenv import load_dotenv
load_dotenv()
app = flask.Flask(__name__)
log = logging.getLogger('werkzeug')
log.disabled = True
@app.context_processor
def inject_variables():
return {
'contact_email': os.getenv('CONTACT_EMAIL')
}
@app.route('/')
def index():
return flask.render_template('index.html')
app.run(debug=True, use_evalex=False, port=2323)