Re: I need help

2010-05-17 Thread Jens Rantil
Hi Hussain, Please be more descriptive in your subject line next time. It makes it easier for everyone subscribed to the list to acknowledge if the message is something is of interest or not. Thank you, Jens On 14 Maj, 10:51, Hussain Deikna wrote: > Hi, >  I plan to start writing my web page an

Re: Thread safe language switching?

2010-03-10 Thread Jens Rantil
Hi Michal, I'm not sure, but I would write the verbose names manually for each field, wrapping each string inside a ugettext(...) function call like so: class Poll(models.Model): ... field = models.CharField(ugettext("My verbose name"), max_length=40) ... Thay way I could just use the norma

Re: Table with 4 Milions of rows

2010-01-13 Thread Jens Rantil
Hi Nameless, On Jan 12, 9:20 pm, nameless wrote: > The table is queried from ajax using an autocomplete field with this > query in the views.py: > > books.objects.filter(book_title__istartswith=request.GET['q'])[:100] This should not be a problem in MySQL either if you are using an index for the