On Wednesday 04 November 2015 10:43 PM, Avraham Serour wrote:
the question is why, why would you want to store a global connection for a REST server? keep in mind that you would be making HTTP requests, meaning even that you had a global variable holding the connection it would just open and close each tie you make a request.

No, I am not talking about the REST server.
The REST server is a totally different service and I am just consuming it through Django views.
So I have to use a client connection object such as Python request
So I want to keep it as global, so that all views can access it from a single location, instead of creating a client request instance for every view on every call.


Happy hacking.
Krishnakant.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/563AB16E.9060604%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to