Modified templates to suit pinax templates and fixed the location search. Now handles the HTTPError(400) too.