hi ,
we can see
"random
Returns a random item from the list."from
http://www.djangoproject.com/documentation/templates/.but it is diffcult
to understand without examples.
so,is there anyone who can give me an example about "random" of Built-in
filter reference in templates?
thanks!
;
>>>> random( l )
>>>>
> 4
>
>>>> random( l )
>>>>
> 2
>
>>>> random( l )
>>>>
> 2
>
>>>> random( l )
>>>>
> 3
>
> In template
i want to use sajax in my apps .the reason that i choose sajax rather
than jquery is that i think sajax maybe easier!
but now ,i only search only one example
there:http://wiki.djangosource.com/wiki/Ajax_in_django,but it can not run!
so,can anyone help me and provide any source codes about sajax in
3 matches
Mail list logo