mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 11:52:38 +02:00
chore: explicitely set postgis as db engine (#2285)
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.
This commit is contained in:
commit
ccd6a21958
1 changed files with 6 additions and 1 deletions
|
@ -260,7 +260,12 @@ UMAP_MAPS_PER_PAGE_OWNER = 10
|
||||||
UMAP_SEARCH_CONFIGURATION = "simple"
|
UMAP_SEARCH_CONFIGURATION = "simple"
|
||||||
UMAP_HELP_URL = "https://wiki.openstreetmap.org/wiki/UMap#Feedback_and_help"
|
UMAP_HELP_URL = "https://wiki.openstreetmap.org/wiki/UMap#Feedback_and_help"
|
||||||
USER_MAPS_URL = "user_maps"
|
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_SHARE_STATUS = None
|
||||||
UMAP_DEFAULT_EDIT_STATUS = None
|
UMAP_DEFAULT_EDIT_STATUS = None
|
||||||
UMAP_DEFAULT_FEATURES_HAVE_OWNERS = False
|
UMAP_DEFAULT_FEATURES_HAVE_OWNERS = False
|
||||||
|
|
Loading…
Reference in a new issue