# HG changeset patch
# User grandjoncl
# Date 1350650847 -7200
# Node ID 534c13786e89d503fd4f1c222dcc2ff37fd086d2
# Parent 9f20aab419de3b6c4970772bbc5fce69135f54bf
change of 500 error page
diff -r 9f20aab419de -r 534c13786e89 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/500.html
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/500.html Thu Oct 18 10:42:44 2012 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-{% extends "ldt/ldt_base.html" %}
-{% load i18n %}
-
-{% block content %}
-
-
{% trans 'Error 500' %}
-
-

-
-
{% trans 'Internal server error' %}
-
-{% endblock %}
\ No newline at end of file
diff -r 9f20aab419de -r 534c13786e89 src/ldt/ldt/ldt_utils/views/error_views.py
--- a/src/ldt/ldt/ldt_utils/views/error_views.py Thu Oct 18 10:42:44 2012 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-from django.conf import settings
-from django.http import (HttpResponseRedirect, HttpResponseForbidden )
-from django.shortcuts import render_to_response
-from django.template import RequestContext
-from django.template import Context, loader
-from django.http import HttpResponseServerError
-import logging
-
-
-def error500(request):
-
- return render_to_response('ldt/ldt_utils/500.html',
- context_instance = RequestContext(request))
-
\ No newline at end of file
diff -r 9f20aab419de -r 534c13786e89 src/ldt/ldt/static/ldt/img/500_kitten.jpg
Binary file src/ldt/ldt/static/ldt/img/500_kitten.jpg has changed
diff -r 9f20aab419de -r 534c13786e89 src/ldt/ldt/templates/500.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/templates/500.html Fri Oct 19 14:47:27 2012 +0200
@@ -0,0 +1,403 @@
+
+
+
+
+
+
+
+
+
+
Error 500
+

+
We had a problem with our server
+
(thank you frodo...)
+
+
+
+
+
+
+
diff -r 9f20aab419de -r 534c13786e89 web/ldtplatform/urls.py
--- a/web/ldtplatform/urls.py Thu Oct 18 10:42:44 2012 +0200
+++ b/web/ldtplatform/urls.py Fri Oct 19 14:47:27 2012 +0200
@@ -1,4 +1,4 @@
-from django.conf.urls.defaults import patterns, include, url, handler500
+from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from ldt.auth.views import login as pf_login
from ldt.text import VERSION_STR
@@ -8,9 +8,6 @@
# Uncomment the next two lines to enable the admin:
admin.autodiscover()
-handler500 = 'ldt.ldt_utils.views.error_views.error500'
-
-
js_info_dict = {
'packages': ('django.contrib.admin',),
}