From 71960f15fb618fdde22cfe44e72b2c543fc11b87 Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Thu, 21 Apr 2011 23:16:57 +0200 Subject: [PATCH] no debug => error templates --- settings.py | 3 ++- templates/404.html | 1 + templates/500.html | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 templates/404.html create mode 100644 templates/500.html diff --git a/settings.py b/settings.py index c6f1fa9..49c6761 100644 --- a/settings.py +++ b/settings.py @@ -1,6 +1,6 @@ # Django settings for surveillao project. -DEBUG = True +DEBUG = False TEMPLATE_DEBUG = DEBUG ADMINS = ( @@ -85,6 +85,7 @@ TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. + os.path.join(_PROJECT_PATH, 'templates'), ) INSTALLED_APPS = ( diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..64334d2 --- /dev/null +++ b/templates/404.html @@ -0,0 +1 @@ +nothing here (404) diff --git a/templates/500.html b/templates/500.html new file mode 100644 index 0000000..eb4c02c --- /dev/null +++ b/templates/500.html @@ -0,0 +1 @@ +nothing here (500)