how to use random of Built-in filter reference in templates?

2008-01-03 Thread jt.wang
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!

Re: how to use random of Built-in filter reference in templates?

2008-01-03 Thread jt.wang
; >>>> random( l ) >>>> > 4 > >>>> random( l ) >>>> > 2 > >>>> random( l ) >>>> > 2 > >>>> random( l ) >>>> > 3 > > In template

[sajax question]how to use sajax?

2007-12-02 Thread jt.wang
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