Both will integrate easily with Postgres, and for flask, take a look at the peewee ORM.
Both will integrate easily with Postgres, and for flask, take a look at the peewee ORM.
The upside is that aiohttp's built in server can be put up in production with a lot more confidence than Django's built-in server, meaning one less layer to configure
You can use a digital ocean or light sail instance to host Dokku for way cheaper than Heroku and you have more control of the machine. Downside is Dokku is made for one server, so you can only really scale to like 64 cores before you need something else.
Most apps will never need more than one server realistically, but you have to determine that for yourself!
I use it for a Flask app. FWIW, I believe digital ocean has tutorials and an image to use to get Dokku off the ground fast!
Most cost efficient would be to Spin up a cheap droplet in digital ocean, install docker-compose with a Postgres service and python image. In the python image, just boot up a Django server on port 80. If you need https, youll need to add something in front of Django, like nginx to handle ssl termination.
App engine could also be a very quick and cheap way - you get ssl, and domain for free, but you do need to buy into their way of doing things, which has a bit of a learning curve .