From 1cb0d740e6b11d2ad5e490c3a64b834640195879 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 10 Jul 2011 00:40:26 -0400 Subject: slightly more informative error message --- pyramid/paster.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pyramid/paster.py b/pyramid/paster.py index ad807d53f..a5cd63dfb 100644 --- a/pyramid/paster.py +++ b/pyramid/paster.py @@ -129,9 +129,12 @@ class PShellCommand(PCommand): else: # warn the user that this isn't actually the Pyramid app warning = """\n -WARNING: You have loaded a generic WSGI application, therefore the -"root" and "registry" are not available. To correct this, run "pshell" -again and specify the INI section containing your Pyramid application.""" +WARNING: You have loaded a generic WSGI application, therefore the "root", +"registry", and "settings" global variables are not available. To correct +this, run "pshell" again and specify the INI section containing your Pyramid +application. For example, if your app is in the '[app:myapp]' config file +section, use 'development.ini#myapp' instead of 'development.ini' or +'development.ini#main'.""" closer = lambda: None # load the pshell section of the ini file -- cgit v1.2.3