From 2d4a51a9f0abbffe081e04299f6b4fd3045f808a Mon Sep 17 00:00:00 2001 From: Richard Hitier Date: Thu, 4 Feb 2021 18:43:08 +0100 Subject: [PATCH] gitignore --- .gitignore | 6 ++++++ resources/app_config.py | 26 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 0 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5cb79ee --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +venv/ +__pycache__ +app_config.py +!resources/app_config.py +.idea +.flaskenv diff --git a/resources/app_config.py b/resources/app_config.py index e69de29..280e999 100644 --- a/resources/app_config.py +++ b/resources/app_config.py @@ -0,0 +1,26 @@ +import os + +root_dir = os.path.abspath(os.path.dirname(__file__)) + + +class Config(object): + with open(os.path.join(root_dir, 'VERSION.txt')) as version_file: + VERSION = version_file.read().strip() + + +class ProdConfig(Config): + TESTING = False + DEBUG = False + + +class DevConfig(Config): + DEBUG = True + + +class TestConfig(Config): + TESTING = True + DEBUG = True + # ignores @login_required decorator + # LOGIN_DISABLED = True + +# vim: tw=0 \ No newline at end of file -- libgit2 0.21.2