Reusing Connections In Django With Python Requests
What's the correct way of reusing Python Requests connections in Django across multiple HTTP requests. That's what I'm doing currently: import requests def do_request(data): r
Solution 1:
Create a session, keep the session maintained by passing it through functions and returning it, or create the session object at global level or class level, so the latest state is maintained whenever it is referenced. And it will work like a charm.
Post a Comment for "Reusing Connections In Django With Python Requests"