1
0
mirror of https://github.com/django/django.git synced 2025-03-13 02:40:47 +00:00

Fixed settings path in docs for installing SpatiaLite with Homebrew.

Co-authored-by: Adam Zapletal <adamzap@gmail.com>
This commit is contained in:
Adam Johnson 2024-04-10 22:15:42 +01:00 committed by GitHub
parent e359f05b49
commit 8bbf73ca74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,9 +111,17 @@ including SQLite, SpatiaLite, PROJ, and GEOS. Install them like this:
$ brew install spatialite-tools $ brew install spatialite-tools
$ brew install gdal $ brew install gdal
Finally, for GeoDjango to be able to find the SpatiaLite library, add the Finally, for GeoDjango to be able to find the SpatiaLite library, set
following to your ``settings.py``:: 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/ .. _Homebrew: https://brew.sh/