import_error.html 1.1 KB

1234567891011121314151617181920212223242526
  1. {% extends '500.html' %}
  2. {% load i18n %}
  3. {% block message %}
  4. <p>
  5. {% trans "A module import error occurred during this request. Common causes include the following:" %}
  6. </p>
  7. <p>
  8. <i class="mdi mdi-alert"></i>
  9. <strong>{% trans "Missing required packages" %}.</strong>
  10. {% blocktrans trimmed %}
  11. This installation of NetBox might be missing one or more required Python packages. These packages are listed in
  12. <code>requirements.txt</code> and <code>local_requirements.txt</code>, and are normally installed as part of the
  13. installation or upgrade process. To verify installed packages, run <code>pip freeze</code> from the console and
  14. compare the output to the list of required packages.
  15. {% endblocktrans %}
  16. </p>
  17. <p>
  18. <i class="mdi mdi-alert"></i>
  19. <strong>{% trans "WSGI service not restarted after upgrade" %}.</strong>
  20. {% blocktrans trimmed %}
  21. If this installation has recently been upgraded, check that the WSGI service (e.g. gunicorn or uWSGI) has been
  22. restarted. This ensures that the new code is running.
  23. {% endblocktrans %}
  24. </p>
  25. {% endblock message %}