Fix test urls handling
Fix django configuration for sphinx build