My idea is to deploy a django app on an Apache Server Droplet, which can have my users access the app with each user with their own unique subdomain example: user1.example.com, user2.example.com and so on, and each with their own unique database in one DigitalOcean Database Cluster. So that when I upload the source code of the app, all users will get the same updated version with their data in the database intact. Thanks.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hi there,
What I could suggest is using Apache Virtual Hosts so that you could host multiple sites on the same server. You can follow the steps on how to do that here:
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04
Regarding the databases, you will be able to create separate databases for your managed cluster directly via your DigitalOcean Control panel and then change the database connection strings accordingly for each application.
Hope that this helps. Regards, Bobby