This commit is contained in:
TidyData 2017-02-13 18:47:30 +00:00 committed by GitHub
commit 64efc3c9f6

View File

@ -16,6 +16,8 @@ ROOT_DIR = environ.Path(__file__) - 3 # ({{ cookiecutter.project_slug }}/config
APPS_DIR = ROOT_DIR.path('{{ cookiecutter.project_slug }}')
env = environ.Env()
# Assumes .env exists one folder above where manage.py exists
env.read_env(str((ROOT_DIR - 1).path('.env'))) # reads the environment file
# Load operating system environment variables and then prepare to use them
env = environ.Env()