Read env file

This commit is contained in:
Fred Pauchet 2021-10-27 20:50:58 +02:00
parent 5f3f8506f6
commit 6e32241d37
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ env = environ.Env(
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
environ.Env.read_env(os.path.join(BASE_DIR, '.env'))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/