conference-archive/main.py
2023-09-13 16:19:08 +05:30

22 lines
342 B
Python
Executable file

#!/usr/bin/python3
import flask
from confarchive import database
app = flask.Flask(__name__)
app.debug = True
app.config.from_object("config.default")
database.init_app(app)
@app.route("/")
def index() -> str:
"""Start page."""
return flask.render_template("index.html")
if __name__ == "__main__":
app.run(host="0.0.0.0")