Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ celerybeat.pid
*.sage.py

# Environments
config/.env
.env
.venv
env/
Expand Down
4 changes: 2 additions & 2 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
from django.core.exceptions import ImproperlyConfigured
import environ

# Load .env from project root when running outside Docker (e.g. manage.py runserver, pytest)
# Load .env from config/ when running outside Docker (e.g. manage.py runserver, pytest)
BASE_DIR = Path(__file__).resolve().parent.parent
_env_file = BASE_DIR / ".env"
_env_file = BASE_DIR / "config" / ".env"
environ.Env.read_env(_env_file)

env = environ.Env(
Expand Down
Loading