From aa80e29339a76cc7d7fae8253f4f6a07b3bb39dc Mon Sep 17 00:00:00 2001 From: Damanpreet Singh Date: Sat, 31 Oct 2020 17:42:59 +0530 Subject: [PATCH] added default values for secret_key and security_hash --- configs.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/configs.py b/configs.py index 9dce8d2c..bf44d010 100644 --- a/configs.py +++ b/configs.py @@ -38,13 +38,11 @@ def get_sys_exec_root_or_drive(): print("Application requires 'ALGOLIA_APP_ID' and 'ALGOLIA_API_KEY' for search") -secret_key = os.environ.get('SECRET_KEY') +secret_key = os.environ.get('SECRET_KEY', 'change_secret_key') security_password_hash = 'pbkdf2_sha512' # Replace this with your own salt. -security_password_salt = os.environ.get('SECURITY_PASSWORD_SALT') -if not all([secret_key, security_password_salt]): - raise KeyError("Keys'SECRET_KEY' and 'SECURITY_PASSWORD_SALT' missing") +security_password_salt = os.environ.get('SECURITY_PASSWORD_SALT', '!@#$!!@$%@') index_name = os.environ.get("INDEX_NAME")