summaryrefslogtreecommitdiff
path: root/papillon
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-11-14 20:05:51 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-11-14 20:05:51 +0100
commit80528d61b1c7d5a3c1255d302fb7f2b388624bdb (patch)
treeee5ddecd000b65c7c00c9c11a8920286903ec37d /papillon
parent4bf308db74bdd2600c67cdff91500ee877af9b4e (diff)
downloadPapillon-80528d61b1c7d5a3c1255d302fb7f2b388624bdb.tar.bz2
Papillon-80528d61b1c7d5a3c1255d302fb7f2b388624bdb.zip
Add 500 template - better gitignore
Diffstat (limited to 'papillon')
-rw-r--r--papillon/local_settings.py.sample5
-rw-r--r--papillon/templates/500.html6
2 files changed, 10 insertions, 1 deletions
diff --git a/papillon/local_settings.py.sample b/papillon/local_settings.py.sample
index bb25c67..e2b181b 100644
--- a/papillon/local_settings.py.sample
+++ b/papillon/local_settings.py.sample
@@ -13,9 +13,12 @@ SECRET_KEY = 'replace_this_with_something_else'
# URL that handles the media served from MEDIA_ROOT.
# Example: "http://media.lawrence.com"
-# if you have set an EXTRA_URL set the full path
MEDIA_URL = '/static/'
+# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
+# trailing slash.
+ADMIN_MEDIA_PREFIX = '/static/admin/'
+
TINYMCE_URL = 'http://localhost/tinymce/'
MAX_COMMENT_NB = 10 # max number of comments by poll - 0 to disable comments
ALLOW_FRONTPAGE_POLL = False # disabled is recommanded for public instance
diff --git a/papillon/templates/500.html b/papillon/templates/500.html
new file mode 100644
index 0000000..8196c56
--- /dev/null
+++ b/papillon/templates/500.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block content %}
+<p>{% trans "An error has occurred. A system administrator has been informed and will probably fix it soon." %}</p>
+{% endblock %}