catch django dependent code