Skip to content

Commit

Permalink
Removing Postgis references
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Jul 7, 2022
1 parent 53635f5 commit 619ff4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
17 changes: 8 additions & 9 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#databases

DATABASES = {"default": env.db("DATABASE_URL", default="postgis:///care")}
DATABASES = {"default": env.db("DATABASE_URL", default="postgres:///care")}
DATABASES["default"]["ATOMIC_REQUESTS"] = True
DATABASES["default"]["ENGINE"] = "django.contrib.gis.db.backends.postgis"
# DATABASES["default"]["ENGINE"] = "django.contrib.gis.db.backends.postgis"
DATABASES["default"]["CONN_MAX_AGE"] = 300

# URLS
Expand All @@ -72,7 +72,7 @@
"django.contrib.sessions",
"django.contrib.sites",
"django.contrib.messages",
"django.contrib.gis",
# "django.contrib.gis",
"django.contrib.staticfiles",
# "django.contrib.humanize", # Handy template tags
"django.contrib.admin",
Expand All @@ -88,7 +88,6 @@
"rest_framework.authtoken",
"drf_yasg",
"drf_extra_fields",
"location_field.apps.DefaultConfig",
"django_filters",
"simple_history",
"ratelimit",
Expand Down Expand Up @@ -324,11 +323,11 @@
"ROTATE_REFRESH_TOKENS": True,
}

LOCATION_FIELD = {
"search.provider": "google",
"map.provider": "openstreetmap",
"provider.openstreetmap.max_zoom": 18,
}
# LOCATION_FIELD = {
# "search.provider": "google",
# "map.provider": "openstreetmap",
# "provider.openstreetmap.max_zoom": 18,
# }


def GETKEY(group, request):
Expand Down
4 changes: 2 additions & 2 deletions config/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
# Your stuff...
# ------------------------------------------------------------------------------

DATABASES = {"default": env.db("DATABASE_URL", default="postgis:///care-test")}
DATABASES = {"default": env.db("DATABASE_URL", default="postgres:///care-test")}
DATABASES["default"]["ATOMIC_REQUESTS"] = True
DATABASES["default"]["ENGINE"] = "django.contrib.gis.db.backends.postgis"
# DATABASES["default"]["ENGINE"] = "django.contrib.gis.db.backends.postgis"

# https://whitenoise.evans.io/en/stable/django.html#whitenoise-makes-my-tests-run-slow
WHITENOISE_AUTOREFRESH = True
Expand Down

0 comments on commit 619ff4e

Please sign in to comment.