More robust django resolution