Re: getting tuples from http request.GET

2015-03-08 Thread Jonathan Querubina
You could use the same variable name on the querystring and call: request.GET.getlist For example, on a select multiple field ou checkbox  John Mobile & Web developer +55(12)98864-1594 > On Mar 8, 2015, at 00:01, Sunil Sawant wrote: > > Thanks Collin, you cut out the crap from from my code.

Re: getting tuples from http request.GET

2015-03-07 Thread Sunil Sawant
Thanks Collin, you cut out the crap from from my code. Simple is beautiful :) On Friday, March 6, 2015 at 5:11:45 PM UTC-8, Collin Anderson wrote: > > Hi, > > Normally query arguments are separated by &. If you're able to send the > data like this: > > > https://mydesktop.com/validator?hostname

Re: getting tuples from http request.GET

2015-03-06 Thread Collin Anderson
Hi, Normally query arguments are separated by &. If you're able to send the data like this: https://mydesktop.com/validator?hostname1=host1.example.com&location1=ca&ip1=2.2.2.2&hostname2=host2.example.com&location2=wa&ip2=3.3.3.3 Then you could do something like: data = [] i = 0 while True:

getting tuples from http request.GET

2015-03-04 Thread Sunil Sawant
Hi Guys, Pretty new to Django, but used it blindly and works wonders. But here is a situation I am blocked at now for a new project I request.GET the following URL https://mydesktop.com/validator?hostname1=host1.example.com,location1=ca,ip1=2.2.2.2,hostname2=host2.example.com,location2=wa,ip2=3