Initialize env variable

This commit is contained in:
Fred Pauchet 2021-10-27 20:39:13 +02:00
parent f4c3b7a1b4
commit 5f3f8506f6
1 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,11 @@ from pathlib import Path
import environ
env = environ.Env(
# set casting, default value
DEBUG=(bool, False)
)
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent