You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use bottle's object functionality to be able to import subapps and then mount them into the global default application. However, when I try to include beaker for session management I run into issues:
Traceback (most recent call last):
File "example.py", line 14, in <module>
@app.route('/')
AttributeError: 'SessionMiddleware' object has no attribute 'route'
Is this behaviour supported by beaker? If so, can you advise what I am doing wrong here?
The text was updated successfully, but these errors were encountered:
You are wrapping app with the beaker middleare, so app is not a Bottle object anymore.
You should apply the middleware after you configured your app, not before.
I am trying to use bottle's object functionality to be able to import subapps and then mount them into the global default application. However, when I try to include beaker for session management I run into issues:
Error:
Is this behaviour supported by beaker? If so, can you advise what I am doing wrong here?
The text was updated successfully, but these errors were encountered: