在Netlify上部署Django网站

发布于 2025-01-27 01:55:21 字数 224 浏览 2 评论 0原文

我正在尝试上传我使用Django完成的全栈网站,并在Netlify上做出反应。 我已经尝试了各种方法并搜索了不同的教程,但是不幸的是,我发现它们没有用...

许多人建议使用仙人掌启动自己的python的应用程序,但我认为它不能与Django一起使用,有人知道吗如何做或给我一些建议?谢谢

注意:NetLify仅适用于“静态”网站,那么我该如何使我的django应用程序“ static”?

I'm trying to upload my full-stack website, done with Django and React on Netlify.
I have tried various ways and searched for different tutorials, but unfortunately I did not find them useful ...

Many recommend using cactus to launch their own applications consisting of python, but I don't think it can work with Django, does anyone know how to do it or give me some advice? Thanks

note: netlify is only for "static" websites, so how can I make my Django application "static"?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

屋顶上的小猫咪 2025-02-03 01:55:22

Netlify并不是Django天堂中真正的比赛,我认为您应该给您 heroku a Go,它支持开箱即用的Django。

如果您确实想使用NetFlify并准备辞职Django的后端功能(内置数据库,管理面板等在进行静态导出后将无法使用),仙人掌确实可以与Django一起使用。您也可以尝试 django-distill

Netlify is not really the match made in heaven for Django, I think you should give Heroku a go, which supports Django out-of-the-box.

If you do want to use Netflify and are ready to resign from the Django's backend features (built-in database, admin panel etc are not going to work after you make a static export), Cactus does work with Django. You could also try django-distill.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文