Can not display contents in LMS

Recently i upgraded tutor to version 17.0.6. The contents in lms do not show up. I am getting the following error:

tutor_local-lms-1  |   File "/openedx/edx-platform/common/djangoapps/util/views.py", line 95, in wrapper
tutor_local-lms-1  |     return func(request, *args, **kwargs)
tutor_local-lms-1  |   File "/openedx/edx-platform/./lms/djangoapps/static_template_view/views.py", line 125, in render_500
tutor_local-lms-1  |     return HttpResponseServerError(render_to_string('static_templates/server-error.html', {}, request=request))
tutor_local-lms-1  |   File "/openedx/edx-platform/common/djangoapps/edxmako/shortcuts.py", line 178, in render_to_string
tutor_local-lms-1  |     return template.render(dictionary, request)
tutor_local-lms-1  |   File "/openedx/edx-platform/common/djangoapps/edxmako/template.py", line 82, in render
tutor_local-lms-1  |     return self.mako_template.render_unicode(**context_dictionary)
tutor_local-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/mako/template.py", line 444, in render_unicode
tutor_local-lms-1  |     return runtime._render(
tutor_local-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/mako/runtime.py", line 874, in _render
tutor_local-lms-1  |     _render_context(
tutor_local-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/mako/runtime.py", line 915, in _render_context
tutor_local-lms-1  |     (inherit, lclcontext) = _populate_self_namespace(context, tmpl)
tutor_local-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/mako/runtime.py", line 854, in _populate_self_namespace
tutor_local-lms-1  |     ret = template.module._mako_inherit(template, context)
tutor_local-lms-1  |   File "/tmp/mako_lms/1ff981c2157d500713c1ce6bf7fdbce2/static_templates/server-error.html.py", line 33, in _mako_inherit
tutor_local-lms-1  |     return runtime._inherit_from(context, '../main.html', _template_uri)
tutor_local-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/mako/runtime.py", line 803, in _inherit_from
tutor_local-lms-1  |     template = _lookup_template(context, uri, calling_uri)
tutor_local-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/mako/runtime.py", line 837, in _lookup_template
tutor_local-lms-1  |     return lookup.get_template(uri)
tutor_local-lms-1  |   File "/openedx/edx-platform/common/djangoapps/edxmako/paths.py", line 99, in get_template
tutor_local-lms-1  |     template = super().get_template(get_template_path_with_theme(uri))
tutor_local-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/mako/lookup.py", line 252, in get_template
tutor_local-lms-1  |     return self._load(srcfile, uri)
tutor_local-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/mako/lookup.py", line 313, in _load
tutor_local-lms-1  |     self._collection[uri] = template = Template(
tutor_local-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/mako/template.py", line 317, in __init__
tutor_local-lms-1  |     module = self._compile_from_file(path, filename)
tutor_local-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/mako/template.py", line 381, in _compile_from_file
tutor_local-lms-1  |     module = compat.load_module(self.module_id, path)
tutor_local-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/mako/compat.py", line 53, in load_module
tutor_local-lms-1  |     spec.loader.exec_module(module)
tutor_local-lms-1  |   File "<frozen importlib._bootstrap_external>", line 843, in exec_module
tutor_local-lms-1  |   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
tutor_local-lms-1  |   File "/tmp/mako_lms/1ff981c2157d500713c1ce6bf7fdbce2/indigo/lms/templates/main.html.py", line 22, in <module>
tutor_local-lms-1  |     from django.utils.http import urlquote_plus
tutor_local-lms-1  | ImportError: cannot import name 'urlquote_plus' from 'django.utils.http' (/openedx/venv/lib/python3.8/site-packages/django/utils/http.py)

Thank you in advance for any help !!

Hi @hkhanal01!
This might be related to the Django upgrade (see this issue). If you are customizing HTML pages in a theme, you might need to update them. Check the changes in this PR and update your theme accordingly.

@Andres.Aulasneo Thank you for quick response. I will take a look