Skip to content

Commit

Permalink
chore: explicitely set postgis as db engine (#2285)
Browse files Browse the repository at this point in the history
While working on a helm chart, we do not control the creation of the db
URL, which use "postgres://" instead of "postgis://", so Django does not
set the correct engine. So let's be explicit here.
  • Loading branch information
yohanboniface authored Nov 20, 2024
2 parents 5cef79d + 833941a commit ccd6a21
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion umap/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,12 @@
UMAP_SEARCH_CONFIGURATION = "simple"
UMAP_HELP_URL = "https://wiki.openstreetmap.org/wiki/UMap#Feedback_and_help"
USER_MAPS_URL = "user_maps"
DATABASES = {"default": env.db(default="postgis://localhost:5432/umap")}
DATABASES = {
"default": env.db(
default="postgis://localhost:5432/umap",
engine="django.contrib.gis.db.backends.postgis",
)
}
UMAP_DEFAULT_SHARE_STATUS = None
UMAP_DEFAULT_EDIT_STATUS = None
UMAP_DEFAULT_FEATURES_HAVE_OWNERS = False
Expand Down

0 comments on commit ccd6a21

Please sign in to comment.