Skip to content

Commit 762cc6b

Browse files
committed
ref(docs): remove local_settings.py hack for secret key
Doc generation creates a local_settings.py file, because at one time having SECRET_KEY unset caused an error when importing Django code. That was essentially a temp file that was never cleaned up, and it no longer seems to be necessary.
1 parent b2372c0 commit 762cc6b

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

docs/conf.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@
2222
open(os.path.join('..', '__init__.py'), 'a')
2323
sys.path.insert(0, os.path.abspath(os.path.join('..')))
2424
sys.path.insert(0, os.path.abspath(os.path.join('..', 'controller')))
25-
# create local_settings.py for SECRET_KEY if necessary
26-
local_settings_path = os.path.abspath(
27-
os.path.join('..', 'controller', 'deis', 'local_settings.py'))
28-
if not os.path.exists(local_settings_path):
29-
with open(local_settings_path, 'w') as local_settings:
30-
local_settings.write("SECRET_KEY = 'DummySecretKey'\n")
3125
# set up Django
3226
os.environ['DJANGO_SETTINGS_MODULE'] = 'deis.settings'
3327
from django.conf import settings # noqa

0 commit comments

Comments
 (0)