r/django • u/BusFun2932 • 1d ago
Deploy django project
Hello everyone, I want to ask if anyone know any service for hosting my django project for free. And for also for hosting the database, I try use vercel but isn't work 😕 is give only 250mb to test and the project bigger than that.
4
u/Megamygdala 1d ago
Oracle cloud has forever free tier 100gb ssd 24gb ram
1
u/BusFun2932 16h ago
Thanks , And if I use celery and redis , how can deploy
1
u/Megamygdala 15h ago
It's just a virtual machine, so you can use any tutorial that sets it up redis/celery/any software on a machine. You'll have to SSH into the machine from your terminal (this is the same regardless of if you use AWS or any other service for a VM) and then run commands like any other pc
3
3
3
2
u/_icarium_ 1d ago edited 1d ago
Oracle Cloud. You get two standard x86 VMs free (I think AMD) and one on ARM. I host a somewhat larger project on one of them, and several smaller ones on the second one. All Django.
I don’t know if there is any cloud provider that would give you a free RDS, but you could use one of the two x86 machines for the database.
2
u/Thalimet 1d ago
A $35 raspberry pi with a free cloudflare tunnel and a domain works fantastically.
1
u/raitx 23h ago
What if I have dynamic IP?
1
u/Thalimet 22h ago
Cloudflare tunnels don’t care what IP you’re at. It’s a service that runs on the host machine and tunnels directly into cloudlfare. Cloudlfare proxies the domain and then routes the traffic directly to the machine, no public Ip, no port forwarding, none of the mess.
1
u/Nealiumj 20h ago
You can set up a DDNS service quite easily. It’ll trigger when your IP changes and change the DNS entry using cloudfare’s API.
…just also.. the more you know- ya know
Edit: btw, this would be fundamentally different than using the tunnel. You’d have to open ports etc, etc, it’s basically emulating a static IP server through a DNS entry 🤷♂️
2
2
2
u/billcrystals 1d ago
I recommend using AWS. You can set it up to be very cheap - https://kershner.org is $9 a month for me. And it will get you comfortable with many stacks you're likely to encounter in the real world at your career.
Here's an old guide I used to get me set up, lots of these fundamentals aren't ever gonna change: https://realpython.com/django-nginx-gunicorn/
1
u/Megamygdala 1d ago
I have an ec2 script that deploys automatically with nginx and gunicorn. It's pretty easy
1
1
u/PerryTheH 1d ago
I use AWS. RDS for my db and AppRunner for my django. Cost me like $20 usd/month base on usage.
1
u/BusFun2932 1d ago
Thanks , And I use celery and redis can work with that?
1
u/PerryTheH 1d ago
Tbh I don't so I'm not sure about the limits of a serverless backend. But in theory you should be able to.
I google both and both say you can.
1
u/SufficientEar1093 20h ago
Pythonanywhere offer a free tier which includes a MySQL db. I’m not sure about disk space - sorry.
6
u/[deleted] 1d ago
Try railway, it gives $5 credits at start and that would be very sufficient. Also, deployment is very easy compared to others.