Initial commit.

This commit is contained in:
Edward Betts 2023-09-13 16:19:08 +05:30
commit 4e5ee195dd
10 changed files with 372 additions and 0 deletions

21
main.py Executable file
View file

@ -0,0 +1,21 @@
#!/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")