WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.63k stars 1.02k forks source link

Upgrade from 4.3.2 to 4.4 error: psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist #5058

Closed theyosh closed 3 years ago

theyosh commented 3 years ago

Describe the bug

After following the upgrade on https://docs.weblate.org/en/latest/admin/upgrade.html#upgrade-from-4-3-to-4-4 -> https://docs.weblate.org/en/latest/admin/upgrade.html#generic-upgrade-instructions

And after restarting the weblate server with : weblate runserver I cannot reach the webpage. I get a hugh stacktrace:

December 16, 2020 - 08:14:09 PM
Django version 3.1.4, using settings 'weblate.settings'
Starting development server at http://127.0.0.1:8008/
Quit the server with CONTROL-C.
Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/base.py", line 179, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/dashboard.py", line 193, in home
    return dashboard_anonymous(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/dashboard.py", line 316, in dashboard_anonymous
    "all_projects": len(request.user.allowed_projects),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

And this continuous for multiple lines. But it looks like some kind of recursion is happening here.

To Reproduce the bug

Steps to reproduce the behavior:

Just running pip install - U weblate and run all the upgrade steps on https://docs.weblate.org/en/latest/admin/upgrade.html#generic-upgrade-instructions

Downgrading to 4.3.2 is solving the issue: pip install weblate==4.3.2

Expected behavior

Working version.

Screenshots N/A Server configuration and status

Weblate installation: PyPI

weblate list_versions

Weblate deploy checks

weblate check --deploy

SystemCheckError: System check identified some issues:

CRITICALS:
?: (weblate.E019) The Celery does not process tasks, or is too slow in processing them.
    HINT: https://docs.weblate.org/en/weblate-4.4/admin/install.html#celery

WARNINGS:
?: (security.W008) Your SECURE_SSL_REDIRECT setting is not set to True. Unless your site should be available over both SSL and non-SSL connections, you may want to either set this setting True or configure a load balancer or reverse-proxy server to redirect all connections to HTTPS.
?: (weblate.W033.Subversion) Failure in loading VCS module for Subversion: git: 'svn' is not a git command. See 'git --help'.

The most similar commands are
    fsck
    mv
    show
 (1)
    HINT: https://docs.weblate.org/en/weblate-4.4/vcs.html

System check identified 3 issues (1 silenced).

Exception traceback

December 16, 2020 - 08:14:09 PM
Django version 3.1.4, using settings 'weblate.settings'
Starting development server at http://127.0.0.1:8008/
Quit the server with CONTROL-C.
Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/base.py", line 179, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/dashboard.py", line 193, in home
    return dashboard_anonymous(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/dashboard.py", line 316, in dashboard_anonymous
    "all_projects": len(request.user.allowed_projects),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 82, in server_error
    status=500,
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 129, in __call__
    return f(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 90, in sentry_wrapped_method
    return old_method(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/middleware.py", line 195, in __call__
    response = self.get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 49, in inner
    response = response_for_exception(request, exc)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 103, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 142, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 85, in server_error
    return django.views.defaults.server_error(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/defaults.py", line 97, in server_error
    return HttpResponseServerError(template.render())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/library.py", line 192, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/templatetags/translations.py", line 276, in documentation
    return get_doc_url(page, anchor, user=context["user"])
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'user'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 82, in server_error
    status=500,
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 129, in __call__
    return f(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 90, in sentry_wrapped_method
    return old_method(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/api/middleware.py", line 26, in __call__
    response = self.get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 49, in inner
    response = response_for_exception(request, exc)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 103, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 142, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 85, in server_error
    return django.views.defaults.server_error(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/defaults.py", line 97, in server_error
    return HttpResponseServerError(template.render())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/library.py", line 192, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/templatetags/translations.py", line 276, in documentation
    return get_doc_url(page, anchor, user=context["user"])
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'user'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 82, in server_error
    status=500,
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 129, in __call__
    return f(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 90, in sentry_wrapped_method
    return old_method(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/accounts/middleware.py", line 156, in __call__
    return self.get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 49, in inner
    response = response_for_exception(request, exc)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 103, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 142, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 85, in server_error
    return django.views.defaults.server_error(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/defaults.py", line 97, in server_error
    return HttpResponseServerError(template.render())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/library.py", line 192, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/templatetags/translations.py", line 276, in documentation
    return get_doc_url(page, anchor, user=context["user"])
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'user'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 82, in server_error
    status=500,
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 129, in __call__
    return f(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 90, in sentry_wrapped_method
    return old_method(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/deprecation.py", line 114, in __call__
    response = response or self.get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 49, in inner
    response = response_for_exception(request, exc)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 103, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 142, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 85, in server_error
    return django.views.defaults.server_error(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/defaults.py", line 97, in server_error
    return HttpResponseServerError(template.render())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/library.py", line 192, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/templatetags/translations.py", line 276, in documentation
    return get_doc_url(page, anchor, user=context["user"])
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'user'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 82, in server_error
    status=500,
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 129, in __call__
    return f(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 90, in sentry_wrapped_method
    return old_method(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/deprecation.py", line 114, in __call__
    response = response or self.get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 49, in inner
    response = response_for_exception(request, exc)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 103, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 142, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 85, in server_error
    return django.views.defaults.server_error(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/defaults.py", line 97, in server_error
    return HttpResponseServerError(template.render())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/library.py", line 192, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/templatetags/translations.py", line 276, in documentation
    return get_doc_url(page, anchor, user=context["user"])
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'user'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 82, in server_error
    status=500,
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 129, in __call__
    return f(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 90, in sentry_wrapped_method
    return old_method(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/deprecation.py", line 114, in __call__
    response = response or self.get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 49, in inner
    response = response_for_exception(request, exc)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 103, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 142, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 85, in server_error
    return django.views.defaults.server_error(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/defaults.py", line 97, in server_error
    return HttpResponseServerError(template.render())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/library.py", line 192, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/templatetags/translations.py", line 276, in documentation
    return get_doc_url(page, anchor, user=context["user"])
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'user'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 82, in server_error
    status=500,
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 129, in __call__
    return f(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 90, in sentry_wrapped_method
    return old_method(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/accounts/middleware.py", line 74, in __call__
    response = self.get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 49, in inner
    response = response_for_exception(request, exc)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 103, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 142, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 85, in server_error
    return django.views.defaults.server_error(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/defaults.py", line 97, in server_error
    return HttpResponseServerError(template.render())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/library.py", line 192, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/templatetags/translations.py", line 276, in documentation
    return get_doc_url(page, anchor, user=context["user"])
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'user'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 82, in server_error
    status=500,
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 129, in __call__
    return f(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 90, in sentry_wrapped_method
    return old_method(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/deprecation.py", line 114, in __call__
    response = response or self.get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 49, in inner
    response = response_for_exception(request, exc)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 103, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 142, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 85, in server_error
    return django.views.defaults.server_error(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/defaults.py", line 97, in server_error
    return HttpResponseServerError(template.render())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/library.py", line 192, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/templatetags/translations.py", line 276, in documentation
    return get_doc_url(page, anchor, user=context["user"])
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'user'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 82, in server_error
    status=500,
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 129, in __call__
    return f(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 90, in sentry_wrapped_method
    return old_method(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/deprecation.py", line 114, in __call__
    response = response or self.get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 49, in inner
    response = response_for_exception(request, exc)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 103, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 142, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 85, in server_error
    return django.views.defaults.server_error(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/defaults.py", line 97, in server_error
    return HttpResponseServerError(template.render())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/library.py", line 192, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/templatetags/translations.py", line 276, in documentation
    return get_doc_url(page, anchor, user=context["user"])
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'user'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 82, in server_error
    status=500,
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 129, in __call__
    return f(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 90, in sentry_wrapped_method
    return old_method(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/deprecation.py", line 114, in __call__
    response = response or self.get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 49, in inner
    response = response_for_exception(request, exc)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 103, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 142, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 85, in server_error
    return django.views.defaults.server_error(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/defaults.py", line 97, in server_error
    return HttpResponseServerError(template.render())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/library.py", line 192, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/templatetags/translations.py", line 276, in documentation
    return get_doc_url(page, anchor, user=context["user"])
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'user'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 82, in server_error
    status=500,
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 129, in __call__
    return f(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 90, in sentry_wrapped_method
    return old_method(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/deprecation.py", line 114, in __call__
    response = response or self.get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 49, in inner
    response = response_for_exception(request, exc)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 103, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 142, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 85, in server_error
    return django.views.defaults.server_error(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/defaults.py", line 97, in server_error
    return HttpResponseServerError(template.render())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/library.py", line 192, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/templatetags/translations.py", line 276, in documentation
    return get_doc_url(page, anchor, user=context["user"])
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'user'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 82, in server_error
    status=500,
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 129, in __call__
    return f(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 90, in sentry_wrapped_method
    return old_method(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/middleware.py", line 72, in __call__
    return self.get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 49, in inner
    response = response_for_exception(request, exc)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 103, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 142, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 85, in server_error
    return django.views.defaults.server_error(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/defaults.py", line 97, in server_error
    return HttpResponseServerError(template.render())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/library.py", line 192, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/templatetags/translations.py", line 276, in documentation
    return get_doc_url(page, anchor, user=context["user"])
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'user'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 82, in server_error
    status=500,
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 129, in __call__
    return f(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/middleware.py", line 90, in sentry_wrapped_method
    return old_method(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/middleware.py", line 87, in __call__
    response = self.get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 49, in inner
    response = response_for_exception(request, exc)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 103, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 142, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 85, in server_error
    return django.views.defaults.server_error(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/defaults.py", line 97, in server_error
    return HttpResponseServerError(template.render())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/library.py", line 192, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/templatetags/translations.py", line 276, in documentation
    return get_doc_url(page, anchor, user=context["user"])
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'user'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 82, in server_error
    status=500,
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/util.py", line 222, in render
    return django_render(request, template, context, status=status)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 168, in render
    with context.bind_template(self):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 244, in bind_template
    updates.update(processor(self.request))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/context_processors.py", line 175, in weblate_context
    "custom_css_hash": CustomCSSView.get_hash(request),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 63, in get_hash
    css = cls.get_css(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/views.py", line 47, in get_css
    Setting.objects.get_settings_dict(Setting.CATEGORY_UI),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/configuration/models.py", line 26, in get_settings_dict
    return dict(self.filter(category=category).values_list("name", "value"))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 287, in __iter__
    self._fetch_all()
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 1308, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/query.py", line 142, in __iter__
    return compiler.results_iter(tuple_expected=True, chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1108, in results_iter
    results = self.execute_sql(MULTI, chunked_fetch=chunked_fetch, chunk_size=chunk_size)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
    return real_execute(self, sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "weblate_setting" does not exist
LINE 1: ...e_setting"."name", "weblate_setting"."value" FROM "weblate_s...
                                                             ^

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/wsgiref/handlers.py", line 137, in run
    self.result = application(self.environ, self.start_response)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 119, in sentry_patched_wsgi_handler
    return SentryWsgiMiddleware(bound_old_app)(environ, start_response)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/wsgi.py", line 127, in __call__
    reraise(*_capture_exception(hub))
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/_compat.py", line 57, in reraise
    raise value
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/wsgi.py", line 124, in __call__
    partial(_sentry_start_response, start_response, span),
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 133, in __call__
    response = self.get_response(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/sentry_sdk/integrations/django/__init__.py", line 348, in sentry_patched_get_response
    return old_get_response(self, request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/base.py", line 128, in get_response
    response = self._middleware_chain(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 49, in inner
    response = response_for_exception(request, exc)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 103, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 142, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/views/error.py", line 85, in server_error
    return django.views.defaults.server_error(request)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/views/defaults.py", line 97, in server_error
    return HttpResponseServerError(template.render())
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 162, in _render
    return self.nodelist.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/library.py", line 192, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/weblate/trans/templatetags/translations.py", line 276, in documentation
    return get_doc_url(page, anchor, user=context["user"])
  File "/opt/webdata/weblate-env/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
    raise KeyError(key)
KeyError: 'user'
[16/Dec/2020 20:14:21] "GET / HTTP/1.1" 500 59

Additional context

Downgrading to 4.3.2 is solving the issue: pip install weblate==4.3.2

nijel commented 3 years ago

There is a change in INSTALLED_APPS.

You probably didn't adjust your settings.py.

github-actions[bot] commented 3 years ago

This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you!

theyosh commented 3 years ago

I am so sorry. Looking at the changes is not the same as reading them :) So I just missed the line where it says to add weblate.configuration to the application list.

So, it was a user error and fixed now. Thanks for the hint.

github-actions[bot] commented 3 years ago

The issue you have reported is resolved now. If you don’t feel it’s right, please follow it’s labels to get a clue and take further steps.

theyosh commented 3 years ago

Oh, you did add the line about updating the INSTALLED_APPS? So I did read it correctly yesterday?

nijel commented 3 years ago

No, I've just clarified so that it mentions app which was added, see https://github.com/WeblateOrg/weblate/commit/8d05b8a06ff5945034ee0479ec40a877007edd56