[Django] #34086: Confirm support for PostGIS 3.3

0 views
Skip to first unread message

Django

unread,
Oct 11, 2022, 2:29:30 PM10/11/22
to django-...@googlegroups.com
#34086: Confirm support for PostGIS 3.3
-------------------------------------+-------------------------------------
Reporter: Paolo | Owner: Paolo Melchiorre
Melchiorre |
Type: New | Status: assigned
feature |
Component: GIS | Version: dev
Severity: Normal | Keywords: postgis
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
I checked that the tests pass on PostGIS 3.3.

== Files

`postgis.py`
{{{
#!python
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'HOST': 'postgres',
'NAME': 'geodjango',
'PASSWORD': 'postgres',
'PORT': 5432,
'USER': 'postgres',
},
'other': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'HOST': 'postgres',
'NAME': 'other',
'PASSWORD': 'postgres',
'PORT': 5433,
'USER': 'postgres',
},
}

SECRET_KEY = 'django_tests_secret_key'

USE_TZ = False
}}}

`docker-compose.yaml`
{{{
#!yaml
services:

geodjango:
environment:
- POSTGRES_DB=geodjango
- POSTGRES_PASSWORD=postgres
image: postgis/postgis:14-3.3
ports:
- "5432:5432"
volumes:
- geodjango_data:/var/lib/postgresql/data

other:
environment:
- POSTGRES_DB=other
- POSTGRES_PASSWORD=postgres
image: postgis/postgis:14-3.3
ports:
- "5433:5432"
volumes:
- other_data:/var/lib/postgresql/data

volumes:
geodjango_data: {}
other_data: {}
}}}

== Test

{{{
#!python
(django) paulox@net:~/Projects/django/tests$ time ./runtests.py
--settings=postgis gis_tests --timing -v0
System check identified 52 issues (1 silenced).
----------------------------------------------------------------------
Ran 553 tests in 23.196s

OK (skipped=20)
Total database setup took 14.557s
Creating 'default' took 2.982s
Cloning 'default' took 0.639s
Cloning 'default' took 0.481s
Cloning 'default' took 0.564s
Cloning 'default' took 0.542s
Cloning 'default' took 0.551s
Cloning 'default' took 0.475s
Cloning 'default' took 0.452s
Cloning 'default' took 0.470s
Creating 'other' took 3.105s
Cloning 'other' took 0.598s
Cloning 'other' took 0.550s
Cloning 'other' took 0.539s
Cloning 'other' took 0.550s
Cloning 'other' took 0.522s
Cloning 'other' took 0.601s
Cloning 'other' took 0.480s
Cloning 'other' took 0.454s
Total database teardown took 2.556s
Total run took 40.594s
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34086>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Oct 11, 2022, 2:36:30 PM10/11/22
to django-...@googlegroups.com
#34086: Confirm support for PostGIS 3.3
-------------------------------------+-------------------------------------
Reporter: Paolo Melchiorre | Owner: Paolo
| Melchiorre
Type: New feature | Status: assigned
Component: GIS | Version: dev
Severity: Normal | Resolution:
Keywords: postgis | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Paolo Melchiorre):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/16171 PR #16171]

--
Ticket URL: <https://code.djangoproject.com/ticket/34086#comment:1>

Django

unread,
Oct 11, 2022, 2:37:20 PM10/11/22
to django-...@googlegroups.com
#34086: Confirm support for PostGIS 3.3
-------------------------------------+-------------------------------------
Reporter: Paolo Melchiorre | Owner: Paolo
| Melchiorre
Type: New feature | Status: assigned
Component: GIS | Version: dev
Severity: Normal | Resolution:
Keywords: postgis | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Paolo Melchiorre:

Old description:

New description:

== Files

SECRET_KEY = 'django_tests_secret_key'

USE_TZ = False
}}}

`docker-compose.yaml`
{{{
#!yaml
services:

volumes:
geodjango_data: {}
other_data: {}
}}}

== Test

{{{
#!bash

--

--
Ticket URL: <https://code.djangoproject.com/ticket/34086#comment:2>

Django

unread,
Oct 11, 2022, 2:37:57 PM10/11/22
to django-...@googlegroups.com

Old description:

New description:

== Files

SECRET_KEY = 'django_tests_secret_key'

USE_TZ = False
}}}

`docker-compose.yaml`
{{{
#!yaml
services:

volumes:
geodjango_data: {}
other_data: {}
}}}

== Test

{{{
#!shell
(django) paulox@net:~/Projects/django/tests$ ./runtests.py

--

--
Ticket URL: <https://code.djangoproject.com/ticket/34086#comment:3>

Django

unread,
Oct 11, 2022, 3:40:53 PM10/11/22
to django-...@googlegroups.com
#34086: Confirm support for PostGIS 3.3
-------------------------------------+-------------------------------------
Reporter: Paolo Melchiorre | Owner: Paolo
| Melchiorre
Type: New feature | Status: assigned
Component: GIS | Version: dev
Severity: Normal | Resolution:
Keywords: postgis | Triage Stage: Accepted

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/34086#comment:4>

Django

unread,
Oct 12, 2022, 3:05:28 AM10/12/22
to django-...@googlegroups.com
#34086: Confirm support for PostGIS 3.3
-------------------------------------+-------------------------------------
Reporter: Paolo Melchiorre | Owner: Paolo
| Melchiorre
Type: New feature | Status: closed
Component: GIS | Version: dev
Severity: Normal | Resolution: fixed

Keywords: postgis | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"7c9d0c31d5c1ec75df9cb173914b8e752017c205" 7c9d0c31]:
{{{
#!CommitTicketReference repository=""
revision="7c9d0c31d5c1ec75df9cb173914b8e752017c205"
Fixed #34086 -- Confirmed support for PostGIS 3.3.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34086#comment:5>

Reply all
Reply to author
Forward
0 new messages