Skip to content

Commit ad2c1d8

Browse files
committed
add 404.html && 500.html
1 parent bde36cb commit ad2c1d8

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% extends "admin/base_site.html" %}
2+
{% load i18n %}
3+
4+
{% block title %}{% trans 'Page not found' %}{% endblock %}
5+
6+
{% block content_title %} {% trans 'Page not found' %} {% endblock %}
7+
8+
{% block content %}
9+
10+
<p>{% trans "We're sorry, but the requested page could not be found." %}</p>
11+
12+
{% endblock %}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{% extends "admin/base_site.html" %}
2+
{% load i18n %}
3+
4+
{% block breadcrumbs %}
5+
6+
<ol class="breadcrumb">
7+
<li><a href="{% url 'admin:index' %}"><i class="fa fa-dashboard"></i> {% trans 'Home' %}</a></li>
8+
<li class="active">{% trans 'Server error' %}</li>
9+
</ol>
10+
{% endblock %}
11+
12+
{% block title %}{% trans 'Server error (500)' %}{% endblock %}
13+
14+
{% block content_title %} {% trans 'Server Error <em>(500)</em>' %} {% endblock %}
15+
16+
{% block content %}
17+
18+
<p>{% trans "There's been an error. It's been reported to the site administrators via email and should be fixed shortly. Thanks for your patience." %}</p>
19+
20+
{% endblock %}

0 commit comments

Comments
 (0)