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.
This commit is contained in:
Sebastian Reyes Espinosa 2015-09-27 21:57:33 -05:00
parent 86d9c848ca
commit 2b57ba63dc

View File

@ -16,6 +16,7 @@ ROOT_DIR = environ.Path(__file__) - 3 # (/a/b/myfile.py - 3 = /)
APPS_DIR = ROOT_DIR.path('{{ cookiecutter.repo_name }}') APPS_DIR = ROOT_DIR.path('{{ cookiecutter.repo_name }}')
env = environ.Env() env = environ.Env()
environ.Env.read_env()
# APP CONFIGURATION # APP CONFIGURATION
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------