aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Lopes Tavares <hltbra@gmail.com>2009-11-10 15:37:01 -0200
committerHugo Lopes Tavares <hltbra@gmail.com>2009-11-10 15:37:01 -0200
commitdd1f563cb6e79f345116fd8283ddd03669718f9b (patch)
tree0765b7036dca1dadad4cd4ab79a7bd3b724c46ec
parent06d5c4caa035b17145cda129640a4ae4820f3bad (diff)
downloadchishop-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.html12
-rw-r--r--chishop/templates/500.html12
-rw-r--r--chishop/urls.py2
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> &rsaquo; {% 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 -*-
2from django.conf.urls.defaults import patterns, url, include 2from django.conf.urls.defaults import patterns, url, include, handler404, handler500
3from django.conf import settings 3from django.conf import settings
4from django.contrib import admin 4from django.contrib import admin
5 5