Hook.py file missing in site

Hi all,

I’m newbie to ERPNext, I’m working on data migration to ERPNext. I think I can use hooks to do that call data_import method to import bulk data files.
I’m using V14 and the site inside "frappe-bench/sites/myproject-erpnext.com doesn’t have the hook.py file.
can I create this file manually and drop to this location?
I already created one and drop the location. but I’m not sure how this will pick by frappe framework.
Also, I added test string to check that it can access from bench console. But it returns blank.

Thanks in advanced!


You will found hooks.py file at each app folder.
This file is not related to site.

Hope this helps.

Thank you,

You mean I have to create a separate app inside apps folder?