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) " ", .