Re: My Own Auth Backend

2010-01-20 Thread Olivier Détour
Up 2010/1/18 Olivier Détour <chino540...@gmail.com>: > Thanks for this link, I saw it Saturday. > But the problem is the same, I have to login to use template like that: > > {% if user.is_authenticated %} >  lol > {% else %} >  not lol > {% endif %} > &

Re: My Own Auth Backend

2010-01-18 Thread Olivier Détour
> > Look at this - > http://stackoverflow.com/questions/1057149/django-users-and-authentication-from-external-source > > I imagine your problem comes from the fact that django.contrib.auth > User is tied to the DB > > Sam > > On Jan 18, 12:09 am, Olivier Détour <chino540...@gmai

Re: My Own Auth Backend

2010-01-17 Thread Olivier Détour
est.POST) >    if form.is_valid(): >      # FIXME: Check if file is good. >      #handle_uploaded_torrent(request.FILES['file']) >      username = request.POST['user'] >      password = request.POST['password'] >      user = authenticate(username=username, password=password) >