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 (http://www.example.com)? And PORT, is it necessary?
在数据库中配置的是USER和PASSWORD,然后在文件中输入。
HOST是服务器运行的IP地址或主机名。在生产中,您必须与您的主机提供商核实正确的详细信息;这是很少见的,它是您的域名。
如果PORT与默认端口(5432)不同,则只需调整它。如果不一样,主人会告诉你的。
最后,请记住http://www.example.com不是域名,这是完整的URL。域名是example.com,主机是www,完全限定的主机名是www.example.com。