use django urlresolver (bug 999197)
Merge pull request #2070 from andymckay/999197

use django urlresolver (bug 999197)