Question

How to update my Django website

I published my website using DigitalOcean while following this tutorial: https://www.youtube.com/watch?v=Sa_kQheCnds&list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p&index=13 It works very well. However, I don’t know how to update my website. When I look up how to update it, everyone says to “pull using git”, but I don’t understand how to do it. I tried to clone the website to my computer by typing: “git clone example@IPaddress” in my command line but it doesn’t seem to work. Any ideas on how I can solve my problem?

Subscribe
Share

Submit an 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.

Hello,

Is your project already pushed to GitHub? If so you could clone the project to your local PC by running the following command:

git clone https://github.com/your_github_username/your_repository_name.git

Then you could make the changes to your project locally and once you are ready you can commit and push the changes to GitHub again:

git add .
git commit -m "Your Commit Message"
git push origin main

For more information on how to get started with Git and GitHub I could suggest taking a look at this free eBook here:

Hope that this helps. Regards, Bobby