Re: display User info, newbie

2008-10-09 Thread Robocop
Aaaah, i believe the login functionality is a subset of the sessions functionality, which does need cookies. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Re: display User info, newbie

2008-10-09 Thread KillaBee
On Oct 9, 5:53 pm, Robocop <[EMAIL PROTECTED]> wrote: > I'm sorry but i don't understand your question.  Could you please > CAREFULLY review your posts for typos or obvious grammatical errors as > right now, i have no idea what you're asking.  If you want to know if > my code works, yes it does.

Re: display User info, newbie

2008-10-09 Thread Robocop
I'm sorry but i don't understand your question. Could you please CAREFULLY review your posts for typos or obvious grammatical errors as right now, i have no idea what you're asking. If you want to know if my code works, yes it does. I've tested every single line of my login code, and the only l

Re: display User info, newbie

2008-10-09 Thread KillaBee
On Oct 9, 5:28 pm, Robocop <[EMAIL PROTECTED]> wrote: > is your {{user}} variable not showing up at all, or is it returning > "AnonymousUser"?  If it is returning AnonymousUser then I am having > the exact same problem.  DO NOT waste your time trying to use the > contrib.auth.views login functio

Re: display User info, newbie

2008-10-09 Thread Robocop
is your {{user}} variable not showing up at all, or is it returning "AnonymousUser"? If it is returning AnonymousUser then I am having the exact same problem. DO NOT waste your time trying to use the contrib.auth.views login function as i just attempted that and it gave me the same behavior. Wh

Re: display User info, newbie

2008-10-09 Thread KillaBee
On Oct 9, 4:58 pm, Robocop <[EMAIL PROTECTED]> wrote: > request.user will return the currently logged in user, so i'm assuming > your login code is returning nothing. > > Try something like user  = auth.authenticate(username = > username_from_html, password = password_from_html) in your login co

Re: display User info, newbie

2008-10-09 Thread Robocop
request.user will return the currently logged in user, so i'm assuming your login code is returning nothing. Try something like user = auth.authenticate(username = username_from_html, password = password_from_html) in your login code, and then see if you can use the {{user}} variable in the page

Re: display User info, newbie

2008-10-09 Thread KillaBee
On Oct 9, 4:24 pm, Robocop <[EMAIL PROTECTED]> wrote: > I'm sorry but your question is very difficult to understand.  From > what i understand you want to show the username in a form, so why not > just do a username = request.user in your view, and then {{username}} > in your html template?  If

Re: display User info, newbie

2008-10-09 Thread Robocop
I'm sorry but your question is very difficult to understand. From what i understand you want to show the username in a form, so why not just do a username = request.user in your view, and then {{username}} in your html template? If you need to pass the username variable with the form, then just

display User info, newbie

2008-10-09 Thread KillaBee
I have been looking around all day for a way to display the username of a page. The only thing that I could find is making my a middleware. there has got to be something that I can put on my template like the {{ form.as_p }} to display fields from form. can someone please, give me a hint..the fi