Regenerate SECRET_KEY/ Hide SECRET_KEY

This commit is contained in:
sosokker 2023-08-28 19:41:10 +07:00
parent f7c2012118
commit 78065a68d3

View File

@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/4.2/ref/settings/
"""
from pathlib import Path
from decouple import config
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
@ -20,7 +21,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-ij$9jv9o30j(51=l)ho^l+x&q9)n77i1vt%j()%9=(ohh(b*!^'
SECRET_KEY = config('SECRET_KEY', default='fake-secret-key')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True