I'm having a KeyError issue when trying to access something from flask.session
and I'm questioning my implementation.
Essentially, I have a PUT request that looks something like this
def auth():
flask.session["access"] = "Admin"
blueprint.before_request(auth)
def put(...):
...
if flask.session["access"] == "Admin":
do_something_cool()
I'm getting a KeyError issue here and I suspect does it have something to do with the usage of blueprint
?
Thanks