use django urlresolver (bug 999197)