A good place to start is reading the contributing documentation:
https://docs.djangoproject.com/en/dev/internals/contributing/The next step is to find a ticket in the area you are interested in and then either:
1) review the existing patch if there is one,
2) improve an existing patch if it has comments for improvement but no one has responded to them, or
3) write a new patch if there isn't one.