Skip to content

Commit 16cbe63

Browse files
committedJan 24, 2025
Refactor: code use environment variables for SECRET_KEY and DEBUG
1 parent 2d28e27 commit 16cbe63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎pddikti/settings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/
3232

3333
# SECURITY WARNING: keep the secret key used in production secret!
34-
SECRET_KEY = 'django-insecure-k#j0vi!7kmak$0b+))v3jxnzs%7ymsfwg5df6v_7o*q02y0(6c'
34+
SECRET_KEY = config('SECRET_KEY')
3535

3636
# SECURITY WARNING: don't run with debug turned on in production!
37-
DEBUG = False
37+
DEBUG = config('DEBUG', default=False, cast=bool)
3838

3939
ALLOWED_HOSTS = [
4040
'127.0.0.1',

0 commit comments

Comments
 (0)