the scripts directory is in the same emplacement as hook.py?
yes i tried also app_name/module_name/script.py, an app_name/my_dir_name/script.py
*note: usually people write hooks methods in custom_app.events.py directly. I don’t think it’s part of the issue, I’m just saying it might be a good practice.
Thanks for recommendation. Yes i know that, but when i have lot of hooks i want have it splitted to more files.
But i tried this now: when i add all hooks to one file for example events.py, and this file is placed inside same directory as hooks.py, it is working, bow when i put it inside another folder then this hook is not working.
For now my fix is do it in this way. But i want solve this in future, because it is very risky whnen dev enviroment working different than production.