擅长:python、mysql、java
<p>没关系。我从这个<a href="https://eulexistdb.readthedocs.org/en/0.17/existdb.html" rel="nofollow">site</a>中几乎没有研究就找到了答案。我所做的是创造了一个<strong>本地设置.py</strong>具有以下配置的文件。在</p>
<pre><code>EXISTDB_SERVER_USER = 'user'
EXISTDB_SERVER_PASSWORD = 'admin'
EXISTDB_SERVER_URL = "http://localhost:8899/exist"
EXISTDB_ROOT_COLLECTION = "/db"
</code></pre>
<p>在我的主文件<strong>我的文件.py</strong>我使用了:</p>
^{pr2}$
<p>在TryExist类中,我在\uuInit\uuux()中改为:</p>
<pre><code>def __init__(self):
self.db = db.ExistDB(server_url=EXISTDB_SERVER_URL)
</code></pre>
<p>注:仅使用<strong>操作系统环境['DJANGO_SETTINGS_MODULE']='localsettings'</strong>带来<strong>django.core.exceptions。未正确配置:密钥设置不能为空。</strong>。在</p>