Re: django searching/checking for user
Gotcha, sorry about that, didn't quite get what was being asked. You can do a full text search in your database or implement some external software for search. Also if you have a field that you want items to be alike for you can always bounce off the database for items like that. I have implemented various forms of search and am right now of the opinion that my sites won't have too many hits to justify bouncing my searches off of google or yahoo. Those might be too generic for you, you might need to look into writing some custom code, but searching through the text of one model to find something similar should be fairly easy especially if you don't mind using some database power. I can't say I know anything speficially Django to accomplish this, so you are probably going to have to look for something else. Anyone else have any ideas? On Wed, Apr 23, 2008 at 6:11 PM, Aljosa Mohorovic < [EMAIL PROTECTED]> wrote: > > On Apr 23, 8:32 pm, Michael <[EMAIL PROTECTED]> wrote: > > If you have auth and sessions working right in Django you can access a > > logged in user from the request (request.user) and user in auth if you > have > > AUTH_PROFILE_MODULE [1] in your settings you can get the profile from > the > > thanks for info, but i think i didn't explain that i already have a > working django site and i'm actually trying to enable users to search > for other users and also looking for site-wide search solution. > > Aljosa > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: django searching/checking for user
On Apr 23, 8:32 pm, Michael <[EMAIL PROTECTED]> wrote: > If you have auth and sessions working right in Django you can access a > logged in user from the request (request.user) and user in auth if you have > AUTH_PROFILE_MODULE [1] in your settings you can get the profile from the thanks for info, but i think i didn't explain that i already have a working django site and i'm actually trying to enable users to search for other users and also looking for site-wide search solution. Aljosa --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: django searching/checking for user
If you have auth and sessions working right in Django you can access a logged in user from the request (request.user) and user in auth if you have AUTH_PROFILE_MODULE [1] in your settings you can get the profile from the user with the function get_profile() [1] http://www.djangoproject.com/documentation/settings/#auth-profile-module look at this page for documentation: http://www.djangoproject.com/documentation/authentication/ And specifically here for extending the user model: http://www.djangoproject.com/documentation/authentication/#storing-additional-information-about-users On Wed, Apr 23, 2008 at 1:23 PM, Aljosa Mohorovic < [EMAIL PROTECTED]> wrote: > > i was wondering if there is django related solution for searching/ > checking if user (django.contrib.auth + profile) exists or to retrieve > similar results? > > so if i have: > search_for = request.POST['search_for'] > > do i split search_for and basically do sql LIKE search through table > fields or is there some other/better solution? > what about pylucene/lucene or something similar? > when to use simple sql search and when some search engine software? > > Aljosa > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
django searching/checking for user
i was wondering if there is django related solution for searching/ checking if user (django.contrib.auth + profile) exists or to retrieve similar results? so if i have: search_for = request.POST['search_for'] do i split search_for and basically do sql LIKE search through table fields or is there some other/better solution? what about pylucene/lucene or something similar? when to use simple sql search and when some search engine software? Aljosa --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---