Re: login() method conflict

2007-07-19 Thread james_027
Thanks everyone, that was a foolish mistake... I am not only new to django but also new to python cheers, james On Jul 19, 4:09 pm, Nathan Ostgard <[EMAIL PROTECTED]> wrote: > You may find it easier to avoid these conflicts by doing: > from django.contrib import auth > > Then use: > user = auth.

Re: login() method conflict

2007-07-19 Thread Nathan Ostgard
You may find it easier to avoid these conflicts by doing: from django.contrib import auth Then use: user = auth.authenticate(username='foo', password='bar') auth.login(request, user) On Jul 19, 1:02 am, james_027 <[EMAIL PROTECTED]> wrote: > hi, > > i've been trying to get started with django an

Re: login() method conflict

2007-07-19 Thread Malcolm Tredinnick
On Thu, 2007-07-19 at 08:02 +, james_027 wrote: > hi, > > i've been trying to get started with django and i am stock in this > problem and found out that there's a conflict in login() method. here > is my view code > > from django.http import HttpResponse, HttpResponseRedirect > from django.

login() method conflict

2007-07-19 Thread james_027
hi, i've been trying to get started with django and i am stock in this problem and found out that there's a conflict in login() method. here is my view code from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render_to_response from django.contrib.auth import