| 1 |
Fromscip-debian debian django-prometheus 2.5.0-2 django-prometheus/patches/`0001-Do-not-check-DJANGO_SETTINGS_MODULE-environment-when.patch`#From.: Michael Fladischer <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Datescip-debian debian django-prometheus 2.5.0-2 django-prometheus/patches/`0001-Do-not-check-DJANGO_SETTINGS_MODULE-environment-when.patch`#Date.: Wed, 8 Jul 2026 21:32:56 +0000 |
| 3 |
Subjectscip-debian debian django-prometheus 2.5.0-2 django-prometheus/patches/`0001-Do-not-check-DJANGO_SETTINGS_MODULE-environment-when.patch`#Subject.: Do not check DJANGO_SETTINGS_MODULE environment when importing |
| 4 |
postgis backend. |
| 5 |
|
| 6 |
--- |
| 7 |
django_prometheus/tests/test_db_wrapper.py | 12 +++++------- |
| 8 |
1 file changed, 5 insertions(+), 7 deletions(-) |
| 9 |
|
| 10 |
diff --git a/django_prometheus/tests/test_db_wrapper.pyscip-debian debian django-prometheus 2.5.0-2 django-prometheus/upstream/`django_prometheus/tests/test_db_wrapper.py`: b/django_prometheus/tests/test_db_wrapper.pyscip-debian debian django-prometheus 2.5.0-2 django-prometheus/upstream/`django_prometheus/tests/test_db_wrapper.py`: |
| 11 |
index 534ffeb..b809cfb 100644 |
| 12 |
--- a/django_prometheus/tests/test_db_wrapper.py |
| 13 |
+++ b/django_prometheus/tests/test_db_wrapper.py |
| 14 |
@@ -19,14 +19,12 @@ except Exception: |
| 15 |
|
| 16 |
import os |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
+try: |
| 23 |
+ import django.contrib.gis.db.backends.postgis.base # noqa: F401 |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
+ _can_import_postgis_backend = True |
| 29 |
+except Exception: |
| 30 |
+ _can_import_postgis_backend = False |
| 31 |
|
| 32 |
|
| 33 |
class DummyCursor: |