Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我看来,我执行Site.objects.get_current().domain但结果是空字符串。那么,我怎样才能让域名组成正确的 url?
Site.objects.get_current().domain
托管是dreamhost。
问题是它正在执行旧的 webapp 实例(没有使用站点模块)所以我已经用 pkill python 命令解决了。