accidentally deleted my .env file and wasted 1.5 hours, hopefully this saves others from the same mistake.

My .env file was embedded in my repo and I cleaned out my repo thinking every file in it was version control, only to find a key file missing.
Then recreating I left the pything string "'" at the end and didn't catch it until now.

Signed-off-by: TidyData <mckweb@outlook.com>
This commit is contained in:
TidyData 2016-12-17 15:27:43 -08:00
parent a46f3dd56b
commit c5db556822

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
# APP CONFIGURATION
# ------------------------------------------------------------------------------