summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2024-04-10 22:15:42 +0100
committerNatalia <124304+nessita@users.noreply.github.com>2024-04-10 19:47:39 -0300
commitf975cf10e0457788dc8a531bcdf06e532bac571e (patch)
tree640782f8fff7cf897c50fc11bf53b17cc4c51233 /docs/ref
parent23d605d36435f0db8ae4c3e0ccab24287d299199 (diff)
[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
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/gis/install/spatialite.txt14
1 files changed, 11 insertions, 3 deletions
diff --git a/docs/ref/contrib/gis/install/spatialite.txt b/docs/ref/contrib/gis/install/spatialite.txt
index 6606b8cff0..dd468fda26 100644
--- a/docs/ref/contrib/gis/install/spatialite.txt
+++ b/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/