Changes between Initial Version and Version 1 of Ticket #28160
- Timestamp:
- May 1, 2017, 9:55:02 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28160 – Description
initial v1 18 18 This is a problem in both Django 1.10 and 1.11. 19 19 20 A workaround for this is to run this code before the (postgis) database driver is loaded (e.g. through an own custom database driver that just sub-classes the original): 21 22 {{{ 23 import django.contrib.gis.gdal 24 class GDALRasterMock(object): 25 pass 26 django.contrib.gis.gdal.GDALRaster = GDALRasterMock 27 }}} 28 20 29 ¹ In my project I need to do the latter to disable GDAL support completely, because loading the library conflicts with `pgmagick` on Ubuntu and there is no other way to disable GDAL, but this shouldn't matter here. It would be nice though to have a way to force `HAS_GDAL = False`, because unlike said in `django/django/contrib/gis/gdal/__init__.py`, setting `GDAL_LIBRARY_PATH='/null/path'` doesn't work (the automatic OS checks override this).