Switch to side-by-side view

--- a/Allura/allura/config/middleware.py
+++ b/Allura/allura/config/middleware.py
@@ -2,7 +2,12 @@
 """WSGI middleware initialization for the allura application."""
 import mimetypes
 
+import pylons
+import pylons.middleware
 import tg
+import tg.error
+pylons.c = pylons.tmpl_context
+pylons.g = pylons.app_globals
 import pkg_resources
 from tg import config
 from paste.deploy.converters import asbool