How to apply django patches

I want to apply a patch to this error ( http://code.djangoproject.com/ticket/13095 ), but I have never done this before, and I have no idea where to start. Can someone point me to a tutorial?

+5
source share
2 answers

On Linux / UNIX, you can use the command patch.

It works as follows:

cd /usr/lib.../site-packages/django/
patch --dry-run -p1 < ~/downloads/somefix.patch

The patch command searches for a file to find the files it needs to update. -p1tells the patch to ignore the first level of the folder mentioned in the patch file. Often this is the name of the project itself. The parameter --dry-runprevents actual execution, so you can experiment with it.

, --dry-run, .


Windows (, WinMerge/TortoiseMerge) " ", .

+9

All Articles