Slightly wrapping paste error middleware and turning it on

Now we can show a nice "borked goblin" error :)
This commit is contained in:
Christopher Allan Webber
2011-08-21 00:09:29 -05:00
parent a6cf463515
commit 72ae87af4a
4 changed files with 66 additions and 51 deletions

View File

@@ -1,7 +1,11 @@
[DEFAULT]
debug = true
# Set to true to enable web-based debugging messages and etc.
debug = false
[composite:main]
[pipeline:main]
pipeline = errors routing
[composite:routing]
use = egg:Paste#urlmap
/ = mediagoblin
/mgoblin_media/ = publicstore_serve
@@ -28,6 +32,10 @@ beaker.session.key = mediagoblin
beaker.session.data_dir = %(here)s/user_dev/beaker/sessions/data
beaker.session.lock_dir = %(here)s/user_dev/beaker/sessions/lock
[filter:errors]
use = egg:mediagoblin#errors
debug = false
[server:main]
use = egg:Paste#http
host = 127.0.0.1