We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5536dc6 commit aa80e29Copy full SHA for aa80e29
configs.py
@@ -38,13 +38,11 @@ def get_sys_exec_root_or_drive():
38
print("Application requires 'ALGOLIA_APP_ID' and 'ALGOLIA_API_KEY' for search")
39
40
41
-secret_key = os.environ.get('SECRET_KEY')
+secret_key = os.environ.get('SECRET_KEY', 'change_secret_key')
42
43
security_password_hash = 'pbkdf2_sha512'
44
# Replace this with your own salt.
45
-security_password_salt = os.environ.get('SECURITY_PASSWORD_SALT')
46
-if not all([secret_key, security_password_salt]):
47
- raise KeyError("Keys'SECRET_KEY' and 'SECURITY_PASSWORD_SALT' missing")
+security_password_salt = os.environ.get('SECURITY_PASSWORD_SALT', '!@#$!!@$%@')
48
49
50
index_name = os.environ.get("INDEX_NAME")
0 commit comments