Hi

> I'm using the following code, anyone got any ideas what could be
> wrong?

> @login_required(redirect_field_name='/login/')

My guess is, that it should be:

@login_required(redirect_field_name='/hosting/login/')

> urls.py
> # Login
> (r'^hosting/login/$', 'django.contrib.auth.views.login',
> {'template_name': 'hosting/login.html'})

or in your urls, you should also include a redirection:
'^login/$' => '^hosting/login/$'

Hope that helps

Przemek
-- 
AIKIDO TANREN DOJO  -   Poland - Warsaw - Mokotow - Ursynow - Natolin
info:   http://tanren.pl/   phone:+48501516666   email:[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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