Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow for a different spatialite lib path using env variables

  • Loading branch information...
commit fe5fc61bb247248322ea5bee4a0dc582a9f5c53a 1 parent 5d4d729
@fmr fmr authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 sandbox/sandbox/settings.py
View
6 sandbox/sandbox/settings.py
@@ -207,4 +207,8 @@
}
}
-STORES_SRID = 32140, # Flat projection so spatialite can do distances
+# STORES_SRID = 32140, # Flat projection so spatialite can do distances
+
+spatialite_lib = os.environ.get('SPATIALITE_LIBRARY_PATH')
+if spatialite_lib != '':
+ SPATIALITE_LIBRARY_PATH = spatialite_lib
Please sign in to comment.
Something went wrong with that request. Please try again.