#request

1 bookmarks tagged with #request · RSS Feed · ← All Tags

Ned Batchelder: Global Django requests

http://nedbatchelder.com/blog/201008/global_django_requests.html
"As my Django sites get larger and larger, there inevitably comes a point where I want access to the current request from deep inside some function that doesn't have the request object. The latest reason was that I wanted a model class helper to have access to the session so it could access some debug flags. "