Thank you sooooooooooo 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 <[email protected]> wrote:
> On Thu, Dec 9, 2010 at 8:04 AM, Charlietuna <[email protected]> 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 settings.py file.:
>
> > import django.contrib.auth
> > django.contrib.auth.LOGIN_URL = '/login/'
>
> Not sure where you're getting this information from, but assuming
> you're using the latest Django:
>
> http://docs.djangoproject.com/en/dev/ref/settings/#std:setting-LOGIN_URL
>
> i.e. you should be using settings.LOGIN_URL and not
> django.contrib.auth.LOGIN_URL since at least 1.0
>
> Cheers,
> Martin Melin
>
>
>
> > The server says: GET /accounts/login/?login/=/save/ HTTP/1.1  404 2273
> > I assume that it is going the path:
>
> > /account/login/login
>
> > Any help would be appreciated!
>
> > Thanks,
>
> > Steve

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to