Hi all,
It seems that there is a change make to ERPnext 7 for Website Generator.
In the previous version, I was following this site (https://frappe.github.io/frappe/user/en/guides/portal-development/generators.html) to generate webpages.
However in the new version, I noticed that only route field is required in the doctype and despite following the same steps and format, I am able to have the show in website link. But upon clicking on the link, it shows the following error:
My chart2.html is placed within the custom module’s folder:
/www/chart2.html
/templates/generators/chart2.html
Please advice!
Thank you.
Traceback (most recent call last):
File “/home/frappe/benches/sunseap-dev/apps/frappe/frappe/website/render.py”, line 32, in render
data = render_page_by_language(path)
File “/home/frappe/benches/sunseap-dev/apps/frappe/frappe/website/render.py”, line 101, in render_page_by_language
return render_page(path)
File “/home/frappe/benches/sunseap-dev/apps/frappe/frappe/website/render.py”, line 117, in render_page
return build(path)
File “/home/frappe/benches/sunseap-dev/apps/frappe/frappe/website/render.py”, line 124, in build
return build_page(path)
File “/home/frappe/benches/sunseap-dev/apps/frappe/frappe/website/render.py”, line 137, in build_page
context = get_context(path)
File “/home/frappe/benches/sunseap-dev/apps/frappe/frappe/website/context.py”, line 19, in get_context
context = build_context(context)
File “/home/frappe/benches/sunseap-dev/apps/frappe/frappe/website/context.py”, line 62, in build_context
module = frappe.get_module(context.controller)
File “/home/frappe/benches/sunseap-dev/apps/frappe/frappe/init.py”, line 643, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named www.chart2