How to perform the crud operation using html page and doctype

I am trying to insert and view (crud operation) in the doctype data in html page.

First of all,
I am creating the html page inside the templates folder. But the problem is See on website not visible in my doctype only View website is occur But i am clicking the view website its shows the inside page not my html page. So i am not viewing the page. for example (sitename/html file name) is not working.

Secondly i am trying to paste the html file in www folder so its working fine (sitename/html file name) the page is viewing perfectly. Now i am using py file inside the www. Here my doubt how to fetch the doctype fields value in the html page.

I need the crud operation any one help me.

I am a django dev (10years+) who recently discovered frappe. I was very surprised that there was no documentation on how to do a simple CRUD with html files and controllers in the www folder only (without needing DESK)

So here is a working example in my github account:

You can have a look at it and see how it is done. I am now learning the framework hence my approach is pretty basic. I hope someone will make it better with more advanced techniques and better security considerations.

I would rather try to develop anything only after exhausting existing functions on ERPNext latest or development branch.

ok i will give you hind first of all the html and py file name must be same


by this method you can fetch the fields you want
now to show in the html u can use this syntax
image
you can only use {{category. name}} the syntax _() is used for translations so just simply use {{}} this synatax