From 9eb7ec7c8aa91e87ae77be758192c77648cfe988 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Tue, 19 Apr 2016 21:09:15 +0200 Subject: [PATCH] switched to environment variable for config file lookup --- .../{email.py.example => config.py.example} | 0 app/db/__pycache__/__init__.cpython-34.pyc | Bin 3322 -> 0 bytes app/main.py | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename app/config/{email.py.example => config.py.example} (100%) delete mode 100644 app/db/__pycache__/__init__.cpython-34.pyc diff --git a/app/config/email.py.example b/app/config/config.py.example similarity index 100% rename from app/config/email.py.example rename to app/config/config.py.example diff --git a/app/db/__pycache__/__init__.cpython-34.pyc b/app/db/__pycache__/__init__.cpython-34.pyc deleted file mode 100644 index fcd275fcfa11da5fea09bcf7bc1cdbf6817d272f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3322 zcmbVO-ESMm5ud#;QWRxb{&woL*Q82(u`Qu-kOF~X8?})ZXhEQ005=4J!|`?{opR(+ zd&k-)q$lUOeJhYZp?^)^@3l{P$sdrX{AP}%BsvCyp0vZc*}dKQ_|5G6(B0_#_ruNS z@2wI2kIp?F_$L_U9*8CyfGW}s<%&j%28tBFyOcXLaOh9kBkj|-Sml#(>9tD(NL=bi z!R$t-(|M9itHZ*679Qo(GE1z^I^Sbwid5a!NoA^RWO^w}7LNnw2}b!(5CaWx9H_&3 z3|v+P+v7k!XL0zzCmoP(i5yIu^qTN3(jC(4!b8|4y&?P>=}V+Hg~x)+q_>1$Cw+zV zRpGJt8tLo8Z;-wLn{L+5v*GM&C&ZKHNm=S5Et@x1n;-t=@f4%H0a6hiDLPT~8k8s& zL;8_3dsjZ>t)3R+va-{(D(q6$i`=?Z9_LwQ9@ee27>`X_)s7xUPVJQ@-ygK}Fy7B{ z^B=Npob%(=-DEP^)x+I5&c<04$2*f(b$ju0ne`DRz1jM+;m$&yDopUhzdS_oEih2_ zNOXUV351{@sb1vR08_P}=0#~DWm|ZY;~N4vQQe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fe233..dd18609 100644 --- a/app/main.py +++ b/app/main.py @@ -22,7 +22,7 @@ app.config['SECURITY_PASSWORD_HASH'] = 'pbkdf2_sha512' app.config['SECURITY_PASSWORD_SALT'] = 'xxxxxxxxxxxxxxxxxxxxxx' app.config['SECURITY_REGISTERABLE'] = True app.config['SECURITY_EMAIL_SENDER'] = 'pitstops@lusiardi.de' -app.config.from_object('config.email') +app.config.from_envvar('config') app.config.from_object(__name__) mail = Mail(app)