Re: newbie question: @login_required, can't get it to work

2010-12-09 Thread Charlietuna
Thank you sooo much. That was great. I was using a book base on Django .96. I couldn't fully understand the online documentation. You saved me a great deal of time. Steve On Dec 8, 11:20 pm, robin nanola wrote: > on your settings.py you can just add  LOGIN_URL = '/login/' > > On Thu, De

Re: newbie question: @login_required, can't get it to work

2010-12-09 Thread Charlietuna
Thank you sooo much. That was great. I was using a book base on Django .96. I couldn't fully understand the online documentation. You saved me a great deal of time. Steve On Dec 8, 11:22 pm, Martin Melin wrote: > On Thu, Dec 9, 2010 at 8:04 AM, Charlietuna wrote: > > Hi All, > > > I'm

Re: newbie question: @login_required, can't get it to work

2010-12-08 Thread Martin Melin
On Thu, Dec 9, 2010 at 8:04 AM, Charlietuna wrote: > Hi All, > > I'm a newbie. I would like to use the @login_required decorator, but I > don't want to redirect to the standard default accounts/login. I would > like to redirect to '/login/' > > The book says add the following to the end of the set

Re: newbie question: @login_required, can't get it to work

2010-12-08 Thread robin nanola
on your settings.py you can just add LOGIN_URL = '/login/' On Thu, Dec 9, 2010 at 3:04 PM, Charlietuna wrote: > Hi All, > > I'm a newbie. I would like to use the @login_required decorator, but I > don't want to redirect to the standard default accounts/login. I would > like to redirect to '/log

newbie question: @login_required, can't get it to work

2010-12-08 Thread Charlietuna
Hi All, I'm a newbie. I would like to use the @login_required decorator, but I don't want to redirect to the standard default accounts/login. I would like to redirect to '/login/' The book says add the following to the end of the settings.py file.: import django.contrib.auth django.contrib.auth.