Skip to content

Commit

Permalink
Add debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
cxrxixs committed May 12, 2024
1 parent 29c1b6b commit 664293c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@

DJANGO_ENVIRONMENT = os.environ.get("DJANGO_ENVIRONMENT", "dev")

# debug
print("xxxxx DJANGO ENV xxxxx")
print(DJANGO_ENVIRONMENT)
print("xxxxx END DJANGO ENV xxxxx")

if DJANGO_ENVIRONMENT == "dev":
dotenv_file = os.path.join(BASE_DIR, "docker/.env.dev")
elif DJANGO_ENVIRONMENT == "test":
Expand All @@ -36,6 +41,11 @@
else:
dotenv_file = os.path.join(BASE_DIR, "docker/.env.dev")

# debug
print("xxxxxxxxxxxxx DOTENV FILE xxxxxxxxxxxxxxxxxxxxxxxx")
print(dotenv_file)
print("xxxxxxxxxxxxx END DOTENV FILE xxxxxxxxxxxxxxxxxxxxxxxx")

if os.path.isfile(dotenv_file):
dotenv.load_dotenv(dotenv_file)
env = environ.Env(
Expand Down

0 comments on commit 664293c

Please sign in to comment.