Skip to content

Commit

Permalink
Use Open Street Maps in Admin Panel
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Mar 22, 2020
1 parent 653f976 commit ecff77c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#databases

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

Expand Down Expand Up @@ -320,3 +320,10 @@
days=env("JWT_REFRESH_TOKEN_LIFETIME", default=7)
),
}


LOCATION_FIELD = {
"search.provider": "google",
"map.provider": "openstreetmap",
"provider.openstreetmap.max_zoom": 18,
}
2 changes: 1 addition & 1 deletion config/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
default="eXZQzOzx8gV38rDG0Z0fFZWweUGl3LwMZ9aTKqJiXQTI0nKMh0Z7sbHfqT8KFEnd",
)
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1"]
ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1", "*"]

# CACHES
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit ecff77c

Please sign in to comment.