Skip to content

Commit cb8db8b

Browse files
authored
Move security warning
1 parent 8c1b2fd commit cb8db8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run/django/mysite/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
2323

2424
# [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
2527
env = environ.Env(DEBUG=(bool, True))
2628
env_file = os.path.join(BASE_DIR, ".env")
2729

@@ -61,8 +63,6 @@
6163
# [END cloudrun_django_secret_config]
6264
SECRET_KEY = env("SECRET_KEY")
6365

64-
# SECURITY WARNING: don't run with debug turned on in production!
65-
# Change this to "False" when you are ready for production
6666
DEBUG = env("DEBUG")
6767

6868
# SECURITY WARNING: It's recommended that you change this setting when

0 commit comments

Comments
 (0)