设定:
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,为什么会发生这种情况