How to Add a Current Thread Safe Local Object to Flask Apps
To do this you need to use werkzeug's LocalProxy object, which will proxy data to Flask's g built in global object.
Then it's just a matter of setting your data in the @before_request and @context_process decorators.
from flask import Flask, session,...
Read more...
Simple Means Less, Not Easy
I'm surprised how often developers introduce complexity when they are seemingly attempting to make some tasks easier. It's easy to forget that simple and easy are not the same thing.
Simple is less code. Even if it occasionally requires a little more...
Read more...
Hello World
Welcome to the site!
I'm starting to write again. Mostly for fun. But writing really helps to understand complex topics. If you can explain something to an audience your grasp of the subject is better.
So here's the first post on my new site!
The...
Read more...