Closed MikeVL closed 2 years ago
Please, paste the complete stacktrace!
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__
return self.application(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 177, in __call__
response = self.get_response(request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 230, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 289, in handle_uncaught_exception
return debug.technical_500_response(request, *exc_info)
File "/usr/local/lib/python2.7/dist-packages/django_extensions/management/technical_response.py", line 6, in null_technical_500_response
six.reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 174, in get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 172, in get_response
response = response.render()
File "/usr/local/lib/python2.7/dist-packages/django/template/response.py", line 160, in render
self.content = self.rendered_content
File "/usr/local/lib/python2.7/dist-packages/django/template/response.py", line 135, in rendered_content
template = self._resolve_template(self.template_name)
File "/usr/local/lib/python2.7/dist-packages/django/template/response.py", line 90, in _resolve_template
new_template = self.resolve_template(template)
File "/usr/local/lib/python2.7/dist-packages/django/template/response.py", line 82, in resolve_template
return get_template(template, using=self.using)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py", line 26, in get_template
engines = _engine_list(using)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py", line 143, in _engine_list
return engines.all() if using is None else [engines[using]]
File "/usr/local/lib/python2.7/dist-packages/django/template/utils.py", line 110, in all
return [self[alias] for alias in self]
File "/usr/local/lib/python2.7/dist-packages/django/template/utils.py", line 101, in __getitem__
engine = engine_cls(params)
File "/usr/local/lib/python2.7/dist-packages/django_jinja/backend.py", line 188, in __init__
self.env = environment_cls(**options)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 333, in __init__
self.extensions = load_extensions(self, extensions)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 85, in load_extensions
extension = import_string(extension)
File "/usr/local/lib/python2.7/dist-packages/jinja2/utils.py", line 143, in import_string
return getattr(__import__(module, None, None, [obj]), obj)
TypeError: Item in ``from list'' not a string
Seems not related to django-jinja, the error is happens on jinja2, the extensions list is passed directly to jinja environment constructor. :(
Maybe a solution can be convert to the bytestring the list of extensions before pass it to the jinja2 on python2...
May be add notes about this in docs ?
closing this as we no longer support python2.
My config file with unicode strings raise error
TypeError: Item in ``from list'' not a string
But this config working fine:
Prioblem with unicode strings.