def register_debug(app): toolbar = DebugToolbarExtension() # Setting up the debug toolbar step1 toolbar.init_app(app) # Setting up the debug toolbar step2