mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-04 20:20:18 +03:00
Merge c5db556822
into 059c4b822e
This commit is contained in:
commit
64efc3c9f6
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user