From: Russell Keith-Magee <russ...@keith-magee.com>
Date: Mon, 12 Nov 2012 07:53:23 +0800
Local: Sun, Nov 11 2012 6:53 pm
Subject: Re: custom User model and login()
On Mon, Nov 12, 2012 at 2:08 AM, Anil Jangity <an...@me.com> wrote:
Django logins are handled by a session, and sessions are saved by the
> I am trying to build a User model with a dedicated LDAP backend. I have no > SQL database. > def login(request):
> def manage(request):
> Shouldn't the manage() show the user being authenticated?
Session middleware when the response is passed back to the client. Django's builtin login call returns a response that sets the new session for the logged in user; however, you're throwing away that information and returning your own response, so the session isn't being saved. If you want to persist the session, you'll need to pull the relevant
Yours,
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||