Skip to content

Commit cfde8dc

Browse files
committed
v1.0.27 - Settings/SECRET_KEY: remove randomness if not specified
1 parent d07f46d commit cfde8dc

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## [1.0.27] 2025-05-11
4+
### [Django AdminLTE](https://app-generator.dev/product/adminlte/django/) Changes
5+
6+
- CONFIG.Settings/SECRET_KEY: remove randomness if not specified
7+
38
## [1.0.26] 2025-05-06
49
### [Django AdminLTE](https://app-generator.dev/product/adminlte/django/) Changes
510

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)