Skip to content

Commit

Permalink
modify: 필수 환경 변수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuung committed Dec 7, 2024
1 parent df4acac commit 785f058
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
14 changes: 6 additions & 8 deletions backoffice/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,12 @@

DATABASES = {
"default": {
"ENGINE": env(
"DATABASE_ENGINE", default="django.db.backends.postgresql"
),
"NAME": env("POSTGRES_NAME", default="postgres"),
"USER": env("POSTGRES_USER", default="postgres"),
"PASSWORD": env("POSTGRES_PASSWORD", default="postgres"),
"HOST": env("POSTGRES_HOST", default="localhost"),
"PORT": env("POSTGRES_PORT", default="5432"),
"ENGINE": env("DATABASE_ENGINE", default="django.db.backends.sqlite3"),
"NAME": env("DATABASE_NAME", default=str(BASE_DIR / "db.sqlite3")),
"USER": env("POSTGRES_USER", default=""),
"PASSWORD": env("POSTGRES_PASSWORD", default=""),
"HOST": env("POSTGRES_HOST", default=""),
"PORT": env("POSTGRES_PORT", default=""),
}
}

Expand Down
7 changes: 0 additions & 7 deletions backoffice/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,3 @@

# test-ci 에서 test dbms 로 timesacleDB 를 사용하지 못함
# 이를 위해 test 환경은 부득이한 local-dbms 를 사용하게 해야 함

DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "db.sqlite3", # noqa: F405
}
}

0 comments on commit 785f058

Please sign in to comment.