diff options
author | Hugo Lopes Tavares <hltbra@gmail.com> | 2009-11-10 15:37:01 -0200 |
---|---|---|
committer | Hugo Lopes Tavares <hltbra@gmail.com> | 2009-11-10 15:37:01 -0200 |
commit | dd1f563cb6e79f345116fd8283ddd03669718f9b (patch) | |
tree | 0765b7036dca1dadad4cd4ab79a7bd3b724c46ec | |
parent | 06d5c4caa035b17145cda129640a4ae4820f3bad (diff) | |
download | chishop-dd1f563cb6e79f345116fd8283ddd03669718f9b.tar.bz2 chishop-dd1f563cb6e79f345116fd8283ddd03669718f9b.tar.xz chishop-dd1f563cb6e79f345116fd8283ddd03669718f9b.zip |
bugfix: 404 and 505 pages could not be showed, not they can.
-rw-r--r-- | chishop/templates/404.html | 12 | ||||
-rw-r--r-- | chishop/templates/500.html | 12 | ||||
-rw-r--r-- | chishop/urls.py | 2 |
3 files changed, 25 insertions, 1 deletions
diff --git a/chishop/templates/404.html b/chishop/templates/404.html new file mode 100644 index 0000000..9bf4293 --- /dev/null +++ b/chishop/templates/404.html | |||
@@ -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 %} | ||
7 | |||
8 | <h2>{% trans 'Page not found' %}</h2> | ||
9 | |||
10 | <p>{% trans "We're sorry, but the requested page could not be found." %}</p> | ||
11 | |||
12 | {% endblock %} | ||
diff --git a/chishop/templates/500.html b/chishop/templates/500.html new file mode 100644 index 0000000..b30e431 --- /dev/null +++ b/chishop/templates/500.html | |||
@@ -0,0 +1,12 @@ | |||
1 | {% extends "admin/base_site.html" %} | ||
2 | {% load i18n %} | ||
3 | |||
4 | {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans "Home" %}</a> › {% trans "Server error" %}</div>{% endblock %} | ||
5 | |||
6 | {% block title %}{% trans 'Server error (500)' %}{% endblock %} | ||
7 | |||
8 | {% block content %} | ||
9 | <h1>{% trans 'Server Error <em>(500)</em>' %}</h1> | ||
10 | <p>{% trans "There's been an error. It's been reported to the site administrators via e-mail and should be fixed shortly. Thanks for your patience." %}</p> | ||
11 | |||
12 | {% endblock %} | ||
diff --git a/chishop/urls.py b/chishop/urls.py index 9aa5cb7..b9f3e65 100644 --- a/chishop/urls.py +++ b/chishop/urls.py | |||
@@ -1,5 +1,5 @@ | |||
1 | # -*- coding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
2 | from django.conf.urls.defaults import patterns, url, include | 2 | from django.conf.urls.defaults import patterns, url, include, handler404, handler500 |
3 | from django.conf import settings | 3 | from django.conf import settings |
4 | from django.contrib import admin | 4 | from django.contrib import admin |
5 | 5 | ||