I am using 0.95.1 the latest stable version for Django --MA On Mar 20, 10:21 pm, "Matthew Flanagan" <[EMAIL PROTECTED]> wrote: > On 3/20/07, Mary <[EMAIL PROTECTED]> wrote: > > > > > > > here is my search.py > > > from django.contrib.sites.models import Site > > > from stuff.search.helpers import SearchDefinition > > > class PageSearch(SearchDefinition): > > model_module = 'test.Unpublished_Pages' > > time_order_by = 'time_created' > > search_fields = ('title', 'text') > > > I put it in one of my applications inside the project and i get > > another error now which is : > > > Exception Value: 'NoneType' object has no attribute 'objects' > > Exception Location: /var/www/test/stuff/search/helpers.py in > > get_id_list, line 32 > > > Sorry for all my questions which may be stupid :( > > Thank you in advance for help > > Which version of Django are you using? 0.95.x or trunk? there was a > problem in 0.95 that caused stuff.search to fail. > > > > > > > On Mar 20, 12:02 pm, "Matthew Flanagan" <[EMAIL PROTECTED]> > > wrote: > > > On 3/20/07, Mary <[EMAIL PROTECTED]> wrote: > > > > > Hi Mathew > > > > > I really appreciate this diff patch it solves all the problem and now > > > > i am just facing one error in the search.py > > > > xception Value: No module named helpers > > > > Exception Location: /var/www/test.net/test/search.py in ?, line 11 > > > > > Do u have an idea why this could happened > > > > Can you provide test/search.py? > > > > > hi Doug > > > > > Thanks for the snippets but i really can't understand how it works is > > > > there any full example that i can see or any documnetation that i can > > > > read for that > > > > > Thank you in advance ; > > > > Mary Adel > > > > > On Mar 19, 11:42 pm, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > > > > As noted in another thread there is a hack way of adding search to a > > > > > model detailed on teh django snippits > > > > > site:http://www.djangosnippets.org/snippets/31/http://www.djangosnippets.o... > > > > > > It is no where near as nice nor as comprehensive as the old django > > > > > stuff abstract search interface, but it does get the job done in a > > > > > pinch. > > > > > > -Doug > > > > -- > > > matthewhttp://wadofstuff.blogspot.com > > -- > matthewhttp://wadofstuff.blogspot.com
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---