I don't know if I fully understand what is your problem. But I read your
other conversation with Robocop. 
After auth.login(request, user) there should be HttpResponseRedirect() :

if user.is_active:
        auth.login(request, user)
        return HttpResponseRedirect(' .... ')
              :
              :
Why are u using two login functions? (One Django's and one, I guess, your
own) And you are not using form to get data from template?
After that redisrec, you can access user like this user=request.user (return
User obejct if logged in or Anonymous). Also don't forget to use context =
RequestContext(request) (see doc. for details)
Maybe something like this:

def home(request):
    context = RequestContext(request)
    return render_to_response("home.html", context)

In home.html you can access user:
{% if user.is_authenticated %}
   {{ user.username }}.
   {{user.first_name}} {{user.last_name}}
{% endif %}

Hope it helps little bit.
I'm still newbie in Django, som maybe someone else would it explain better
:)

Radovan


KillaBee-2 wrote:
> 
> 
> Hey and thanks for the help that I get on here.  This might seem
> simple, but I can make sure that the User name and password matches
> but after loging in I would like them to see there info and filter the
> db and then display records.
> I login with this view:
> def login(request):
>     username = request.POST['username']
>     password = request.POST['password']
>     user = auth.authenticate(username=username, password=password)
>     auth.login(request, user)
>     if request.user.is_authenticated():
>         login(request, user)
>     else:
>           return render_to_response('index.html')
> -------------------------------------------------------------------------------
> I looked around and found get_full_name(), but where and how do I use
> it.  furthermore, how do I refer to fields or where do I put code to
> display it?
> 
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/using-and-displaying-user-info-from-django.auth-tp19904661p19912164.html
Sent from the django-users mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to