On Fri, 10 Feb 2006 09:29:34 -0600 Adrian Holovaty <[EMAIL PROTECTED]> wrote:
> > On 2/10/06, Jeremy Jones <[EMAIL PROTECTED]> wrote: > > I have the following view which adds users to the User table (and > > SimpleUserManipulator is a class I've defined). Is there a way I > > can automatically login the user once the record is saved? > > Hey Jeremy, > > Sure, just do this, after you've created the User object (u): > > request.session[users.SESSION_KEY] = u.id > > I've added a section to the docs: > > http://www.djangoproject.com/documentation/authentication/#how-to-log-a-user-in > > Adrian > Thanks for the lightning reply, Adrian! I'll have to try that tonight. - jmj --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

