question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jinja2.exceptions.TemplateNotFound: hr/doctype/job_opening/templates/job_opening_row.html

See original GitHub issue

Description of the issue

I have built frappe docker in production mode and i have also installed hrms. I can go to localhost/jobs image

But when i added new job_opening, i got error code 500 as the below image

Context information (for bug reports)

image

Steps to reproduce the issue

  1. Add Job Opening
  2. Go to localhost/jobs
  3. Error

Observed result

image

Expected result

List of jobs

Stacktrace / full error message if available

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/list_page.py", line 12, in render
    return super().render()
  File "apps/frappe/frappe/website/page_renderers/template_page.py", line 78, in render
    html = self.get_html()
  File "apps/frappe/frappe/website/utils.py", line 510, in cache_html_decorator
    html = func(*args, **kwargs)
  File "apps/frappe/frappe/website/page_renderers/template_page.py", line 89, in get_html
    self.update_context()
  File "apps/frappe/frappe/website/page_renderers/template_page.py", line 157, in update_context
    data = self.run_pymodule_method("get_context")
  File "apps/frappe/frappe/website/page_renderers/template_page.py", line 219, in run_pymodule_method
    return method(self.context)
  File "apps/frappe/frappe/www/list.py", line 25, in get_context
    context.update(get(**frappe.local.form_dict))
  File "apps/frappe/frappe/www/list.py", line 63, in get
    rendered_row = frappe.render_template(row_template, new_context, is_path=True)
  File "apps/frappe/frappe/utils/jinja.py", line 80, in render_template
    return get_jenv().get_template(template).render(context)
  File "env/lib/python3.10/site-packages/jinja2/environment.py", line 1010, in get_template
    return self._load_template(name, globals)
  File "env/lib/python3.10/site-packages/jinja2/environment.py", line 969, in _load_template
    template = self.loader.load(self, name, self.make_globals(globals))
  File "env/lib/python3.10/site-packages/jinja2/loaders.py", line 575, in load
    raise TemplateNotFound(name)
jinja2.exceptions.TemplateNotFound: hr/doctype/job_opening/templates/job_opening_row.html

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
fecoderchinhcommented, Oct 1, 2022

https://user-images.githubusercontent.com/13318452/193386735-762bda65-4ee4-45a1-9079-788d8de793fd.mp4

Here is the problem, but now it was gone after i changed docker memory. Maybe something went wrong when we run the setup with slow bandwidth or low memory.

0reactions
revantcommented, Oct 6, 2022

Please create new issue it persists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jinja2.exceptions.TemplateNotFound error [duplicate]
I am absolutely sure the login.html is there( static/themes/default/404.html ).Why can this occur? python ...
Read more >
Solutions of “jinja2.exceptions.TemplateNotFound: index.html”
The error message was due to the lack of a “index.html” file in the “Template” directory. To resolve the issue, simply create a...
Read more >
jinja2.exceptions.TemplateNotFound: index.html #9 - GitHub
Hi I cloned your code and while trying to use the example app I am getting this error raise TemplateNotFound(template) jinja2.exceptions.
Read more >
jinja2.exceptions.TemplateNotFound: home.html : r/learnpython
Hello guys so i made a folder named template where my home.html is and my about.html, should i make a template file in...
Read more >
jinja2.exceptions.TemplateNotFound: home.html : Forums
I am not having an issue where the web app can not find the ''home.html' file even though it is just in my...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found