We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ecb1cc commit 55f5e82Copy full SHA for 55f5e82
oc_lettings_site/settings.py
@@ -1,6 +1,6 @@
1
import os
2
import sentry_sdk
3
-# from django.core.management.utils import get_random_secret_key
+from django.core.management.utils import get_random_secret_key
4
from sentry_sdk.integrations.django import DjangoIntegration
5
6
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
@@ -11,8 +11,7 @@
11
# Quick-start development settings - unsuitable for production
12
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
13
14
-SECRET_KEY = os.environ.get('SECRET_KEY')
15
-# , default=get_random_secret_key()
+SECRET_KEY = os.environ.get('SECRET_KEY', default=get_random_secret_key())
16
17
if not IS_HEROKU:
18
DEBUG = True
0 commit comments