擅长:python、mysql、java
<blockquote>
<p>Specifically USER, PASSWORD, HOST, PORT? Is USER and PASSWORD values
that we can create in django settings.py? Or is this the actual
USER/PASSWORD of the database? Also, HOST is currently 127.0.0.1 for
localhost, but when deploying to production, do I change this to the
domain name (<a href="http://www.example.com" rel="nofollow">http://www.example.com</a>)? And PORT, is it necessary?</p>
</blockquote>
<p>在数据库中配置的是<code>USER</code>和<code>PASSWORD</code>,然后在文件中输入。</p>
<p><code>HOST</code>是服务器运行的IP地址或主机名。在生产中,您必须与您的主机提供商核实正确的详细信息;这是很少见的,它是您的域名。</p>
<p>如果<code>PORT</code>与默认端口(<code>5432</code>)不同,则只需调整它。如果不一样,主人会告诉你的。</p>
<p>最后,请记住<code>http://www.example.com</code>不是域名,这是完整的URL。域名是<code>example.com</code>,主机是<code>www</code>,完全限定的<strong>主机名是<code>www.example.com</code>。</p>