我是Django的新手,我想安装宣传单来显示地图。我遵循了installation instructions,虽然pip命令似乎工作得很好,但当我转到settings.py将leaflet添加到我已安装的应用程序中时,当我保存文件时,我收到以下错误:
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x000002494D622730>在回溯的末尾是这样的:
django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal201", "gdal20", "gdal111", "gdal110", "gdal19"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your settings.在settings.py的已安装应用程序部分,我尝试添加'leaflet‘或'django-leaflet’。我遗漏了什么?
发布于 2017-09-09 01:21:18
看起来你没有正确安装GDAL。这是geodjango的要求,see the installation notes.
https://stackoverflow.com/questions/46098934
复制相似问题