diff --git a/netbox/templates/exceptions/import_error.html b/netbox/templates/exceptions/import_error.html index 1996412e1dd..595a7eb52ca 100644 --- a/netbox/templates/exceptions/import_error.html +++ b/netbox/templates/exceptions/import_error.html @@ -8,10 +8,10 @@
{% trans "Missing required packages" %}.
- {% blocktrans trimmed %}
+ {% blocktrans trimmed with req_file="requirements.txt" local_req_file="local_requirements.txt" pip_cmd="pip freeze" %}
This installation of NetBox might be missing one or more required Python packages. These packages are listed in
- requirements.txt and local_requirements.txt, and are normally installed as part of the
- installation or upgrade process. To verify installed packages, run pip freeze from the console and
+ {{ req_file }} and {{ local_req_file }}, and are normally installed as part of the
+ installation or upgrade process. To verify installed packages, run {{ pip_cmd }} from the console and
compare the output to the list of required packages.
{% endblocktrans %}
{% trans "Database migrations missing" %}.
- {% blocktrans trimmed %}
+ {% 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 python3 manage.py migrate from the command line.
+ can run migrations manually by executing {{ command }} from the command line.
{% endblocktrans %}
{% trans "Unsupported PostgreSQL version" %}.
- {% blocktrans trimmed %}
+ {% 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 SELECT VERSION().
+ NetBox's credentials and issuing a query for {{ sql_query }}.
{% endblocktrans %}
{% trans "Check the following" %}:
manage.py collectstatic was run during the most recent upgrade. This installs the most
+ {% blocktrans trimmed with command="manage.py collectstatic" %}
+ {{ command }} was run during the most recent upgrade. This installs the most
recent iteration of each static file into the static root path.
{% endblocktrans %}