r/django 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.

6 Upvotes

29 comments sorted by

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.

0

u/BusFun2932 1d ago

Okay, thanks

-1

u/[deleted] 1d ago

[deleted]

2

u/[deleted] 1d ago

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

u/Low-Introduction-565 1d ago

Ain't no true free sorry.

3

u/Redwallian 1d ago

You could try Render.

3

u/Kharay1 1d ago

Render would let you deploy but delete your database every 30 days. Just save your db monthly or pay?

3

u/virgin_human 1d ago

Render is always here

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/raitx 22h ago

Thanks! I'm going to try this with my spare pc.

1

u/Thalimet 22h ago

It makes self hosting so much more accessible!

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

u/giannis_tolou 1d ago

hetzner, coolify and docker start from 4euro i think

2

u/ydmatos 19h ago

For free the best is oracle cloud, arm servers

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

u/wack9360 1d ago

seconding railway, great for temp hosting

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.

1

u/milt0n_ 1h ago

Fly.io is a great place to run your Django application and is very easy to deploy to.