标签: django python-3.x amazon-lightsail
我有一个在Amazon Lightail实例上运行的python / django网站。我已经将域名包括在allowed_hosts中。但是有时我会收到错误消息,我需要将我的静态IP包含到allowed_hosts中。该错误仅显示给某些用户,但我不知道真正的问题在哪里。我不想将我的静态IP包含到allowed_host中,因为这不是最佳实践。 有人知道这里的问题吗?