fix: development setup
This commit is contained in:
@@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/5.1/ref/settings/
|
||||
|
||||
import environ
|
||||
from pathlib import Path
|
||||
import os
|
||||
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
@@ -19,7 +20,9 @@ PROJ_DIR = Path(__file__).resolve().parent
|
||||
BASE_DIR = PROJ_DIR.parent
|
||||
env = environ.Env(
|
||||
DJANGO_DEBUG=(bool, True),
|
||||
DJANGO_SECRET_KEY=(str, 'changeme'),
|
||||
)
|
||||
environ.Env.read_env(os.path.join(BASE_DIR, '.env'))
|
||||
|
||||
|
||||
# Quick-start development settings - unsuitable for production
|
||||
|
||||
Reference in New Issue
Block a user