【发布时间】:2018-11-03 18:03:53
【问题描述】:
设置:
Windows 10
Python 2.7
Django 1.11
Standalone GDAL install gdal-202-1911-core.msi from gisinternals
QGIS version 3
PostgreSQL 9.5 with Postgis 2.3
错误
from django.contrib.gis.utils import LayerMapping
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
ImportError: cannot import name LayerMapping
我可以打开 layermapping.py,文件在那里。我这里的设置肯定有问题。我应该怎么做才能正确导入 LayerMapping,为什么会发生这种情况
【问题讨论】:
标签: python django gdal geodjango