我如何在 netlify 上部署 Django 网站?

时间:2021-06-28 16:13:25

标签: python django hosting netlify

我正在尝试在 netlify 上部署我的 Django 网站,我指的是这篇文章:A Step-by-Step Guide: Cactus on Netlify

但是这也不起作用,在这方面,仙人掌服务器工作正常,我已经检查过它在 //Download function starts from here $varFilePath = SOURCE_ROOT . $varDir . $varFile; header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-Type: application/force-download"); header("Content-Disposition: attachment; filename=" . $varFile); header("Content-Transfer-Encoding: binary"); header("Content-Length: " . filesize($varFilePath)); header("Content-Description: File Transfer"); @readfile($varFilePath); exit(); 上正常运行,那么,是否还有另一种详细的方式 localhost:8000 或者我可以使用自定义域(不包括 digitalocean 和 aws)免费部署我的 django 网站的任何其他平台?

0 个答案:

没有答案