django 1.4 compatibility by 'backporting' get_path_info

Hej, i'm not sure you even want to support Django 1.4, but if you do, get_path_info needs to be 'backported' (copy&pasted...) :)