Skip to content

Commit

Permalink
test build 6
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegGsk committed Sep 29, 2024
1 parent 9a7f6fe commit 7015852
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion adaptive_hockey_federation/core/config/base_settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from pathlib import Path
from re import DEBUG

import environ
from django.contrib.messages import constants as messages
Expand Down
13 changes: 3 additions & 10 deletions adaptive_hockey_federation/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,19 @@
import sys
import environ

from adaptive_hockey_federation.core.config.base_settings import BASE_DIR

env = environ.Env()


env.read_env(BASE_DIR.parent / ".env")

DEBUG = os.environ.get("DEBUG")


print(f"{DEBUG=}")

switch_prod_dev = {"True": "dev", "False": "prod"}
print(switch_prod_dev[str(DEBUG)])


def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE",
f"core.config.{switch_prod_dev[str(DEBUG)]}_settings")
os.environ.setdefault(
"DJANGO_SETTINGS_MODULE",
f"core.config.{switch_prod_dev[str(DEBUG)]}_settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down

0 comments on commit 7015852

Please sign in to comment.