mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-12 11:29:36 -06:00
Use blocktrans 'with' clause to pass literal code/commands as variables, preventing them from being translated. This fixes issues where commands like 'manage.py collectstatic' were incorrectly translated to nonsensical strings in non-English locales. Updated templates: - media_failure.html: manage.py collectstatic - programming_error.html: python3 manage.py migrate, SELECT VERSION() - import_error.html: requirements.txt, local_requirements.txt, pip freeze
25 lines
1.0 KiB
HTML
25 lines
1.0 KiB
HTML
{% extends '500.html' %}
|
|
{% load i18n %}
|
|
|
|
{% block message %}
|
|
<p>
|
|
{% trans "A database programming error was detected while processing this request. Common causes include the following:" %}
|
|
</p>
|
|
<p>
|
|
<i class="mdi mdi-alert"></i>
|
|
<strong>{% trans "Database migrations missing" %}.</strong>
|
|
{% blocktrans trimmed with command="python3 manage.py migrate" %}
|
|
When upgrading to a new NetBox release, the upgrade script must be run to apply any new database migrations. You
|
|
can run migrations manually by executing <code>{{ command }}</code> from the command line.
|
|
{% endblocktrans %}
|
|
</p>
|
|
<p>
|
|
<i class="mdi mdi-alert"></i>
|
|
<strong>{% trans "Unsupported PostgreSQL version" %}.</strong>
|
|
{% blocktrans trimmed with sql_query="SELECT VERSION()" %}
|
|
Ensure that PostgreSQL version 14 or later is in use. You can check this by connecting to the database using
|
|
NetBox's credentials and issuing a query for <code>{{ sql_query }}</code>.
|
|
{% endblocktrans %}
|
|
</p>
|
|
{% endblock message %}
|