action_hook for django deployment