Skip to content

Instantly share code, notes, and snippets.

@tr00st
Created October 13, 2016 09:18
Show Gist options
  • Save tr00st/70b20164d1c492ab720fc97cbc9f2ed0 to your computer and use it in GitHub Desktop.
Save tr00st/70b20164d1c492ab720fc97cbc9f2ed0 to your computer and use it in GitHub Desktop.
GeoDjango Win64 workarounds
# First install GDAL as a wheel from: http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal
# Then ensure the following are added to your local settings.py (check the dll name, this may change!)
GDAL_LIBRARY_PATH = r"env\Lib\site-packages\osgeo\gdal200.dll"
environ["PATH"] = "{};{}".format(r"env\Lib\site-packages\osgeo", environ["PATH"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment