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?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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