From 3501c4c07fa5d09d48a20961f5d867720a8e965e Mon Sep 17 00:00:00 2001 From: Oliver Parker <46482091+ollz272@users.noreply.github.com> Date: Mon, 17 Apr 2023 08:00:54 +0100 Subject: [PATCH] fix: fix weather (#195) * fix: fix weather * fix: fix docker image in ci --- .github/workflows/ci.yml | 2 +- project/settings/base.py | 1 + project/settings/local.py | 2 +- project/settings/production.py | 2 +- project/settings/testing.py | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) 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",