diff options
| author | Chris McDonough <chrism@plope.com> | 2011-07-10 00:40:26 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-07-10 00:40:26 -0400 |
| commit | 1cb0d740e6b11d2ad5e490c3a64b834640195879 (patch) | |
| tree | f19bb6eb464d24273d5d5207b4f75d8601f7f89a | |
| parent | 7565006cf1f3b929d9ea54256214f3a39385936a (diff) | |
| download | pyramid-1cb0d740e6b11d2ad5e490c3a64b834640195879.tar.gz pyramid-1cb0d740e6b11d2ad5e490c3a64b834640195879.tar.bz2 pyramid-1cb0d740e6b11d2ad5e490c3a64b834640195879.zip | |
slightly more informative error message
| -rw-r--r-- | pyramid/paster.py | 9 |
1 files 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 |
