Created
November 25, 2015 15:42
-
-
Save nonZero/1615aa7047213d8d98f3 to your computer and use it in GitHub Desktop.
Enable GeoDjango on windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
# ...... | |
if os.name == 'nt': | |
OSGEO4W = r"C:\OSGeo4W" | |
os.environ['OSGEO4W_ROOT'] = OSGEO4W | |
os.environ['GDAL_DATA'] = OSGEO4W + r"\share\gdal" | |
os.environ['PROJ_LIB'] = OSGEO4W + r"\share\proj" | |
os.environ['PATH'] = OSGEO4W + r"\bin;" + os.environ['PATH'] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment