Browse Source

[5.0.x] Fixed settings path in docs for installing SpatiaLite with Homebrew.

Co-authored-by: Adam Zapletal <adamzap@gmail.com>

Backport of 8bbf73ca749d7740c82a7cd52f38289444070900 from main
Adam Johnson 11 months ago
parent
commit
f975cf10e0
1 changed files with 11 additions and 3 deletions
  1. 11 3
      docs/ref/contrib/gis/install/spatialite.txt

+ 11 - 3
docs/ref/contrib/gis/install/spatialite.txt

@@ -111,9 +111,17 @@ including SQLite, SpatiaLite, PROJ, and GEOS. Install them like this:
     $ brew install spatialite-tools
     $ brew install gdal
 
-Finally, for GeoDjango to be able to find the SpatiaLite library, add the
-following to your ``settings.py``::
+Finally, for GeoDjango to be able to find the SpatiaLite library, set
+the ``SPATIALITE_LIBRARY_PATH`` setting to its path. This will be within
+your brew install path, which you can check with:
 
-    SPATIALITE_LIBRARY_PATH = "/usr/local/lib/mod_spatialite.dylib"
+.. code-block:: console
+
+    $ brew --prefix
+    /opt/homebrew
+
+Using this brew install path, the full path can be constructed like this::
+
+    SPATIALITE_LIBRARY_PATH = "/opt/homebrew/lib/mod_spatialite.dylib"
 
 .. _Homebrew: https://brew.sh/