In this comprehensive tutorial, we will guide you through the process of deploying a Django application on Ubuntu 18.04, 20.04, or 22.04. For a better understanding, we have divided the process into five distinct parts.
- Use the following link to create space: https://cloud.digitalocean.com/spaces/new
- Choose nearest region in the Region section.
- Check "Enable CDN" option to get fastest delivery of web assests.
- Now input a unique name relavent to your project in the "Bucket Name" section.
- Now create the space. This will take a couple of seconds to get the space created.
- Copy the Origin endpoint (in top right corner of the Space details page) and note it down somewhere else.
Change from current user to root user
$ sudo -s
Now change to postgres
user
$ su - postgres
Create a simple backup. (Optional, just for test)