Closed franticjeremi closed 2 years ago
Hello I use Jinja2 with Django and I get this error when I request any page:
File "/srv/v8-python3/lib/python3.6/site-packages/django/core/handlers/base.py" in get_response 174. response = self.process_exception_by_middleware(e, request) File "/srv/v8-python3/lib/python3.6/site-packages/django/core/handlers/base.py" in get_response 172. response = response.render() File "/srv/v8-python3/lib/python3.6/site-packages/django/template/response.py" in render 160. self.content = self.rendered_content File "/srv/v8-python3/lib/python3.6/site-packages/sentry_sdk/integrations/django/templates.py" in rendered_content 73. return real_rendered_content.fget(self) File "/srv/v8-python3/lib/python3.6/site-packages/django/template/response.py" in rendered_content 135. template = self._resolve_template(self.template_name) File "/srv/v8-python3/lib/python3.6/site-packages/django/template/response.py" in _resolve_template 90. new_template = self.resolve_template(template) File "/srv/v8-python3/lib/python3.6/site-packages/django/template/response.py" in resolve_template 80. return select_template(template, using=self.using) File "/srv/v8-python3/lib/python3.6/site-packages/django/template/loader.py" in select_template 69. return engine.get_template(template_name) File "/srv/v8-python3/lib/python3.6/site-packages/django/template/backends/jinja2.py" in get_template 42. return Template(self.env.get_template(template_name)) File "/srv/v8-python3/lib/python3.6/site-packages/jinja2/environment.py" in get_template 883. return self._load_template(name, self.make_globals(globals)) File "/srv/v8-python3/lib/python3.6/site-packages/jinja2/environment.py" in _load_template 857. template = self.loader.load(self, name, globals) File "/srv/v8-python3/lib/python3.6/site-packages/jinja2/loaders.py" in load 426. return loader.load(environment, name, globals) File "/srv/v8-python3/lib/python3.6/site-packages/jinja2/loaders.py" in load 115. source, filename, uptodate = self.get_source(environment, name) File "/srv/v8-python3/lib/python3.6/site-packages/vist_core/utils/django_jinja2.py" in get_source 71. return super(ExtensionLoader, self).get_source(environment, template) File "/srv/v8-python3/lib/python3.6/site-packages/jinja2/loaders.py" in get_source 248. if not self.provider.has_resource(p): File "/srv/v8-python3/lib/python3.6/site-packages/pkg_resources/__init__.py" in has_resource 1402. return self._has(self._fn(self.module_path, resource_name)) File "/srv/v8-python3/lib/python3.6/site-packages/pkg_resources/__init__.py" in _has 1455. "Can't perform this operation for unregistered loader type" Exception Type: NotImplementedError at / Exception Value: Can't perform this operation for unregistered loader type
By the way, Django template works.
python==3.6 pyconcrete==0.12.1 Jinja2==2.11.2
I think it should be Django setting issue, please make sure the jinja loader have proper configuration for template engine
Hello I use Jinja2 with Django and I get this error when I request any page:
By the way, Django template works.
Info
python==3.6 pyconcrete==0.12.1 Jinja2==2.11.2