refactor: clean up __init__ file following some Flask conventions

Flask extensions are loaded in a way that makes them easily reusable by blueprints.
In this commit we are also adding `environs` to manage .env and settings:
breaking changes!

- FLASK_APP=lnbits.app
- LNBITS_ALLOWED_USERS needs to be empty now to allow all users (NOT "all")
This commit is contained in:
Eneko Illarramendi
2020-09-06 21:06:01 -03:00
committed by fiatjaf
parent ffa3c3f6a6
commit 1bc5e144d3
13 changed files with 226 additions and 138 deletions
+2 -1
View File
@@ -10,12 +10,13 @@ python_version = "3.7"
bitstring = "*"
cerberus = "*"
ecdsa = "*"
lnurl = "*"
environs = "*"
flask = "*"
flask-assets = "*"
flask-compress = "*"
flask-cors = "*"
flask-talisman = "*"
lnurl = "*"
pyscss = "*"
requests = "*"
shortuuid = "*"