fix: development setup
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
CELERY_BROKER_URL='redis://redis:6379/0'
|
CELERY_BROKER_URL='redis://redis:6379/0'
|
||||||
CELERY_RESULT_BACKEND='redis://redis:6379/0'
|
CELERY_RESULT_BACKEND='redis://redis:6379/0'
|
||||||
DJANGO_DEBUG='True'
|
DJANGO_DEBUG='False'
|
||||||
DJANGO_SECRET_KEY='changeme'
|
DJANGO_SECRET_KEY='changeme'
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/5.1/ref/settings/
|
|||||||
|
|
||||||
import environ
|
import environ
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# 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
|
BASE_DIR = PROJ_DIR.parent
|
||||||
env = environ.Env(
|
env = environ.Env(
|
||||||
DJANGO_DEBUG=(bool, True),
|
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
|
# Quick-start development settings - unsuitable for production
|
||||||
|
|||||||
Reference in New Issue
Block a user