Clean up exception templates

This commit is contained in:
jeremystretch 2022-03-29 16:01:10 -04:00
parent 894665b067
commit ff780177d0
3 changed files with 36 additions and 36 deletions

View File

@ -1,19 +1,19 @@
{% extends '500.html' %} {% extends '500.html' %}
{% block message %} {% block message %}
<p> <p>
A module import error occurred during this request. Common causes include the following: A module import error occurred during this request. Common causes include the following:
</p> </p>
<p> <p>
<i class="mdi mdi-alert"></i> <strong>Missing required packages</strong> - This installation of NetBox might be <i class="mdi mdi-alert"></i> <strong>Missing required packages</strong> - This installation of NetBox might be
missing one or more required Python packages. These packages are listed in <code>requirements.txt</code> and missing one or more required Python packages. These packages are listed in <code>requirements.txt</code> and
<code>local_requirements.txt</code>, and are normally installed as part of the installation or upgrade process. <code>local_requirements.txt</code>, and are normally installed as part of the installation or upgrade process. To
To verify installed packages, run <code>pip freeze</code> from the console and compare the output to the list of verify installed packages, run <code>pip freeze</code> from the console and compare the output to the list of
required packages. required packages.
</p> </p>
<p> <p>
<i class="mdi mdi-alert"></i> <strong>WSGI service not restarted after upgrade</strong> - If this installation <i class="mdi mdi-alert"></i> <strong>WSGI service not restarted after upgrade</strong> - If this installation has
has recently been upgraded, check that the WSGI service (e.g. gunicorn or uWSGI) has been restarted. This recently been upgraded, check that the WSGI service (e.g. gunicorn or uWSGI) has been restarted. This ensures that
ensures that the new code is running. the new code is running.
</p> </p>
{% endblock message %} {% endblock message %}

View File

@ -1,12 +1,12 @@
{% extends '500.html' %} {% extends '500.html' %}
{% block message %} {% block message %}
<p> <p>
A file permission error was detected while processing this request. Common causes include the following: A file permission error was detected while processing this request. Common causes include the following:
</p> </p>
<p> <p>
<i class="mdi mdi-alert"></i> <strong>Insufficient write permission to the media root</strong> - The configured <i class="mdi mdi-alert"></i> <strong>Insufficient write permission to the media root</strong> - The configured
media root is <code>{{ settings.MEDIA_ROOT }}</code>. Ensure that the user NetBox runs as has access to write media root is <code>{{ settings.MEDIA_ROOT }}</code>. Ensure that the user NetBox runs as has access to write files
files to all locations within this path. to all locations within this path.
</p> </p>
{% endblock message %} {% endblock message %}

View File

@ -1,17 +1,17 @@
{% extends '500.html' %} {% extends '500.html' %}
{% block message %} {% block message %}
<p> <p>
A database programming error was detected while processing this request. Common causes include the following: A database programming error was detected while processing this request. Common causes include the following:
</p> </p>
<p> <p>
<i class="mdi mdi-alert"></i> <strong>Database migrations missing</strong> - When upgrading to a new NetBox release, the upgrade script must <i class="mdi mdi-alert"></i> <strong>Database migrations missing</strong> - When upgrading to a new NetBox release,
be run to apply any new database migrations. You can run migrations manually by executing the upgrade script must be run to apply any new database migrations. You can run migrations manually by executing
<code>python3 manage.py migrate</code> from the command line. <code>python3 manage.py migrate</code> from the command line.
</p> </p>
<p> <p>
<i class="mdi mdi-alert"></i> <strong>Unsupported PostgreSQL version</strong> - Ensure that PostgreSQL version 9.6 or higher is in use. You <i class="mdi mdi-alert"></i> <strong>Unsupported PostgreSQL version</strong> - Ensure that PostgreSQL version 10
can check this by connecting to the database using NetBox's credentials and issuing a query for or later is in use. You can check this by connecting to the database using NetBox's credentials and issuing a query
<code>SELECT VERSION()</code>. for <code>SELECT VERSION()</code>.
</p> </p>
{% endblock message %} {% endblock message %}