Thursday, June 26, 2014

Login without database

i´d like to use the django to login but without connection on database.
I´ll consume webservices in another language to do this.
I made using the remote_user but i don´t know how to do this.

from django.contrib.auth import authenticate, logout, login

def sessao_login(request, _dados):
      user = authenticate(remote_user=_dados['email'])  

but when i put the login(request, user) this clean my session vars.. 
Is this the best way? 
How can i make this?

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment