summaryrefslogtreecommitdiffstats
path: root/templates/500.html
blob: 7125aaece63da1684983a4dfee414e218b89d796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% extends "theme.html" %}
{% load i18n %}

{% block title %} {% trans "Error: server error (500)" %} {% endblock %}

{% block content %}

<h2>{% trans "Server Error" %}</h2>

<p>{% trans "We're sorry but a server error has occurred." %}</p>

{% if request.logs %}
  <h2>Logs</h2>
  <table class='a2-log-table'>
    {% for log in request.logs %}
      <tr class="a2-log-line">
        <td class="a2-log-time">{{ log.time|time:"H:i:s" }}</td>
        <td class="a2-log-level">{{ log.level }}</td>
        <td class="a2-log-message">{{ log.message }}</td>
      </tr>
    {% endfor %}
  </table>
{% endif %}

{% if request.exception %}
  <h2>Exception</h2>
  <p>{{ request.exception }}</p>
{% endif %}

{% endblock %}