擅长:python、mysql、java
<blockquote>
<p><strong>Yes!</strong> <strong><em>all of those information are necessary</em></strong> , there is no way you could connect to the database unless those values are
specified.</p>
</blockquote>
<p><strong>是的!</strong><em><code>user</code></em>和<em><code>password</code></em>是PostgreSQL数据库的实际凭据。</p>
<p>关于部署,您应该设置生产数据库所在的正确IP/主机。可能是example.com或xxx.xxx.xxx.xxx</p>
<p>我认为您是<strong><em><code>concerned about security</code></em></strong>(在源代码中显示您的数据库凭据)如果是这种情况,您可以将凭据放在安全配置文件(如<strong>.env</strong>)中,并使用<strong><a href="https://github.com/theskumar/python-dotenv" rel="noreferrer">this</a></strong>库处理您的配置文件。</p>