On Thu, Feb 5, 2009 at 10:03 AM, Muslu Yüksektepe <musluyuksekt...@gmail.com
> wrote:

>
> can u give me one example?
>
> i dont understand
>
>
> On 5 Şubat, 16:35, Alex Gaynor <alex.gay...@gmail.com> wrote:
> > On Thu, Feb 5, 2009 at 7:20 AM, Muslu Yüksektepe
> > <musluyuksekt...@gmail.com>wrote:
> >
> >
> >
> > > @Rama:
> > > where can i add this code?
> >
> > > and i wanna use like this.
> >
> > > my items:
> > > ---------------------------------
> > > aa
> > > aaa
> > > aaaa
> > > aaaaa
> > > bb
> > > bbb
> > > bbbbb
> > > ccc
> > > cccccc
> > > cc
> > > --------------------------------------
> > > my list:
> > > a b c d e f g h....
> >
> > > when i click "a" i wanna show only
> >
> > > aa
> > > aaa
> > > aaaa
> > > aaaaa
> >
> > > this items
> >
> > > even i can write manually cos i wanna use turkish character too
> > > like ç ş ğ ü ı ö ç
> > > but not important
> >
> > > 2009/2/5 Masklinn <maskl...@masklinn.net>
> >
> > >> On 5 févr. 09, at 11:40, Rama Vadakattu <ramaakrish...@gmail.com>
> > >> wrote:
> > >> > k = [chr(i)  for i in range(97,123)]
> >
> > >> Why do you manually recreate something already provided to you in the
> > >> 'string' module?
> >
> > Basically you're going to want a view that takes the letter as a
> parameter
> > and then filters down the queryset based on the letter, take a look at
> the
> > __startswith filter.
> >
> > --
> > "I disapprove of what you say, but I will defend to the death your right
> to
> > say it." --Voltaire
> > "The people's good is the highest law."--Cicero
> >
>
Here's an example of how you might do it:
http://dpaste.com/116998/(including templtae, view, and url).

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to