Skip to content

Commit

Permalink
added default values for secret_key and security_hash
Browse files Browse the repository at this point in the history
  • Loading branch information
fumblehool committed Oct 31, 2020
1 parent 5536dc6 commit aa80e29
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

This comment has been minimized.

Copy link
@aaron-junot

aaron-junot Oct 31, 2020

Member

Please remove this and put it in the .env file


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")
Expand Down

0 comments on commit aa80e29

Please sign in to comment.