ah ok, I was expecting something like that ..
this is only for a *very* special case though, not for my normal form
thingz..
thanks for all the advices !
cheers,
_y
On Sep 3, 6:39 pm, Tom Evans wrote:
> On Fri, Sep 3, 2010 at 5:05 PM, jean polo wrote:
> > ok sorry if I used a bad example with
On Fri, Sep 3, 2010 at 5:05 PM, jean polo wrote:
> ok sorry if I used a bad example with id..
> I meant something like:
> xx?bla=1,2,3,4
>
> I got it working by using a special field ('bla') in my form which is
> a CharField
> then I parse bla:
> arr = request.GET.get('bla').split(',')
> if al
ok sorry if I used a bad example with id..
I meant something like:
xx?bla=1,2,3,4
I got it working by using a special field ('bla') in my form which is
a CharField
then I parse bla:
arr = request.GET.get('bla').split(',')
if all items of arr are integers, I have my array of 'bla' =)
cheers,
_
Wel... but to do this, you must to catch the url and get from it... but
really, with urls.py can you do that?
Perhaps, with a regex line in urls.py as:
(^\d+)?(/\d+)*/?$ you can get all the number style: http://url/1/2/3/4/5...
but I don't know how do it exactly.
On Fri, Sep 3, 2010 at 15:46, To
2010/9/3 Alexandre González :
> I think that if you use id=1&id=2&id=3 you are overriding the id value...
> It's no way to do that with GET
>
Au contraire:
>>> from django.http import QueryDict
>>> QueryDict('id=1&id=2&id=3')
Cheers
Tom
--
You received this message because you are subscribe
well it was just to simplify some URLs but if you guys tell it's bad
practice, I'll stick with it =)
cheers,
_j
On Sep 3, 3:26 pm, Daniel Roseman wrote:
> Why would you want to? The first is the standard HTTP method of
> sending multiple items in a GET (and indeed in a POST, although you
> don'
I think that if you use id=1&id=2&id=3 you are overriding the id value...
It's no way to do that with GET
On Fri, Sep 3, 2010 at 15:20, jean polo wrote:
> hello
> while using GET form, I can select several objects with an URL like:
> xx?id=1&id=2&id=3 etc..
>
> How could I have instead an UR
On Sep 3, 2:20 pm, jean polo wrote:
> hello
> while using GET form, I can select several objects with an URL like:
> xx?id=1&id=2&id=3 etc..
>
> How could I have instead an URL like that:
> xx?id=1,2,3,4 etc... ??
>
> Thanks,
> _j
Why would you want to? The first is the standard HTTP meth
hello
while using GET form, I can select several objects with an URL like:
xx?id=1&id=2&id=3 etc..
How could I have instead an URL like that:
xx?id=1,2,3,4 etc... ??
Thanks,
_j
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
9 matches
Mail list logo