Essex
Essex

Reputation: 6138

Create a Django patch which update several instances

I'm asking a question about my Django application updates. I'm working on my Django Development server and I would like to know How I could create a patch which will update my different Django Project installed on different servers.

For example :

In my Dev' server, I add a new Query in my script. Then I would like to add this new Query to my all virtual instances by updating my script and not just copy/past modifications. It could work for one query, but if I have 200 rows, copy/paste will be too long. I launch a patch which will make all updates without manually copy/paste rows.

How it's possible to do that ?

Thank you so much

Upvotes: 1

Views: 66

Answers (1)

John Moutafis
John Moutafis

Reputation: 23134

You should probably consider migrating your project to a version control system.

Then every time you are changing something to your local copy of the code and push the changes on the repository, you can fetch/rebase/pull your changes wherever you want (be it your server or another computer of yours), and your patches will be applied without copy/pasting!

Some version control systems to consider:

  • Git Lab allowing the creation of free private repositories
  • Github the "old reliable", but no free private repositories
  • Bit Bucket (don't use it myself but it is widely used!)

Good luck :)

Upvotes: 1

Related Questions