Skip to content

Commit

Permalink
Add Debugger app, remove pdb line
Browse files Browse the repository at this point in the history
  • Loading branch information
tino097 committed Aug 21, 2018
1 parent 4ef766f commit 0ced794
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion ckan/config/middleware/__init__.py
Expand Up @@ -53,7 +53,6 @@ def make_app(conf, full_stack=True, static_files=True, **app_conf):
middleware.
'''

import pdb; pdb.set_trace()
load_environment(conf, app_conf)

pylons_app = make_pylons_stack(conf, full_stack, static_files,
Expand Down
4 changes: 4 additions & 0 deletions ckan/config/middleware/flask_app.py
Expand Up @@ -107,6 +107,10 @@ def make_flask_stack(conf, **app_conf):
app.config['DEBUG_TB_INTERCEPT_REDIRECTS'] = False
DebugToolbarExtension(app)

from werkzeug.debug import DebuggedApplication
app = DebuggedApplication(app, True)
app = app.app

# Use Beaker as the Flask session interface
class BeakerSessionInterface(SessionInterface):
def open_session(self, app, request):
Expand Down

0 comments on commit 0ced794

Please sign in to comment.