Basic template

This commit is contained in:
DarkCat09 2023-02-14 19:53:57 +04:00
commit 058bcd13e5
9 changed files with 240 additions and 0 deletions

3
flaskapp/__init__.py Normal file
View file

@ -0,0 +1,3 @@
"""Init file for the module"""
from .app import app

20
flaskapp/app.py Normal file
View file

@ -0,0 +1,20 @@
"""Flask web application
main script"""
from pathlib import Path
from flask import Flask
root = Path('..')
static = str(root / 'static')
tmpl = str(root / 'templates')
app = Flask(
'${REPO_NAME_SNAKE}',
static_folder=static,
template_folder=tmpl,
)
if __name__ == '__main__':
app.run()