mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-04 20:20:18 +03:00
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:
parent
a46f3dd56b
commit
c5db556822
|
@ -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
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user