My Django portfolio is exceeding 5 GB of HTTP bandwidth on a free hosting plan. Are there other free options, or a way to reduce the usage without moving the site?
Where can I host a Django site for free if it uses over 5 GB of bandwidth?
Answers
Check which files are using the bandwidth before migrating. Large portfolio images and other static files are worth looking at first. Resize images to the dimensions you actually display and try WebP compression.
You can also put Cloudflare's free plan in front of the site and configure caching for static assets. WhiteNoise is an option for serving static files from Django. Cached requests may avoid hitting your host, though the savings depend on cache settings and traffic.
Reply to this answer
PythonAnywhere has a free tier that can run a small Django app. Oracle Cloud also has an Always Free option worth checking. Look at the current bandwidth and resource limits for each before committing, since a free plan isn't necessarily suitable for a heavier site.
Reply to this answer
DjangoCloud may be worth a look if the project qualifies for its student or open source offering. Cloud provider signup credits are another possibility, but credits aren't the same as permanent free hosting. Check the eligibility rules, expiry date and what happens when they run out.
Reply to this answer
If free turns out to be too restrictive, a cheap VPS or shared hosting could be an alternative. A VPS gives you more control, but you also have to handle server administration and security. Check the actual traffic allowance and costs rather than assuming they're unlimited.
Reply to this answer
Add your answer
Answers are reviewed before publication.
_h52~zunviko.8:
Check the host's bandwidth figures after making changes. A cache won't necessarily catch every request, and Django responses aren't the same thing as static assets.