Skip to content

Commit

Permalink
fix: fix weather (#195)
Browse files Browse the repository at this point in the history
* fix: fix weather

* fix: fix docker image in ci
  • Loading branch information
ollz272 authored Apr 17, 2023
1 parent 60227ed commit 3501c4c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
services:
postgres:
image: timescale/timescaledb:latest-pg14
image: timescale/timescaledb-ha:pg14-latest
env:
POSTGRES_PASSWORD: password
POSTGRES_DB: test_gardenserver_django
Expand Down
1 change: 1 addition & 0 deletions project/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"plants",
"api",
"accounts",
"weather",
]

INSTALLED_APPS = DEFAULT_APPS + THIRD_PARTY_APPS + PROJECT_APPS
Expand Down
2 changes: 1 addition & 1 deletion project/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

DATABASES = {
"default": {
"ENGINE": "timescale.db.backends.postgresql",
"ENGINE": "timescale.db.backends.postgis",
"NAME": os.environ.get("DJANGO_DATABASE_NAME", "gardenserver_django"),
"USER": "",
"PASSWORD": "",
Expand Down
2 changes: 1 addition & 1 deletion project/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

DATABASES = {
"default": {
"ENGINE": "timescale.db.backends.postgresql",
"ENGINE": "timescale.db.backends.postgis",
"NAME": os.environ.get("DJANGO_DATABASE_NAME", "gardenserver_django"),
"USER": os.environ.get("DJANGO_DATABASE_USER"),
"PASSWORD": os.environ.get("DJANGO_DATABASE_PASSWORD"),
Expand Down
2 changes: 1 addition & 1 deletion project/settings/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

DATABASES = {
"default": {
"ENGINE": "timescale.db.backends.postgresql",
"ENGINE": "timescale.db.backends.postgis",
"NAME": os.environ.get("DJANGO_DATABASE_NAME", "test_gardenserver_django"),
"USER": "postgres",
"PASSWORD": "password",
Expand Down

0 comments on commit 3501c4c

Please sign in to comment.