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
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
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
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
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.
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
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
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
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
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
10 matches
Mail list logo