[Flask] Sessions and blueprints and Application context

Josh Stephens bsdtux at gmail.com
Thu Oct 31 09:12:38 EDT 2019


I believe you should just be able to import session from flask and use it.
I thought session is stored as a global and so it can be used anywhere. Are
you getting a specific error when trying to use sessions in your blueprint?


On October 31, 2019 at 6:50:58 AM, Ben Duncan (linux4ms at gmail.com) wrote:

Ok, given the previous example post form me (Help WIth BluePrints),
How does on go about accessing "session" in the bluprinted view?

Do I need to something more in my "__init__.py" ? Am I missing some import
in my view ?

As Always thanks ...


*Ben Duncan*
DBA / Chief Software Architect
Mississippi State Supreme Court
Electronic Filing Division
_______________________________________________
Flask mailing list
Flask at python.org
https://mail.python.org/mailman/listinfo/flask
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20191031/48553dde/attachment.html>


More information about the Flask mailing list