mirror of
https://github.com/NovaOSS/nova-web.git
synced 2024-11-25 21:13:58 +01:00
25 lines
417 B
Python
25 lines
417 B
Python
|
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)
|