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 -~----------~----~----~----~------~----~------~--~---