cleaned up urls for django1.8

this is compatible with django1.4+ and fixes the warnings on django master.