The documentation isn’t very clear on this at all…
I have a custom app called geotools that is installed along with ERPNext.
I want to create a Page for desk users. I created the page using the Page doctype and named it mapleads. I then created an index.html file at frappe-bench/apps/geotools/geotools/www/mapleads/index.html
As I understand it, since the name of the page and the name of the html directory match, the HTML content should be loaded from my custom app, however there is no HTML loaded.
I appreciate it @avc ,that makes sense. It looks like when you create a Page, Frappe put the page code in the module directory under modulename/page/mypage.
Is there a way to create the page Document with code in the custom app? For example, I need to package the map UI page with the app, and not rely on the end-user manually creating the Page document in ERPNext.