diff --git a/hello_world/settings.py b/hello_world/settings.py index ca3c80a7..91167968 100644 --- a/hello_world/settings.py +++ b/hello_world/settings.py @@ -22,7 +22,8 @@ # See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = config("SECRET_KEY", default='') +from django.core.management.utils import get_random_secret_key +SECRET_KEY = get_random_secret_key() # SECURITY WARNING: don't run with debug turned on in production! DEBUG = config("DEBUG", default=True)