我試圖讓neo4django的django應用程序與graphenedb上託管的neo4j數據庫交談。使用neo4django與graphenedb
我有我的本地安裝完美工作,但沒有身份驗證連接到我的本地neo4j實例。要連接到graphenedb,我需要通過我的憑據,我無法解決如何做到這一點。
我可以看到neo4django github回購(https://github.com/scholrly/neo4django/issues/224),這表明這應該是可能的,但我看不出如何。
我已經嘗試添加
'OPTIONS': {
'USERNAME': 'my username',
'PASSWORD': 'my password'
}
在我的字典NEO4J_DATABASES默認項,但我得到
File "......./neo4django/neo4django/neo4jclient.py", line 30, in __init__
super(EnhancedGraphDatabase, self).__init__(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'PASSWORD'
任何人在那裏得到了這個工作?
編輯
這裏是我的NEO4J_DATABASES的其餘部分(設置都是在其他地方從我創建了一個NEO4J_URL環境變量分析):
NEO4J_DATABASES = {
'default' : {
'HOST': neo4j_uri.hostname,
'PORT': neo4j_uri.port,
'ENDPOINT': neo4j_uri.path,
'OPTIONS': {
'USERNAME': neo4j_uri.username,
'PASSWORD': neo4j_uri.password
}
}
}
你能分享你的'NEO4J_DATABASES'字典的其餘部分嗎? –