Skip to content

Commit e951202

Browse files
authored
Don't set secret key on builders (#12095)
Did a test locally, and builders work correctly, any attempt to use the secret key will raise an error, since it's empty. There is a PR in ops to remove it from there in production (wish we had settings for builders in this repo instead... a man can dream). Also, we don't need the debug toolbar in the builders, since they aren't exposed as web service.
1 parent beaeebb commit e951202

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dockerfiles/settings/build.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ def DATABASES(self): # noqa
77
return {}
88

99
DONT_HIT_DB = True
10-
10+
SHOW_DEBUG_TOOLBAR = False
11+
# The secret key is not needed from the builders.
12+
# If you get an error about it missing, you may be doing
13+
# something that shouldn't be done from the builders.
14+
SECRET_KEY = None
1115

1216
BuildDevSettings.load_settings(__name__)

0 commit comments

Comments
 (0)