Report this

What is the reason for this report?

How to configure droplet to use my existing Django project ?

Posted on May 4, 2021

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 ?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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

Heya,

The best solution I think is to have your code in github as a repository . This will ensure that you can track changes you’ve done and even revert back to a previous state if something goes wrong. Not to mention that you would be able to use that project (if needed) on other workplaces without going through the hassle to manually migrate it.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.