From 54b920bef78cc176f1d3dd04a0c2a07c511dadeb Mon Sep 17 00:00:00 2001 From: Victor Oliveira da Silva Date: Sun, 15 Nov 2015 13:09:36 -0200 Subject: [PATCH] Change os.path.join call so it works on other OSs --- demo_and_tests/demo_project/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demo_and_tests/demo_project/settings.py b/demo_and_tests/demo_project/settings.py index 50b660f..b6ee659 100644 --- a/demo_and_tests/demo_project/settings.py +++ b/demo_and_tests/demo_project/settings.py @@ -25,7 +25,9 @@ # See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -with open(os.path.join(BASE_DIR, 'demo_project/SECRET_KEY.txt')) as skey_file: +with open( + os.path.join(BASE_DIR, 'demo_project', 'SECRET_KEY.txt') +) as skey_file: SECRET_KEY = skey_file.read() # SECURITY WARNING: don't run with debug turned on in production!