logoalt Hacker News

agentifyshtoday at 10:33 AM6 repliesview on HN

if only i could run django on cloudflare workers

guess i could run it on a dedicated server

would be nice if we can get django and liveview working without a server


Replies

evilmonkey19today at 12:05 PM

I wish we could host Django apps with the tasks and everything on Cloudflare workers. Also it would be nice to have a DB like SQLite within Cloudflare.

show 2 replies
fulafeltoday at 3:00 PM

They just announced many improvements to Python workers earlier this month: https://blog.cloudflare.com/python-workers-advancements/

https://github.com/G4brym/django-cf has a template (among other things) to get started

Another option is the containers stuff mentioned in sibling comment but it's not so FaaS.

_boffin_today at 6:11 PM

We ran Django on AWS Lambas years ago. Wasn’t fun and caused headaches, but worked

sligtoday at 2:20 PM

Should be possible with this, no?

https://developers.cloudflare.com/containers/

isodevtoday at 12:44 PM

Bunny has very solid edge runtime if you manage to squeeze it into wasm or “magic containers” so it’s just a pod

https://bunny.net/cdn-lp

leobuskintoday at 10:58 AM

you can do it on wasmer's workers, their last wasm/python approach is pretty solid (compatibility, performance). it's sad to say, but after 4 years of "beta" Python support on CF workers - it's still ugly. I dunno who was responsible for such a neglect, but even with the last changes - total fiasco

show 1 reply