admin管理员组文章数量:1323323
i have a geodjango project with python 13 and windows 11 i have install qgis software also
in my project settings for gdal path i have
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
"django.contrib.gis",
"world",
]
GDAL_LIBRARY_PATH = r'C:\Program Files\QGIS 3.34.14\bin\gdal309.dll'
GEOS_LIBRARY_PATH = r'C:\Program Files\QGIS 3.34.14\bin\geos_c.dll'
DATABASES = {
"default": {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'dbname',
'USER': 'user',
'PASSWORD': 'password',
'HOST': '127.0.0.1',
'PORT': '5432',
'CONN_MAX_AGE': 0,
},
}
The project runs in vscode but not with pycharm
it returns error
oserror(22, The specified procedure could not be found)
<CDLL 'C:\Program Files\QGIS 3.34.14\bin\gdal309.dll', handle 0 at 0x1cabd1bd570>
本文标签: djangoPycharm with gdal library on windows 11Stack Overflow
版权声明:本文标题:django - Pycharm with gdal library on windows 11 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742142473a2422642.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论