summaryrefslogtreecommitdiffstats
path: root/bitvend/__init__.py
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2020-02-12 16:38:28 +0100
committerSergiusz Bazanski <q3k@q3k.org>2020-02-23 11:44:45 +0100
commit25b41d64960765a33cf2b409f3b3c9247df164fa (patch)
treef9afff1ac48a363a9bc98726bef156726bc44bd5 /bitvend/__init__.py
parent75c222852b498c87ed3230d6a496549634b1c31c (diff)
downloadbitvend-25b41d64960765a33cf2b409f3b3c9247df164fa.tar.gz
bitvend-25b41d64960765a33cf2b409f3b3c9247df164fa.tar.bz2
bitvend-25b41d64960765a33cf2b409f3b3c9247df164fa.tar.xz
bitvend-25b41d64960765a33cf2b409f3b3c9247df164fa.zip
module.nix: init
This isn't great, but hey, it works.
Diffstat (limited to 'bitvend/__init__.py')
-rw-r--r--bitvend/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitvend/__init__.py b/bitvend/__init__.py
index 0513078..2ab00a6 100644
--- a/bitvend/__init__.py
+++ b/bitvend/__init__.py
@@ -30,6 +30,7 @@ def bitvend_user_loader(username, profile=None):
def create_app():
app = flask.Flask(__name__)
app.config.from_object('bitvend.default_settings')
+ print('Loading extra settings from {}...'.format(os.environ.get('BITVEND_SETTINGS', '')))
app.config.from_pyfile(os.environ.get('BITVEND_SETTINGS', ''), silent=True)
# Use proper proxy headers, this fixes invalid scheme in