Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Commit

Permalink
Adding 404 and 500 pages to Dragnet.
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonsavage committed Sep 22, 2012
1 parent 8f2f41f commit 588bc5c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions templates/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% extends 'base.html' %}

{% block extrahead %}

{{ js('detail_js') }}

{% endblock %}

{% block mainbody %}
<div class="panel">
Sorry, but the page you requested could not be found.

</div>
{% endblock %}
14 changes: 14 additions & 0 deletions templates/500.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% extends 'base.html' %}

{% block extrahead %}

{{ js('detail_js') }}

{% endblock %}

{% block mainbody %}
<div class="panel">
An error occurred. The error has been logged, and reported to our systems administrators.

</div>
{% endblock %}

1 comment on commit 588bc5c

@peterbe
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If anything errs in base.html this page will fail.

By the way, why does it need detail_js?

Please sign in to comment.