Skip to content

Commit 55c017c

Browse files
author
Mominur Rahman
authored
Settings/SECRET_KEY: remove randomness if not specified
1 parent 8a23f3c commit 55c017c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

config/settings.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
2525

2626
# SECURITY WARNING: keep the secret key used in production secret!
27-
SECRET_KEY = os.environ.get('SECRET_KEY')
28-
if not SECRET_KEY:
29-
SECRET_KEY = ''.join(random.choice( string.ascii_lowercase ) for i in range( 32 ))
27+
SECRET_KEY = os.environ.get('SECRET_KEY', 'Super_Secr3t_9999')
3028

3129
# Enable/Disable DEBUG Mode
3230
DEBUG = str2bool(os.environ.get('DEBUG'))

0 commit comments

Comments
 (0)