changeset 172:16c289c44acc draft

Enhanced error message about missing settings_local.py
author eriol-guest
date Thu, 07 Jul 2011 06:06:39 +0000
parents c47bdd30a074
children 1dcf2b9f84df
files bts_webui/settings.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bts_webui/settings.py
+++ b/bts_webui/settings.py
@@ -104,6 +104,7 @@
     from settings_local import *
 except ImportError:
     from django.utils.termcolors import colorize
-    msg = 'Unable to find settings_local.py.'
+    msg = ('Unable to find settings_local.py, copy settings_local.template to'
+           '\nsettings_local.py and make your necessary changes.\n')
     sys.stderr.write(colorize(text=msg, fg='red', opts=('bold',)))
     sys.exit(1)