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 %}
>
&
>
> 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
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)
>
3 matches
Mail list logo