I'm pretty new to Django, so any advice would really be appreciated,
especially if I'm headed in the wrong direction.

I'm trying to "extend" django.contrib.auth.views.login in the same
fashion as a generic view. I would like to deposit points in a user's
account after a sucessful login. Here's what I've got--inspired by the
Django Book, Generic Views chapter.

def user_login(request):
    response django.contrib.auth.views.login(request)
    if XXX: # FIXME: how do I check that this was successful?
        do database stuff...
    return response


On a semi-related note, I'd probably be able to muddle through this on
my own using the Python console, but I don't know how to fake the
'request' variable in that environment; is this easy to do?

Thanks very much,
- whiteinge


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