From 2b57ba63dc45d14e32a97f69483ee36e7d8fb40a Mon Sep 17 00:00:00 2001 From: Sebastian Reyes Espinosa Date: Sun, 27 Sep 2015 21:57:33 -0500 Subject: [PATCH] Enviromental variables not being read. I created a project recently, but the DB connection wasn't working, reviewing I found on django-environ this piece of code. I'm not sure if this is intended. --- {{cookiecutter.repo_name}}/config/settings/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/{{cookiecutter.repo_name}}/config/settings/common.py b/{{cookiecutter.repo_name}}/config/settings/common.py index 575bb6fdf..da299ed45 100644 --- a/{{cookiecutter.repo_name}}/config/settings/common.py +++ b/{{cookiecutter.repo_name}}/config/settings/common.py @@ -16,6 +16,7 @@ ROOT_DIR = environ.Path(__file__) - 3 # (/a/b/myfile.py - 3 = /) APPS_DIR = ROOT_DIR.path('{{ cookiecutter.repo_name }}') env = environ.Env() +environ.Env.read_env() # APP CONFIGURATION # ------------------------------------------------------------------------------