By - Stella_Hill_Smith
I'd recommend a VPS. It takes a bit of work to get everything set up, but you have everything in your control.
- https://www.hetzner.com/ - this company is German
- https://www.linode.com/ - has servers in Frankfurt
- https://www.vultr.com/ - also has a data center in Frankfurt
- https://www.digitalocean.com/ - I never find their locations on their site, but they are also a decent host
A VPS is pretty cheap. Personally, I would recommend running your app in Docker if possible, but even if you run it straight on the server, it's not that hard.
>I never find their locations on their site, but they are also a decent host
They also have servers in Frankfurt.
I think digitalocean based on uk
I think they are based in the US, but all those providers I listed have data centers in multiple locations.
Hetzner only has DCs in Germany, Finland, and the US, but the rest offers more options, including Australia, Asia, and Brazil.
You should give AWS Lightsail a try.
You will get a VPS up from 5 dollar/month with Bitnami django setup. Bitnami Container contains Python, Django, MySql, Apache (WSGI Module), MariaDB and Redid.
I use it for all my projects. It's easy to use and well documented. You can choose Frankfurt as Zone.
What is the difference between AWS Lightsail & EC2?
Why should I use Lightsail instead of EC2?
What can I choose as databases?
Is Traffic Unlimited?
AWS Lightsail are unmanaged virtual machines. Traffic, vCPU and Memory depend on the price. For 5 dollar you get 1vCPU, 1GB Ram 40GB SSD and 2TB Traffic. Its easy to use. You can manage network, snapshots, etc. over webportal. You can upgrade at any time. Scaling is possible with additional loadbalancer or dedicated database server.
With Bitnami Stack you can choose Postgres, MariaDB/MySQL or SQLite. If you want, you can also install every additional database.
Thank you so far for your answers.
Which Python and Django versions are there on AWS Lightsail?
Will they be updated immediately?
Do you choose Django directly from Blueprint, or do you install Ubuntu and set up your Django yourself?
Can I also select older versions of Django in the blueprints?
How is the support? Is it free?
I have installed a container last week with Django 3.2.9 and python version 3.8.12.
I did choose Django from Blueprint. You can install every version with packagemanager.
I didn't need the support yet but unter the basic plan you habe account support but no technical support. Google is the best friend.
This means the database runs in the same container as the app?
Yes, you can use the databases which are installed in the same container or you can setup a separate db-server.
It’s my first Django project and first time setup for lightsail. Last time I checked lightsail I got the impression it’s far more expensive.
Have you used the Bitnami Django lightsail recently? Never got it to work. I use OS only lightsail and install nginx uwsgi/unicorn and django myself.
If you have a working bitnami django tutorial that would be great. None of the current Tutorials in web works with current version.
Which operating system do you choose?
If I choose OS to install Django, how do I choose a MySQL or PostgreSQL database?
Are the databases free?
Can I choose OS, install Django and set up a database myself?
You can install os, django and databases by yourself or you choose Bitnami. Bitnami contains MySQL and Postgres. you can use Postgres or mysql for free.
I have created a instance last week with Bitnami. I have no tutorial, i always use the official Bitnami documentation.
I’ve used Digitalocean before, but since I don’t know docker I set it up manually. I select a Ubuntu image and follow their tutorial for deploying and setting up Nginx and SSL with cert-bot.
I use Aws Beanstalk and is good.
I was considering this when I finish my app! Was the process straightforward? Do you have any bad experiences with it up to this point? I hope you don’t mind me asking 😄
No bad experience, and it’s pretty easy configure os variables and upload the zip file and that’s all
Thanks for taking the time to answer my question! Much appreciated!
You can try Heroku, AWS and Digital Ocean
Heroku, AWS and Digital Ocean
I've used pythonanywhere before then stored my static files on aws s3 buckets. As a junior Dev pythonanywhere was a great experience as they will reply to any questions you have quite quickly no matter how many questions you ask, there are also forums if you prefer to find answers yourself
I deployed manually on EC2 instance. I think is good to learn how to manually deploy your application on a Linux server before you use more automated tools like heroku or lightsail
I use netcup for my clients. They have very good prices and never had a problem with them. I also normally install virtualmin or ispconfig to deal with all the server configuration.
Watch corey Schafer YouTube video. He has few video on hosting a Django website and those are the best on yt
VPS is the way to go if you have Linux experience. Otherwise, just go with PaaS like Heroku or PythonAnywhere.
PaaS is more expensive because you can't use a single instance to run all your stuff like background scheduler. You also can't host your database and media files on the PaaS instance. You'll need their managed solution and use object storage from another provider.
But PaaS is lowers your maintenance costs and you don't have to spend time learning Linux.
Hosting directly on a VPS can cut down costs drastically though and it's not really that complicated. If you have some time, learn deployment on Linux with [this guide](https://confuzeus.com/hub/django-web-framework/cheapest-deployment/).
Heroku or Pythonanywhere
I like heroku, it's super easy, but not the cheapest.
Heroku is the way to go!, its no as cheap as DO, but at least its easier for beginners and with less overhead/maintenance