500.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {% load i18n %}
  2. {% load static %}
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <title>{% trans "Server Error" %}</title>
  7. <link rel="stylesheet" href="{% static 'netbox.css'%}" />
  8. <meta charset="UTF-8">
  9. </head>
  10. <body>
  11. <div class="container-fluid">
  12. <div class="row">
  13. <div class="col col-md-6 offset-md-3">
  14. <div class="card border-danger mt-5">
  15. <h2 class="card-header text-bg-danger">
  16. <i class="mdi mdi-alert"></i> {% trans "Server Error" %}
  17. </h2>
  18. <div class="card-body">
  19. {% block message %}
  20. <p>
  21. {% trans "There was a problem with your request. Please contact an administrator" %}.
  22. </p>
  23. {% endblock %}
  24. <hr />
  25. <p>
  26. {% trans "The complete exception is provided below" %}:
  27. </p>
  28. <pre class="block"><strong>{{ exception }}</strong><br />
  29. {{ error }}
  30. {% trans "Python version" %}: {{ python_version }}
  31. {% trans "NetBox version" %}: {{ netbox_version }}
  32. {% trans "Plugins" %}: {% for plugin, version in plugins.items %}
  33. {{ plugin }}: {{ version }}{% empty %}{% trans "None installed" %}{% endfor %}
  34. </pre>
  35. <p>
  36. {% trans "The request which yielded the above error is shown below:" %}
  37. </p>
  38. <p>
  39. <code>{{ request.method }} {{ request.build_absolute_uri }}</code>
  40. </p>
  41. <p>
  42. {% trans "If further assistance is required, please post to the" %} <a href="https://github.com/netbox-community/netbox/discussions">{% trans "NetBox discussion forum" %}</a> {% trans "on GitHub" %}.
  43. </p>
  44. <div class="text-end">
  45. <a href="{% url 'home' %}" class="btn btn-primary">{% trans "Home Page" %}</a>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </body>
  53. </html>