when i try to include an html file using jinja template it got this error:
Traceback (most recent call last):
File “apps/frappe/frappe/utils/jinja.py”, line 94, in render_template
return get_jenv().from_string(template).render(context)
File “env/lib/python3.10/site-packages/jinja2/environment.py”, line 1301, in render
self.environment.handle_exception()
File “env/lib/python3.10/site-packages/jinja2/environment.py”, line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File “”, line 9, in top-level template code
jinja2.exceptions.TemplateNotFound: head_section.html
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “apps/frappe/frappe/website/serve.py”, line 18, in get_response
response = renderer_instance.render()
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 84, in render
html = self.get_html()
File “apps/frappe/frappe/website/utils.py”, line 517, in cache_html_decorator
html = func(*args, **kwargs)
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 101, in get_html
html = self.render_template()
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 236, in render_template
html = frappe.render_template(self.source, self.context, safe_render=safe_render)
File “apps/frappe/frappe/utils/jinja.py”, line 96, in render_template
throw(
File “apps/frappe/frappe/init.py”, line 538, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 506, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 452, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError:
{% block title %}ERPEaz - The next step in SMB{% endblock %} {% include 'head_section.html' %} {% include 'layouts/navbar.html' %} {% block content %}{% endblock %} {% block bodyBottom %}{% endblock %} {% block script %}{% endblock %} {% include 'layouts/footer.html' %} {% include 'layouts/bottom-section.html' %}
Traceback (most recent call last): File "apps/frappe/frappe/utils/jinja.py", line 94, in render_template return get_jenv().from_string(template).render(context) File "env/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render self.environment.handle_exception() File "env/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception raise rewrite_traceback_stack(source=source) File "", line 9, in top-level template code jinja2.exceptions.TemplateNotFound: head_section.html