<a href="/"><img src="{{ STATIC_URL }}img/logo.png" /></a>
<p class="haj" style="font-weight: bold">{% trans "Server error" %}</p>
-<p>
-{% trans "We are sorry for your inconvenience, but server error occured. We are working on fixing it as soon as possible. Meanwhile, please go to " %}<a href="/">{% trans "main page" %}</a>.
-</p>
+{% trans "<p>The Wolnelektury.pl site is currently unavailable. Meanwhile, visit our <a href='http://nowoczesnapolska.org.pl'>blog</a>.</p> <p>Inform our <a href='mailto:fundacja@nowoczesnapolska.org.pl'>administrators</a> about the error.</p>" %}
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
urlpatterns += patterns('',
url(r'^rosetta/', include('rosetta.urls')),
)
+
+handler500 = 'views.server_error'
--- /dev/null
+# -*- coding: utf-8 -*-
+
+from django import http
+from django.template import RequestContext, loader
+
+def server_error(request):
+ t = loader.get_template('500.html')
+ return http.HttpResponseServerError(t.render(RequestContext(request)))
+