Basic template
This commit is contained in:
commit
058bcd13e5
9 changed files with 240 additions and 0 deletions
3
flaskapp/__init__.py
Normal file
3
flaskapp/__init__.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
"""Init file for the module"""
|
||||
|
||||
from .app import app
|
20
flaskapp/app.py
Normal file
20
flaskapp/app.py
Normal 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()
|
Loading…
Add table
Reference in a new issue