Developer Experience (#911)

local dev environment
This commit is contained in:
Markos Gogoulos
2023-11-13 11:13:08 +02:00
committed by GitHub
parent 918df010f5
commit dcbfaca91c
10 changed files with 166 additions and 14 deletions

View File

@ -493,3 +493,13 @@ if GLOBAL_LOGIN_REQUIRED:
DO_NOT_TRANSCODE_VIDEO = False
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
# the following is related to local development using docker
# and docker-compose-dev.yaml
try:
DEVELOPMENT_MODE = os.environ.get("DEVELOPMENT_MODE")
if DEVELOPMENT_MODE:
# keep a dev_settings.py file for local overrides
from .dev_settings import * # noqa
except ImportError:
pass