Skip to content

Commit

Permalink
Change os.path.join call so it works on other OSs
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-o-silva committed Nov 15, 2015
1 parent 483cabf commit 54b920b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demo_and_tests/demo_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit 54b920b

Please sign in to comment.