Question

How to configure droplet to use my existing Django project ?

Posted May 4, 2021 360 views
DjangoDigitalOcean Droplets

I have created a droplet. This droplet is all set up with Python, Django, and Postgres. Now I want this droplet to use my existing django project instead of dummy django project that is live on my droplet. How can I do this ?

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.

×
Submit an Answer
1 answer

Hi there,

What I could suggest is to create a private GitHub repository and push your existing project there.

Then on your Droplet, you could use the git clone command and clone your project from GitHub to the Droplet and change the dummy files with your actual project.

After that you could still make the changes to your local project and then push them to GitHub and pull them to your Droplet.

Let me know how it goes!

Alternatively you could use the DigitalOcean App platform as it would automate the whole process for you:

https://www.digitalocean.com/community/tutorials/how-to-deploy-django-to-app-platform

Regards,
Bobby

by Mason Egger
Django is a powerful web framework that allows you to deploy your Python applications or websites. Django includes many features such as authentication, a custom database ORM, and an extensible plugin architecture. Django simplifies the complexities of web development, allowing you to focus on writing code. In this tutorial, you'll configure a Django project and deploy it to DigitalOcean's App Platform.