Commit 2d4a51a9f0abbffe081e04299f6b4fd3045f808a
1 parent
2d7fcc61
Exists in
master
and in
4 other branches
gitignore
Showing
2 changed files
with
32 additions
and
0 deletions
Show diff stats
resources/app_config.py
... | ... | @@ -0,0 +1,26 @@ |
1 | +import os | |
2 | + | |
3 | +root_dir = os.path.abspath(os.path.dirname(__file__)) | |
4 | + | |
5 | + | |
6 | +class Config(object): | |
7 | + with open(os.path.join(root_dir, 'VERSION.txt')) as version_file: | |
8 | + VERSION = version_file.read().strip() | |
9 | + | |
10 | + | |
11 | +class ProdConfig(Config): | |
12 | + TESTING = False | |
13 | + DEBUG = False | |
14 | + | |
15 | + | |
16 | +class DevConfig(Config): | |
17 | + DEBUG = True | |
18 | + | |
19 | + | |
20 | +class TestConfig(Config): | |
21 | + TESTING = True | |
22 | + DEBUG = True | |
23 | + # ignores @login_required decorator | |
24 | + # LOGIN_DISABLED = True | |
25 | + | |
26 | +# vim: tw=0 | |
0 | 27 | \ No newline at end of file | ... | ... |