diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be222a3..98bfe18 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/project/settings/base.py b/project/settings/base.py index b0d9d2d..86dd9a3 100644 --- a/project/settings/base.py +++ b/project/settings/base.py @@ -52,6 +52,7 @@ "plants", "api", "accounts", + "weather", ] INSTALLED_APPS = DEFAULT_APPS + THIRD_PARTY_APPS + PROJECT_APPS diff --git a/project/settings/local.py b/project/settings/local.py index 71dd718..cbf14bb 100644 --- a/project/settings/local.py +++ b/project/settings/local.py @@ -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": "", diff --git a/project/settings/production.py b/project/settings/production.py index 0d790d4..6e14633 100644 --- a/project/settings/production.py +++ b/project/settings/production.py @@ -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"), diff --git a/project/settings/testing.py b/project/settings/testing.py index 0760e01..483078e 100644 --- a/project/settings/testing.py +++ b/project/settings/testing.py @@ -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",