File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
22
BASE_DIR = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
23
23
24
24
# [START cloudrun_django_secret_config]
25
- env = environ .Env (DEBUG = (bool , False ))
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 ))
26
28
env_file = os .path .join (BASE_DIR , ".env" )
27
29
28
30
# Attempt to load the Project ID into the environment, safely failing on error.
61
63
# [END cloudrun_django_secret_config]
62
64
SECRET_KEY = env ("SECRET_KEY" )
63
65
64
- # SECURITY WARNING: don't run with debug turned on in production!
65
- # Change this to "False" when you are ready for production
66
- DEBUG = True
66
+ DEBUG = env ("DEBUG" )
67
67
68
68
# SECURITY WARNING: It's recommended that you change this setting when
69
69
# running in production. The URL will be known once you first deploy
You can’t perform that action at this time.
0 commit comments