Firebug to the rescue; I got the error as ...filter() keywords must be strings...
so I changed the below query = str(request.POST['query']) qfld = str(request.POST['qtype']) (it was earlier unicode(request.POST['query']) ) and it works. I'm afraid that now it will not support unicode? Thanks Peter & Richard. Joseph On May 23, 11:29 pm, Peter Rowell <[EMAIL PROTECTED]> wrote: > > The debug information is available from firebug. You will see the reuest, > > right click on it and select 'Open in New Tab' > > Richard: I love Firebug, but I was talking about debugging Django, not > Javascript. > > Joseph: You also need to have you IP in the INTERNAL_IP list in > settings.py. If you have a number of addresses (or address ranges) > that you or other developers might be coming from, consider using CIDR > address style. It was discussed in ticket 3237 (http:// > code.djangoproject.com/ticket/3237), but Jacob said it didn't belong > in core. (He also said he would be using the idea himself.) > > 1. Gethttp://pypi.python.org/pypi/IPv4_Utils/0.35. The file ipv4.py > is what you want. > 2. Create a file cidr.py: > > === cidr.py ============= > class CIDR_LIST(list): > def __init__(self, cidrs): > self.cidrs = [] > try: > #http://cheeseshop.python.org/pypi/IPv4_Utils/0.35 > import ipv4 > for cidr in cidrs: > self.cidrs.append(ipv4.CIDR(cidr)) > except ImportError: > pass > def __contains__(self, ip): > import ipv4 > try: > for cidr in self.cidrs: > if ipv4.CIDR(ip) in cidr: > return True > except: > pass > return False > ====== end cidr.py ====== > > Then in settings.py: > > from cidr.py import CIDR_LIST > > INTERNAL_IPS = CIDR_LIST([ > '127.0.0.1', > '10.0.0.0/8', > '192.168.0.0/16', > etc. > ]) > > The above covers all internal, non-routable IPs you might be coming > from. Add more to taste. > > HTH, > Peter --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---