如何通过 django 中的管理面板将 link 上传到 href 函数?
How can i upload a link to a href function through the admin panel in django?
我制作了一个模型文件,通过管理面板发布到索引模板。我刚刚做到了 this way so you can access it by clicking the download button. But after clicking download it shows this。我该如何解决这个问题?
您的 href 属性现在被解释为相对路径。如果你想让它重定向到外部站点,请在它的开头添加“https://”,就像这样:
href="https://{{ i.app_download_link }}"
我制作了一个模型文件,通过管理面板发布到索引模板。我刚刚做到了 this way so you can access it by clicking the download button. But after clicking download it shows this。我该如何解决这个问题?
您的 href 属性现在被解释为相对路径。如果你想让它重定向到外部站点,请在它的开头添加“https://”,就像这样:
href="https://{{ i.app_download_link }}"