Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit a6c641ef6ee3f3e2574dd6eac206015f3527e1b1
Author: Adam Samalik <asamalik(a)redhat.com>
Date: Thu Oct 1 12:09:42 2015 +0200
[frontend] fix debug mode with mod_wsgi
---------------------------------------------------------------
frontend/coprs_frontend/application | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/frontend/coprs_frontend/application b/frontend/coprs_frontend/application
index 817870e..32d4ff0 100755
--- a/frontend/coprs_frontend/application
+++ b/frontend/coprs_frontend/application
@@ -9,4 +9,10 @@ logging.basicConfig(stream=sys.stderr)
os.environ["COPRS_ENVIRON_PRODUCTION"] = "1"
sys.path.insert(0, os.path.dirname(__file__))
-from coprs import app as application
+from coprs import app
+
+if app.debug:
+ from werkzeug.debug import DebuggedApplication
+ app = DebuggedApplication(app, True)
+
+application = app