mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-04 12:10:16 +03:00
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:
parent
86d9c848ca
commit
2b57ba63dc
|
@ -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
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user