Skip to content

Commit

Permalink
Allow setting the BASE_DIR through env in enterprise
Browse files Browse the repository at this point in the history
This is useful in dev mode, as the enterprise backend code is beyond the top-level package
  • Loading branch information
nas-tabchiche committed Sep 4, 2024
1 parent cef05f9 commit 235bb58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enterprise/backend/enterprise_core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import structlog
from django.core.management.utils import get_random_secret_key

BASE_DIR = Path(__file__).resolve().parent.parent
BASE_DIR = Path(os.getenv("DJANGO_BASE_DIR", Path(__file__).resolve().parent.parent))

load_dotenv(BASE_DIR / ".meta")

Expand Down

0 comments on commit 235bb58

Please sign in to comment.