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 8c1b2fd commit cb8db8bCopy full SHA for cb8db8b
run/django/mysite/settings.py
@@ -22,6 +22,8 @@
22
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
23
24
# [START cloudrun_django_secret_config]
25
+# SECURITY WARNING: don't run with debug turned on in production!
26
+# Change this to "False" when you are ready for production
27
env = environ.Env(DEBUG=(bool, True))
28
env_file = os.path.join(BASE_DIR, ".env")
29
@@ -61,8 +63,6 @@
61
63
# [END cloudrun_django_secret_config]
62
64
SECRET_KEY = env("SECRET_KEY")
65
-# SECURITY WARNING: don't run with debug turned on in production!
-# Change this to "False" when you are ready for production
66
DEBUG = env("DEBUG")
67
68
# SECURITY WARNING: It's recommended that you change this setting when
0 commit comments