-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
render error pages using base template
- Loading branch information
1 parent
dd11a45
commit 19f0d76
Showing
5 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<h1>400 Bad Request</h1> | ||
{% extends "errorpage.html" %} | ||
|
||
This kind of request is not allowed. | ||
{% block error %} | ||
<h1>400 Bad Request</h1> | ||
|
||
This kind of request is not allowed here. | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{% extends "errorpage.html" %} | ||
|
||
{% block error %} | ||
<h1>403 Forbidden</h1> | ||
|
||
Sorry, this is not allowed (for you). | ||
|
||
If you did not login yet, try logging in. | ||
If you did not log in yet, try logging in. | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{% extends "errorpage.html" %} | ||
|
||
{% block error %} | ||
<h1>404 Not found</h1> | ||
|
||
Nothing to see here. | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{% extends "errorpage.html" %} | ||
|
||
{% block error %} | ||
<h1>500 Internal Server Error</h1> | ||
|
||
Sorry :( we screwed up. | ||
Sorry, we screwed up. Try again later. :( | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% extends "base.html" %} | ||
{% load i18n %}{% load bootstrap %} | ||
|
||
{% block content %} | ||
<div class="row"> | ||
{% block error %} | ||
{% endblock %} | ||
</div> | ||
{% endblock %} | ||
|