小编Cha*_*amm的帖子

带有 ssh 隧道的 django 数据库

有没有一种Python本机方法可以通过ssh隧道将django连接到数据库?我见过有人在主机中使用 ssh 端口转发,但我更喜欢一个可以轻松容器化的解决方案。

python django ssh-tunnel

4
推荐指数
1
解决办法
6945
查看次数

ModuleNotFoundError: 没有名为“dnspython”的模块

我正在尝试dnspython使用import dnspython.

pip3 freeze 显示该软件包已安装,但我不断收到错误消息 ModuleNotFoundError: No module named 'dnspython'

我试过了:

  • pip3 install dnspython
  • 使用 pip3 卸载和重新安装
  • pip3 install git+https://github.com/rthalley/dnspython
  • 从github克隆包并安装 sudo python setup.py install
  • pip3 install dnspython3import dnspython3在脚本中使用
  • 复制site-packages文件夹中克隆包的dns文件夹

我知道这篇关于 python 2.7 的帖子,但没有一个解决方案有效。

python dnspython python-3.6

2
推荐指数
1
解决办法
4725
查看次数

在 SQLModel 中使用 PostGIS 几何类型

是否可以在 SQLModel 创建的模型中使用 PostGIS 几何类型?如果是的话,该怎么办?

python postgis geoalchemy2 sqlmodel

1
推荐指数
1
解决办法
722
查看次数