如何使用Django设置OrientDB pyorientogm?

2024-03-29 06:46:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我在连接Django和Orientdb pyorientogm时遇到了困难。在

我在我的设置.py用Django归档。在

# PYORIENT DB SETTINGS
DJANGORIENT_SETTINGS = {
    'host': 'localhost',
    'port': '2480',
    'username': 'xxxx',
    'password': 'xxxxxxxxxx',
    'name': 'authdb'
}

from pyorient.ogm import declarative
Node = declarative.declarative_node()
Relationship = declarative.declarative_relationship()

但我无法通过我的模型.py文件

^{pr2}$

关于如何连接这两种技术有什么建议吗?在


Tags: djangopylocalhosthostdbsettingsportusername