Permalink
Browse files

Merge pull request #12 from fmr/fix/spatialite_path

Allow for a different spatialite lib path using env variables
  • Loading branch information...
Jonathan Moss
Jonathan Moss committed Dec 8, 2012
2 parents 5c42b41 + fe5fc61 commit 0b6c4458fa063990beb4ab61653217ce43252349
Showing with 5 additions and 1 deletion.
  1. +5 −1 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

0 comments on commit 0b6c445

Please sign in to comment.