Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Server Error #877

Closed
mzch opened this issue Sep 24, 2020 · 4 comments
Closed

Internal Server Error #877

mzch opened this issue Sep 24, 2020 · 4 comments

Comments

@mzch
Copy link

mzch commented Sep 24, 2020

In admi panel I tired to remove a user, then Internal Server Error occurred.

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/db/models/fields/related_descriptors.py", line 164, in __get__
    rel_obj = self.field.get_cached_value(instance)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/db/models/fields/mixins.py", line 13, in get_cached_value
    return instance._state.fields_cache[cache_name]
KeyError: 'auth_user_ptr'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/contrib/admin/options.py", line 606, in wrapper
    return self.admin_site.admin_view(view)(*args, **kwargs)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/utils/decorators.py", line 142, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/contrib/admin/sites.py", line 223, in inner
    return view(request, *args, **kwargs)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/utils/decorators.py", line 45, in _wrapper
    return bound_method(*args, **kwargs)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/utils/decorators.py", line 142, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/contrib/admin/options.py", line 1711, in changelist_view
    response = self.response_action(request, queryset=cl.get_queryset(request))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/contrib/admin/options.py", line 1397, in response_action
    response = func(self, request, queryset)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/contrib/admin/actions.py", line 28, in delete_selected
    deletable_objects, model_count, perms_needed, protected = modeladmin.get_deleted_objects(queryset, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/contrib/admin/options.py", line 1833, in get_deleted_objects
    return get_deleted_objects(objs, request, self.admin_site)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/contrib/admin/utils.py", line 118, in get_deleted_objects
    collector.collect(objs)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/contrib/admin/utils.py", line 181, in collect
    return super().collect(objs, source_attr=source_attr, **kwargs)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/db/models/deletion.py", line 224, in collect
    field.remote_field.on_delete(self, field, sub_objs, self.using)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/db/models/deletion.py", line 16, in CASCADE
    source_attr=field.name, nullable=field.null)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/contrib/admin/utils.py", line 176, in collect
    self.add_edge(getattr(obj, related_name), obj)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/db/models/fields/related_descriptors.py", line 178, in __get__
    rel_obj = self.get_object(instance)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/db/models/fields/related_descriptors.py", line 293, in get_object
    kwargs = {field: getattr(instance, field) for field in fields}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/db/models/fields/related_descriptors.py", line 293, in <dictcomp>
    kwargs = {field: getattr(instance, field) for field in fields}
AttributeError: 'UserProfile' object has no attribute 'id'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 19, in top-level template code
    {% include "meta/fonts.html" %} {# may contain external files #}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/fonts.html", line 1, in top-level template code
    {% if settings.USE_LOCAL_FONTS %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 73, in __getattr__
    return self.get_value(key)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 80, in get_value
    return cls.__instance[key].value
  File "/srv/askbot/askbot-devel/src/django-livesettings3/livesettings/values.py", line 98, in __getitem__
    return self._dict[key]
KeyError: 'USE_LOCAL_FONTS'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/utils/deprecation.py", line 94, in __call__
    response = response or self.get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 19, in top-level template code
    {% include "meta/fonts.html" %} {# may contain external files #}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/fonts.html", line 1, in top-level template code
    {% if settings.USE_LOCAL_FONTS %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 73, in __getattr__
    return self.get_value(key)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 80, in get_value
    return cls.__instance[key].value
  File "/srv/askbot/askbot-devel/src/django-livesettings3/livesettings/values.py", line 98, in __getitem__
    return self._dict[key]
KeyError: 'USE_LOCAL_FONTS'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/middleware/view_log.py", line 21, in __call__
    return self.get_response(request) # i think this simply chains all middleware
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 19, in top-level template code
    {% include "meta/fonts.html" %} {# may contain external files #}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/fonts.html", line 1, in top-level template code
    {% if settings.USE_LOCAL_FONTS %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 73, in __getattr__
    return self.get_value(key)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 80, in get_value
    return cls.__instance[key].value
  File "/srv/askbot/askbot-devel/src/django-livesettings3/livesettings/values.py", line 98, in __getitem__
    return self._dict[key]
KeyError: 'USE_LOCAL_FONTS'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/middleware/cancel.py", line 10, in __call__
    return self.get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 19, in top-level template code
    {% include "meta/fonts.html" %} {# may contain external files #}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/fonts.html", line 1, in top-level template code
    {% if settings.USE_LOCAL_FONTS %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 73, in __getattr__
    return self.get_value(key)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 80, in get_value
    return cls.__instance[key].value
  File "/srv/askbot/askbot-devel/src/django-livesettings3/livesettings/values.py", line 98, in __getitem__
    return self._dict[key]
KeyError: 'USE_LOCAL_FONTS'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/middleware/forum_mode.py", line 42, in __call__
    response = self.get_response(request) # i think this simply chains all middleware
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 19, in top-level template code
    {% include "meta/fonts.html" %} {# may contain external files #}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/fonts.html", line 1, in top-level template code
    {% if settings.USE_LOCAL_FONTS %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 73, in __getattr__
    return self.get_value(key)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 80, in get_value
    return cls.__instance[key].value
  File "/srv/askbot/askbot-devel/src/django-livesettings3/livesettings/values.py", line 98, in __getitem__
    return self._dict[key]
KeyError: 'USE_LOCAL_FONTS'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/middleware/anon_user.py", line 57, in __call__
    response = self.get_response(request) # i think this simply chains all middleware
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 19, in top-level template code
    {% include "meta/fonts.html" %} {# may contain external files #}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/fonts.html", line 1, in top-level template code
    {% if settings.USE_LOCAL_FONTS %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 73, in __getattr__
    return self.get_value(key)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 80, in get_value
    return cls.__instance[key].value
  File "/srv/askbot/askbot-devel/src/django-livesettings3/livesettings/values.py", line 98, in __getitem__
    return self._dict[key]
KeyError: 'USE_LOCAL_FONTS'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/utils/deprecation.py", line 94, in __call__
    response = response or self.get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 19, in top-level template code
    {% include "meta/fonts.html" %} {# may contain external files #}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/fonts.html", line 1, in top-level template code
    {% if settings.USE_LOCAL_FONTS %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 73, in __getattr__
    return self.get_value(key)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 80, in get_value
    return cls.__instance[key].value
  File "/srv/askbot/askbot-devel/src/django-livesettings3/livesettings/values.py", line 98, in __getitem__
    return self._dict[key]
KeyError: 'USE_LOCAL_FONTS'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/utils/deprecation.py", line 94, in __call__
    response = response or self.get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 19, in top-level template code
    {% include "meta/fonts.html" %} {# may contain external files #}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/fonts.html", line 1, in top-level template code
    {% if settings.USE_LOCAL_FONTS %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 73, in __getattr__
    return self.get_value(key)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 80, in get_value
    return cls.__instance[key].value
  File "/srv/askbot/askbot-devel/src/django-livesettings3/livesettings/values.py", line 98, in __getitem__
    return self._dict[key]
KeyError: 'USE_LOCAL_FONTS'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/utils/deprecation.py", line 94, in __call__
    response = response or self.get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 19, in top-level template code
    {% include "meta/fonts.html" %} {# may contain external files #}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/fonts.html", line 1, in top-level template code
    {% if settings.USE_LOCAL_FONTS %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 73, in __getattr__
    return self.get_value(key)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 80, in get_value
    return cls.__instance[key].value
  File "/srv/askbot/askbot-devel/src/django-livesettings3/livesettings/values.py", line 98, in __getitem__
    return self._dict[key]
KeyError: 'USE_LOCAL_FONTS'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/utils/deprecation.py", line 94, in __call__
    response = response or self.get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 19, in top-level template code
    {% include "meta/fonts.html" %} {# may contain external files #}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/fonts.html", line 1, in top-level template code
    {% if settings.USE_LOCAL_FONTS %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 73, in __getattr__
    return self.get_value(key)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 80, in get_value
    return cls.__instance[key].value
  File "/srv/askbot/askbot-devel/src/django-livesettings3/livesettings/values.py", line 98, in __getitem__
    return self._dict[key]
KeyError: 'USE_LOCAL_FONTS'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/utils/deprecation.py", line 94, in __call__
    response = response or self.get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 19, in top-level template code
    {% include "meta/fonts.html" %} {# may contain external files #}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/fonts.html", line 1, in top-level template code
    {% if settings.USE_LOCAL_FONTS %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 73, in __getattr__
    return self.get_value(key)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/conf/settings_wrapper.py", line 80, in get_value
    return cls.__instance[key].value
  File "/srv/askbot/askbot-devel/src/django-livesettings3/livesettings/values.py", line 98, in __getitem__
    return self._dict[key]
KeyError: 'USE_LOCAL_FONTS'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/gunicorn/workers/gthread.py", line 271, in handle
    keepalive = self.handle_request(req, conn)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/gunicorn/workers/gthread.py", line 320, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 141, in __call__
    response = self.get_response(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/base.py", line 75, in get_response
    response = self._middleware_chain(request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/askbot-0.10.2-py3.6.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/srv/askbot/.pyenv/versions/3.6.12/lib/python3.6/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined
@evgenyfadeev
Copy link
Member

The issue is that you've installed version 0.10.2, which does not support Python 3.

Please try any of the versions 0.11.x

I'll add a Python version test to the earlier versions, thanks for reporting this issue.

@EvanCarroll
Copy link

EvanCarroll commented Jul 22, 2022

I'm on master, and I'm still getting this error @evgenyfadeev with Python 3.7.


Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/utils/deprecation.py", line 94, in __call__
    response = response or self.get_response(request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/utils/deprecation.py", line 94, in __call__
    response = response or self.get_response(request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/utils/deprecation.py", line 94, in __call__
    response = response or self.get_response(request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/utils/deprecation.py", line 94, in __call__
    response = response or self.get_response(request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 10, in internal_error
    result = template.render(RequestContext(request))
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'request' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/wsgiref/handlers.py", line 137, in run
    self.result = application(self.environ, self.start_response)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/wsgi.py", line 141, in __call__
    response = self.get_response(request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/base.py", line 75, in get_response
    response = self._middleware_chain(request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/core/handlers/exception.py", line 129, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/views/error.py", line 19, in internal_error
    result = template.render(RequestContext(request, data))
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/skins/template_backends.py", line 17, in render
    return super(Template, self).render(context, request)
  File "/usr/local/lib/python3.7/site-packages/Django-2.2.28-py3.7.egg/django/template/backends/jinja2.py", line 71, in render
    return self.template.render(context)
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/base.html", line 21, in top-level template code
    {% include "meta/html_head_javascript.html" %}
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
  File "/usr/local/lib/python3.7/site-packages/Jinja2-3.1.2-py3.7.egg/jinja2/environment.py", line 485, in getattr
    return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'r

@EvanCarroll
Copy link

I think the problem here is that we're declaring

Jinja2>=2.10

But Jinji 3.1.0 has in the build notes,

Markup and escape should be imported from MarkupSafe.

Which is causing a problem

If I switch

    askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};
    askbot['data']['languageCode'] = '{{ current_language_code|escapejs }}';
    {% if request.user.is_authenticated %}

to

    askbot['data']['languageCode'] = '{{ current_language_code|escapejs }}';
    {% if request.user.is_authenticated %}
        askbot['data']['userIsAuthenticated'] = {{ request.user.is_authenticated|as_js_bool }};

I get this instead,

  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/jinja2/meta/html_head_javascript.html", line 5, in top-level template code
    askbot['data']['languageCode'] = '{{ current_language_code|escapejs }}';
  File "/usr/local/lib/python3.7/site-packages/askbot-0.11.3-py3.7.egg/askbot/templatetags/extra_filters_jinja.py", line 448, in escapejs
    return jinja2.Markup("".join(_js_escapes.get(l, l) for l in value))
AttributeError: module 'jinja2' has no attribute 'Markup'
[22/Jul/2022 22:47:39] "GET /favicon.ico HTTP/1.1" 500 59`

And I think that may be the core source of the problem.

@evgenyfadeev
Copy link
Member

evgenyfadeev commented Jul 22, 2022

I've just limited Jinja2 by <3.1, did that help? Works in my environment... I'm testing builds from scratch now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants